[Libreoffice-commits] core.git: wizards/com
rbuj
robert.buj at gmail.com
Wed Sep 10 01:16:24 PDT 2014
wizards/com/sun/star/wizards/form/StyleApplier.java | 2 +-
wizards/com/sun/star/wizards/report/ReportTextImplementation.java | 2 +-
wizards/com/sun/star/wizards/ui/FilterComponent.java | 2 +-
wizards/com/sun/star/wizards/ui/ImageList.java | 2 +-
wizards/com/sun/star/wizards/ui/event/DataAwareFields.java | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 10e8e10605b9c52bd7fd8a0665dd4d358c733a66
Author: rbuj <robert.buj at gmail.com>
Date: Tue Sep 9 16:29:01 2014 +0200
wizards: Number Parsing
Change-Id: Ic8d9c97ee6bc48c8440c27c5ae4fc9bb20fa5acd
Reviewed-on: https://gerrit.libreoffice.org/11359
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index 2cd30ff..dfb5c8a 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 ee477c4..efc8402 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 3a2b78b..4c67f0b 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 78c19ea..35c301d 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 c36e8b7..5df239a 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[])
{
More information about the Libreoffice-commits
mailing list