diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-12 15:09:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-19 14:57:17 +0200 |
commit | ff0ad0493ee1729c726587f667761b04101d774c (patch) | |
tree | 8c0f97e8740fbdb2ed0cdbfc5d99d82cae8f7df6 /qadevOOo/tests/java/ifc/i18n | |
parent | be1bb7b1ccee28be616b89cc95e97d656e78bbe3 (diff) |
java: use 'Integer.valueOf' instead of 'new Integer'
Change-Id: Ia8befb8d69914ce971174fc5f2ffc0e2f506a940
Diffstat (limited to 'qadevOOo/tests/java/ifc/i18n')
-rw-r--r-- | qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java b/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java index 7c6194d80e2e..81777db051d5 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java +++ b/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java @@ -355,7 +355,7 @@ public class _XBreakIterator extends MultiMethodTest { public void _beginOfSentence() { int iPos = 0; while( iPos < UnicodeString.length() ) { - Integer start = new Integer( oObj.beginOfSentence(UnicodeString, + Integer start = Integer.valueOf( oObj.beginOfSentence(UnicodeString, iPos, locale) ); if (start.intValue() >= 0 && !vSentenceStart.contains(start) ) { vSentenceStart.add( start ); diff --git a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java index 2664c0422241..afb317ed738c 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java +++ b/qadevOOo/tests/java/ifc/i18n/_XExtendedIndexEntrySupplier.java @@ -55,7 +55,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { for (int i = 0; i < locales.length; i++) { String[] algNames = oObj.getAlgorithmList(locales[i]); - algorithms.put(new Integer(i), algNames); + algorithms.put(Integer.valueOf(i), algNames); locResult = algNames != null && algNames.length > 0; System.out.println("Locale " + i + ": " + locales[i].Country+","+locales[i].Language); @@ -83,7 +83,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { log.println("Language: " + locales[i].Language); for (int j = 0; j < algorithms.size(); j++) { - String[] algs = algorithms.get(new Integer(j)); + String[] algs = algorithms.get(Integer.valueOf(j)); for (int k=0;k<algs.length;k++) { log.println("\t Algorythm :" + algs[k]); @@ -145,7 +145,7 @@ public class _XExtendedIndexEntrySupplier extends MultiMethodTest { boolean res = true; for (int i = 0; i < algorithms.size(); i++) { - String[] names = algorithms.get(new Integer(i)); + String[] names = algorithms.get(Integer.valueOf(i)); log.println("loading algorithms for " + locales[i].Country + "," + locales[i].Language); |