We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b411c commit 6ccc9deCopy full SHA for 6ccc9de
firebase-database/src/main/java/com/google/firebase/database/snapshot/ChildKey.java
@@ -71,9 +71,9 @@ protected int intValue() {
71
public int compareTo(ChildKey other) {
72
if (this == other) {
73
return 0;
74
- } else if (this == MIN_KEY || other == MAX_KEY) {
+ } else if (this.key.equals(MIN_KEY_NAME) || other.key.equals(MAX_KEY_NAME)) {
75
return -1;
76
- } else if (other == MIN_KEY || this == MAX_KEY) {
+ } else if (other.key.equals(MIN_KEY_NAME) || this.key.equals(MAX_KEY_NAME)) {
77
return 1;
78
} else if (this.isInt()) {
79
if (other.isInt()) {
0 commit comments