summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorrbuj <robert.buj@gmail.com>2014-09-10 00:10:54 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-09-10 08:19:40 +0000
commitdcd5aa95f75b5bd110e88d41c2589067ba8c3882 (patch)
tree2f673fc01689ea5474486e134a534de786b98364 /qadevOOo
parente8ac22f3aa98e16ae7e2b26ad9a99311ba42af4b (diff)
qadevOOo: Number Parsing
Change-Id: I284a1b2bcb61695b74ec51bb46cbb683abf83449 Reviewed-on: https://gerrit.libreoffice.org/11369 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/convwatch/PRNCompare.java4
-rw-r--r--qadevOOo/runner/graphical/IniFile.java2
-rw-r--r--qadevOOo/runner/graphical/JPEGComparator.java6
3 files changed, 6 insertions, 6 deletions
diff --git a/qadevOOo/runner/convwatch/PRNCompare.java b/qadevOOo/runner/convwatch/PRNCompare.java
index 551cffbaf29c..049c7e2a4d9d 100644
--- a/qadevOOo/runner/convwatch/PRNCompare.java
+++ b/qadevOOo/runner/convwatch/PRNCompare.java
@@ -59,7 +59,7 @@ public class PRNCompare
int nValue = 0;
try
{
- nValue = Integer.valueOf(sValue).intValue();
+ nValue = Integer.parseInt(sValue);
}
catch(java.lang.NumberFormatException e)
{
@@ -397,7 +397,7 @@ public class PRNCompare
sBack = sBack.substring(0, nIdx);
}
- nResult = Integer.valueOf(sBack).intValue();
+ nResult = Integer.parseInt(sBack);
}
catch(java.lang.NumberFormatException e)
{
diff --git a/qadevOOo/runner/graphical/IniFile.java b/qadevOOo/runner/graphical/IniFile.java
index 08cae29c823c..8c3e6f31168e 100644
--- a/qadevOOo/runner/graphical/IniFile.java
+++ b/qadevOOo/runner/graphical/IniFile.java
@@ -336,7 +336,7 @@ public class IniFile implements Enumeration<String>
{
try
{
- nValue = Integer.valueOf(sValue).intValue();
+ nValue = Integer.parseInt(sValue);
}
catch (java.lang.NumberFormatException e)
{
diff --git a/qadevOOo/runner/graphical/JPEGComparator.java b/qadevOOo/runner/graphical/JPEGComparator.java
index a0d2891dbc59..67267c914337 100644
--- a/qadevOOo/runner/graphical/JPEGComparator.java
+++ b/qadevOOo/runner/graphical/JPEGComparator.java
@@ -59,7 +59,7 @@ class NameDPIPage
String sDPI = sNameNoSuffix.substring(nDPIStart + 1, sNameNoSuffix.length() - 8);
try
{
- nDPI = Integer.valueOf(sDPI).intValue();
+ nDPI = Integer.parseInt(sDPI);
}
catch (java.lang.NumberFormatException e)
{
@@ -68,7 +68,7 @@ class NameDPIPage
String sPage = sNameNoSuffix.substring(sNameNoSuffix.length() - 4);
try
{
- nPage = Integer.valueOf(sPage).intValue();
+ nPage = Integer.parseInt(sPage);
}
catch (java.lang.NumberFormatException e)
{
@@ -641,7 +641,7 @@ public class JPEGComparator extends EnhancedComplexTestCase
sBack = sBack.substring(0, nIdx);
}
- nResult = Integer.valueOf(sBack).intValue();
+ nResult = Integer.parseInt(sBack);
}
catch (java.lang.NumberFormatException e)
{