ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Vinogradov (Jira)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-11981) [IEP-35] Create MU shortcut instead of static import of MetricUtils
Date Mon, 30 Sep 2019 06:15:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-11981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16940666#comment-16940666

Anton Vinogradov commented on IGNITE-11981:

No objections here. 
But, could you share your vision please?

We have classes {{A}} and {{B}} located at different packages without parent-child relations.
{{A}} class has method method a(). 
Is it good design to have {{import static A.a;}} at class {{B}} with subsequent call just
"a();" like it's a method of {{B}}?

> [IEP-35] Create MU shortcut instead of static import of MetricUtils
> -------------------------------------------------------------------
>                 Key: IGNITE-11981
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11981
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Nikolay Izhikov
>            Priority: Minor
>              Labels: IEP-35
> More Ignite-way of coding is the usage of short cut classes.
> We should use MU instead of static import of {{MetricUtils}}.

This message was sent by Atlassian Jira

View raw message