Skip to content

Commit 1d81b49

Browse files
committed
.equals() call fixed to use Integer (instead of String)
1 parent a46ebc8 commit 1d81b49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

visualvm/libs.profiler/profiler/src/org/graalvm/visualvm/lib/profiler/v2/features/ObjectsFeatureModes.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,9 @@ void confirmSettings() {
466466
null : Boolean.FALSE.toString());
467467
storeFlag(ALLOCATIONS_FLAG, outgoingCheckbox.isSelected() ?
468468
null : Boolean.FALSE.toString());
469-
String limit = ((Integer)outgoingSpinner.getValue()).toString();
469+
Integer limit = ((Integer)outgoingSpinner.getValue());
470470
boolean deflimit = LIMIT_ALLOCATIONS_DEFAULT.equals(limit);
471-
storeFlag(LIMIT_ALLOCATIONS_FLAG, deflimit ? null : limit);
471+
storeFlag(LIMIT_ALLOCATIONS_FLAG, deflimit ? null : limit.toString());
472472
saveSelection();
473473
}
474474
}
@@ -766,9 +766,9 @@ void confirmSettings() {
766766
null : Boolean.FALSE.toString());
767767
storeFlag(ALLOCATIONS_FLAG, outgoingCheckbox.isSelected() ?
768768
null : Boolean.FALSE.toString());
769-
String limit = ((Integer)outgoingSpinner.getValue()).toString();
769+
Integer limit = ((Integer)outgoingSpinner.getValue());
770770
boolean deflimit = LIMIT_ALLOCATIONS_DEFAULT.equals(limit);
771-
storeFlag(LIMIT_ALLOCATIONS_FLAG, deflimit ? null : limit);
771+
storeFlag(LIMIT_ALLOCATIONS_FLAG, deflimit ? null : limit.toString());
772772
}
773773
}
774774

0 commit comments

Comments
 (0)