[Libreoffice-commits] core.git: qadevOOo/runner

rbuj robert.buj at gmail.com
Wed Sep 10 01:20:06 PDT 2014


 qadevOOo/runner/convwatch/PRNCompare.java     |    4 ++--
 qadevOOo/runner/graphical/IniFile.java        |    2 +-
 qadevOOo/runner/graphical/JPEGComparator.java |    6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit dcd5aa95f75b5bd110e88d41c2589067ba8c3882
Author: rbuj <robert.buj at gmail.com>
Date:   Wed Sep 10 00:10:54 2014 +0200

    qadevOOo: Number Parsing
    
    Change-Id: I284a1b2bcb61695b74ec51bb46cbb683abf83449
    Reviewed-on: https://gerrit.libreoffice.org/11369
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/qadevOOo/runner/convwatch/PRNCompare.java b/qadevOOo/runner/convwatch/PRNCompare.java
index 551cffb..049c7e2 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 08cae29..8c3e6f3 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 a0d2891..67267c9 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)
         {


More information about the Libreoffice-commits mailing list