You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Brian Cho (JIRA)" <ji...@apache.org> on 2015/06/19 10:15:01 UTC

[jira] [Commented] (REEF-389) Fix violations of ModifierOrder checkstyle

    [ https://issues.apache.org/jira/browse/REEF-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14593175#comment-14593175 ] 

Brian Cho commented on REEF-389:
--------------------------------

My opinion is +1 for changing the code.

I think the majority of the code prefers {{final @Parameter(...)}} over {{@Parameter(...) final}}. I don't see a real reason to prefer this order. This is probably a matter of taste, so I'd like to see other votes.

> Fix violations of ModifierOrder checkstyle
> ------------------------------------------
>
>                 Key: REEF-389
>                 URL: https://issues.apache.org/jira/browse/REEF-389
>             Project: REEF
>          Issue Type: Sub-task
>          Components: All
>            Reporter: Mariia Mykhailova
>            Assignee: Mariia Mykhailova
>            Priority: Minor
>             Fix For: 0.12
>
>
> ModifierOrder (http://checkstyle.sourceforge.net/config_modifier.html#ModifierOrder) enforces the order of modifiers matches one given in Java language specification. Our code has ~370 violations, the most frequent is that {{@Parameter}} annotation modifier does not precede non-annotation modifiers.
> Is the relative order of {{@Parameter}} annotation and other modifiers important for us? If not, we should fix the violations as checkstyle suggests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)