mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
getValueAsInt - Checking if parsed long is within Java Integer.INT range
getValueAsInt - Using the int copy of NumerUtilities.parseLong AskDialog: Organize commits
This commit is contained in:
@@ -246,7 +246,12 @@ public class AskDialog<T> extends DialogComponentProvider {
|
||||
|
||||
protected Integer getValueAsInt() {
|
||||
String text = getValueAsString();
|
||||
return text != null ? Integer.decode(text) : null;
|
||||
|
||||
if (text == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return NumericUtilities.parseInt(text);
|
||||
}
|
||||
|
||||
protected Long getValueAsLong() {
|
||||
|
||||
Reference in New Issue
Block a user