diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-09 16:29:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-10 08:15:57 +0000 |
commit | 10e8e10605b9c52bd7fd8a0665dd4d358c733a66 (patch) | |
tree | 97d64bcfe3b6c8cf0b8906a87354bc25a5995251 /wizards | |
parent | c6a2868a75a90005f9d711d6f1419ba704670781 (diff) |
wizards: Number Parsing
Change-Id: Ic8d9c97ee6bc48c8440c27c5ae4fc9bb20fa5acd
Reviewed-on: https://gerrit.libreoffice.org/11359
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards')
5 files changed, 5 insertions, 5 deletions
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java index 2cd30ffcc08e..dfb5c8acce4e 100644 --- a/wizards/com/sun/star/wizards/form/StyleApplier.java +++ b/wizards/com/sun/star/wizards/form/StyleApplier.java @@ -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); } } } diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java index ee477c473205..efc840283f08 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java +++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java @@ -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>"); diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java index 3a2b78b0109e..4c67f0b6c70a 100644 --- a/wizards/com/sun/star/wizards/ui/FilterComponent.java +++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java @@ -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(); diff --git a/wizards/com/sun/star/wizards/ui/ImageList.java b/wizards/com/sun/star/wizards/ui/ImageList.java index 78c19ea3400f..35c301dc833a 100644 --- a/wizards/com/sun/star/wizards/ui/ImageList.java +++ b/wizards/com/sun/star/wizards/ui/ImageList.java @@ -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())); } diff --git a/wizards/com/sun/star/wizards/ui/event/DataAwareFields.java b/wizards/com/sun/star/wizards/ui/event/DataAwareFields.java index c36e8b78a2c7..5df239a9ec93 100644 --- a/wizards/com/sun/star/wizards/ui/event/DataAwareFields.java +++ b/wizards/com/sun/star/wizards/ui/event/DataAwareFields.java @@ -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[]) { |