tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [tinkerpop] 01/03: Changed Order.reverse() to use not use the deprecated enums.
Date Fri, 14 Jun 2019 17:47:01 GMT
This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit a9eee175b0083a5cb5862415b3eedb346a6f3c53
Author: Stephen Mallette <spmva@genoprime.com>
AuthorDate: Fri Jun 14 13:45:13 2019 -0400

    Changed Order.reverse() to use not use the deprecated enums.
    
    Not sure how this got through so many releases but we proably shouldn't reverse() to the
stuff we don't want people using. CTR
---
 CHANGELOG.asciidoc                                                    | 1 +
 .../java/org/apache/tinkerpop/gremlin/process/traversal/Order.java    | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index 5f0cb5d..e60b668 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -29,6 +29,7 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
 * Improved exception and messaging for gt/gte/lt/lte when one of the object isn't a `Comparable`.
 * Added test infrastructure to check for storage iterator leak.
 * Fixed multiple iterator leaks in query processor.
+* Changed the `reverse()` of `desc` and `asc` on `Order` to not use the deprecated `decr`
and `incr`.
 * Fixed bug in `MatchStep` where the correct was not properly determined.
 * Fixed bug where client/server exception mismatch when server throw StackOverflowError
 * Prevent exception when closing a session that doesn't exist
diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Order.java
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Order.java
index 8c6df85..618cdfd 100644
--- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Order.java
+++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Order.java
@@ -105,7 +105,7 @@ public enum Order implements Comparator<Object> {
 
         @Override
         public Order reversed() {
-            return decr;
+            return desc;
         }
     },
 
@@ -124,7 +124,7 @@ public enum Order implements Comparator<Object> {
 
         @Override
         public Order reversed() {
-            return incr;
+            return asc;
         }
     };
 


Mime
View raw message