File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,9 @@ private String getBuildFolderPath(Sketch s) {
154
154
}
155
155
156
156
private long parseInt (String value ){
157
- if (value .endsWith ("m" ) || value .endsWith ("M" )) return 1024 *1024 *Long .parseLong (value .substring (0 , (value .length () - 1 )));
158
- else if (value .endsWith ("k" ) || value .endsWith ("K" )) return 1024 *Long .parseLong (value .substring (0 , (value .length () - 1 )));
159
- else if (value .startsWith ("0x" ) || value .startsWith ("0X" )) return Long .parseLong (value .substring (2 ), 16 );
160
- else return Integer .parseInt (value );
157
+ if (value .endsWith ("m" ) || value .endsWith ("M" )) return 1024 *1024 *Long .decode (value .substring (0 , (value .length () - 1 )));
158
+ else if (value .endsWith ("k" ) || value .endsWith ("K" )) return 1024 *Long .decode (value .substring (0 , (value .length () - 1 )));
159
+ else return Long .decode (value );
161
160
}
162
161
163
162
private long getIntPref (String name ){
You can’t perform that action at this time.
0 commit comments