Unused argument in DirectMessageWriter

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Unused argument in DirectMessageWriter

Александр Меньшиков
Hello, everyone!

I found some strange thing. In 'MessageWriter' there are a lot of methods
like 'write*(String name, * val)'. But in implementation
'DirectMessageWriter' argument 'name' isn't used in these methods. And
there aren't other 'MessageWriter' implementations.

Maybe we can remove 'name' from interface and implementation?
Reply | Threaded
Open this post in threaded view
|

Re: Unused argument in DirectMessageWriter

Valentin Kulichenko
Hi,

These classes are part of plugin framework. Even though 'name' argument is
not used by Ignite implementations, it can be used by others. Therefore it
should not be removed.

-Val

On Thu, Mar 16, 2017 at 10:36 AM, Александр Меньшиков <[hidden email]>
wrote:

> Hello, everyone!
>
> I found some strange thing. In 'MessageWriter' there are a lot of methods
> like 'write*(String name, * val)'. But in implementation
> 'DirectMessageWriter' argument 'name' isn't used in these methods. And
> there aren't other 'MessageWriter' implementations.
>
> Maybe we can remove 'name' from interface and implementation?
>
Reply | Threaded
Open this post in threaded view
|

Re: Unused argument in DirectMessageWriter

voipp
watch him, he is gonna remove all the messages he doesn't like :)

чт, 16 мар. 2017 г. в 14:56, Valentin Kulichenko <
[hidden email]>:

> Hi,
>
> These classes are part of plugin framework. Even though 'name' argument is
> not used by Ignite implementations, it can be used by others. Therefore it
> should not be removed.
>
> -Val
>
> On Thu, Mar 16, 2017 at 10:36 AM, Александр Меньшиков <
> [hidden email]>
> wrote:
>
> > Hello, everyone!
> >
> > I found some strange thing. In 'MessageWriter' there are a lot of methods
> > like 'write*(String name, * val)'. But in implementation
> > 'DirectMessageWriter' argument 'name' isn't used in these methods. And
> > there aren't other 'MessageWriter' implementations.
> >
> > Maybe we can remove 'name' from interface and implementation?
> >
>
--

*Best Regards,*

*Kuznetsov Aleksey*
Reply | Threaded
Open this post in threaded view
|

Re: Unused argument in DirectMessageWriter

Александр Меньшиков
Valentin, thank you.

Aleksey, yeah :-)

2017-03-16 15:51 GMT+03:00 ALEKSEY KUZNETSOV <[hidden email]>:

> watch him, he is gonna remove all the messages he doesn't like :)
>
> чт, 16 мар. 2017 г. в 14:56, Valentin Kulichenko <
> [hidden email]>:
>
> > Hi,
> >
> > These classes are part of plugin framework. Even though 'name' argument
> is
> > not used by Ignite implementations, it can be used by others. Therefore
> it
> > should not be removed.
> >
> > -Val
> >
> > On Thu, Mar 16, 2017 at 10:36 AM, Александр Меньшиков <
> > [hidden email]>
> > wrote:
> >
> > > Hello, everyone!
> > >
> > > I found some strange thing. In 'MessageWriter' there are a lot of
> methods
> > > like 'write*(String name, * val)'. But in implementation
> > > 'DirectMessageWriter' argument 'name' isn't used in these methods. And
> > > there aren't other 'MessageWriter' implementations.
> > >
> > > Maybe we can remove 'name' from interface and implementation?
> > >
> >
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>