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 81ce586 commit f1a25c7Copy full SHA for f1a25c7
firebase-database/src/main/java/com/google/firebase/database/core/utilities/PushIdGenerator.java
@@ -79,9 +79,7 @@ public static final String predecessor(String key) {
79
StringBuilder next = new StringBuilder(key);
80
if (next.charAt(next.length() - 1) == MIN_PUSH_CHAR) {
81
if (next.length() == 1) {
82
- // Empty keys are not allowed, but `getMinName()` sorts
83
- // lower than any other key.
84
- return ChildKey.getMinName().toString();
+ return String.valueOf(Integer.MAX_VALUE);
85
}
86
// If the last character is the smallest possible character, then the next
87
// smallest string is the prefix of `key` without it.
0 commit comments