We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8ff72 commit 5af136eCopy full SHA for 5af136e
core/src/main/java/org/springframework/security/core/ComparableVersion.java
@@ -414,7 +414,7 @@ public int getType() {
414
415
@Override
416
public boolean isNull() {
417
- return (size() == 0);
+ return isEmpty();
418
}
419
420
void normalize() {
@@ -434,7 +434,7 @@ else if (!(lastItem instanceof ListItem)) {
434
435
public int compareTo(Item item) {
436
if (item == null) {
437
- if (size() == 0) {
+ if (isEmpty()) {
438
return 0; // 1-0 = 1- (normalize) = 1
439
440
Item first = get(0);
0 commit comments