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 951a625 commit fb5f6d6Copy full SHA for fb5f6d6
src/com/xxdb/data/BasicDuration.java
@@ -190,8 +190,8 @@ private int getCodeNumber(String unit) {
190
} else if (unit.length() == 4) {
191
int[] codes = new int[4];
192
for (int i = 0; i < 4; i++) {
193
- if (Character.isLowerCase(unit.charAt(i)))
194
- throw new RuntimeException("the exchange unit except all upper, got " + unit);
+ if (!Character.isUpperCase(unit.charAt(i)))
+ throw new RuntimeException("except upper letter, got " + unit);
195
codes[i] = unit.charAt(i);
196
}
197
return (codes[0] << 24) + (codes[1] << 16) + (codes[2] << 8) + codes[3];
0 commit comments