You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by jwagenleitner <gi...@git.apache.org> on 2017/07/05 05:04:37 UTC

[GitHub] groovy pull request #558: GROOVY-8218 @Sortable allows reversed natural orde...

Github user jwagenleitner commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/558#discussion_r125555008
  
    --- Diff: src/main/org/codehaus/groovy/transform/SortableASTTransformation.java ---
    @@ -82,6 +82,7 @@ public void visit(ASTNode[] nodes, SourceUnit source) {
         private void createSortable(AnnotationNode annotation, ClassNode classNode) {
             List<String> includes = getMemberStringList(annotation, "includes");
             List<String> excludes = getMemberStringList(annotation, "excludes");
    +        boolean reversed = getMemberBoolValue(annotation, "reversed");
    --- End diff --
    
    `boolean reversed = memberHasValue(annotation, "reversed", true);`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---