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

qadevOOo: Number Parsing

Change-Id: I284a1b2bcb61695b74ec51bb46cbb683abf83449
Reviewed-on: https://gerrit.libreoffice.org/11369Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst e8ac22f3
......@@ -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)
{
......
......@@ -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)
{
......
......@@ -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)
{
......
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