mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-10 06:02:09 +00:00
Merge remote-tracking branch 'origin/GP-4874_ryanmkurtz_int'
(Closes #5028)
This commit is contained in:
commit
9c4c7e319d
@ -4,9 +4,9 @@
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@ -246,21 +246,12 @@ public class AskDialog<T> extends DialogComponentProvider {
|
||||
|
||||
protected Integer getValueAsInt() {
|
||||
String text = getValueAsString();
|
||||
if (text == null) {
|
||||
return null;
|
||||
}
|
||||
if (text.startsWith("0x")) {
|
||||
return (int) NumericUtilities.parseHexLong(text);
|
||||
}
|
||||
return (int) NumericUtilities.parseLong(text);
|
||||
return text != null ? Integer.decode(text) : null;
|
||||
}
|
||||
|
||||
protected Long getValueAsLong() {
|
||||
String text = getValueAsString();
|
||||
if (text == null) {
|
||||
return null;
|
||||
}
|
||||
return NumericUtilities.parseLong(text);
|
||||
return text != null ? Long.decode(text) : null;
|
||||
}
|
||||
|
||||
protected Double getValueAsDouble() {
|
||||
|
Loading…
Reference in New Issue
Block a user