Kaydet (Commit) 10e8e106 authored tarafından rbuj's avatar rbuj Kaydeden (comit) Noel Grandin

wizards: Number Parsing

Change-Id: Ic8d9c97ee6bc48c8440c27c5ae4fc9bb20fa5acd
Reviewed-on: https://gerrit.libreoffice.org/11359Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst c6a2868a
......@@ -224,7 +224,7 @@ public class StyleApplier
{
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SEMI_COLON);
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE);
return Integer.decode(sPropValue).intValue();
return Integer.parseInt(sPropValue);
}
}
}
......
......@@ -240,7 +240,7 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme
}
getRecordParser().setRecordFieldNames(sNewList);
getRecordParser().GroupFieldNames = JavaTools.ArrayoutofString(sGroupFieldNames, PropertyNames.SEMI_COLON);
int nOrigCommandType = Integer.valueOf(sCommandType).intValue();
int nOrigCommandType = Integer.parseInt(sCommandType);
getRecordParser().setCommandType(nOrigCommandType);
sMsgQueryCreationImpossible = JavaTools.replaceSubString(sMsgQueryCreationImpossible, getRecordParser().Command, "<STATEMENT>");
......
......@@ -189,7 +189,7 @@ public class FilterComponent
*/
private void togglefollowingControlRow(String _scurName)
{
int Index = Integer.valueOf(getIndexNumber(_scurName)).intValue();
int Index = Integer.parseInt(getIndexNumber(_scurName));
if (Index < oControlRows.length)
{
boolean bValue = oControlRows[Index - 1].isConditionComplete();
......
......@@ -763,7 +763,7 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener
{
Object image = ((EventObject) event).Source;
String controlName = (String) Helper.getUnoPropertyValue(getModel(image), PropertyNames.PROPERTY_NAME);
return Integer.valueOf(controlName.substring(6 + name.length())).intValue();
return Integer.parseInt(controlName.substring(6 + name.length()));
}
......
......@@ -420,7 +420,7 @@ public class DataAwareFields
}
else if (value instanceof String)
{
return Double.valueOf((String) value).doubleValue();
return Double.parseDouble((String) value);
}
else if (value instanceof short[])
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment