You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-lib/src/main/java/com/microsoft/azure/toolkit/intellij/common/AzureIntegerInput.java
+1-9Lines changed: 1 addition & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,11 @@ public class AzureIntegerInput extends BaseAzureTextInput<Integer> {
24
24
@Setter
25
25
privateIntegermaxValue;
26
26
27
-
publicAzureIntegerInput() {
28
-
super();
29
-
this.setDefaultValue(0);
30
-
}
31
-
32
27
@Nullable
33
28
@Override
34
29
publicIntegergetValue() {
35
30
finalStringtext = getText();
36
-
if (StringUtils.isBlank(text)) {
37
-
returngetDefaultValue();
38
-
}
39
-
if (!StringUtils.isNumeric(text)) {
31
+
if (StringUtils.isBlank(text) || !StringUtils.isNumeric(text)) {
40
32
thrownewAzureToolkitRuntimeException(String.format("\"%s\" is not an integer", text));
0 commit comments