diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-14 10:47:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-14 12:05:48 +0200 |
commit | 27336e23d49878ecd7e8d3fbc8c2114c0ebcbc2b (patch) | |
tree | 6081b68685aedefb4a2ec10bf87dbe75bbd14dad /qadevOOo/tests/java/ifc/i18n | |
parent | c626897c09aeec3781753e82265db745d6e94c64 (diff) |
cid#1326663 to cid#1326670 DLS: Dead local store
Change-Id: Ia60aa345ae35ba1f7a0b5d3aadc003aedf98ad9f
Diffstat (limited to 'qadevOOo/tests/java/ifc/i18n')
-rw-r--r-- | qadevOOo/tests/java/ifc/i18n/_XLocaleData.java | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java b/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java index b9f1ba126c51..d2ba440295ed 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java +++ b/qadevOOo/tests/java/ifc/i18n/_XLocaleData.java @@ -155,10 +155,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getAllCalendars() { boolean res = true; boolean printit = false; - Calendar[] calendar = new Calendar[1]; for (int i=0;i<7;i++) { - calendar = oObj.getAllCalendars(getLocale(i)); + Calendar[] calendar = oObj.getAllCalendars(getLocale(i)); for (int j=0;j<calendar.length;j++) { if (! goodCalendar(calendar[j]) ) { printit = true; @@ -181,10 +180,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getAllCurrencies() { boolean res = true; boolean printit = false; - Currency[] currency = new Currency[1]; for (int i=0;i<7;i++) { - currency = oObj.getAllCurrencies(getLocale(i)); + Currency[] currency = oObj.getAllCurrencies(getLocale(i)); for (int j=0;j<currency.length;j++) { if (! goodCurrency(currency[j]) ) { printit=true; @@ -207,10 +205,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getAllFormats() { boolean res = true; boolean printit = false; - FormatElement[] format = new FormatElement[1]; for (int i=0;i<7;i++) { - format = oObj.getAllFormats(getLocale(i)); + FormatElement[] format = oObj.getAllFormats(getLocale(i)); for (int j=0;j<format.length;j++) { if (! goodFormat(format[j]) ) { printit = true; @@ -232,10 +229,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getCollatorImplementations() { boolean res = true; boolean printit = false; - Implementation[] impl = new Implementation[1]; for (int i=0;i<7;i++) { - impl = oObj.getCollatorImplementations(getLocale(i)); + Implementation[] impl = oObj.getCollatorImplementations(getLocale(i)); for (int j=0;j<impl.length;j++) { if ((impl[j].unoID.equals(""))) { printit = true; @@ -258,10 +254,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getSearchOptions() { boolean res = true; boolean printit = false; - String[] str = new String[1]; for (int i=0;i<7;i++) { - str = oObj.getSearchOptions(getLocale(i)); + String[] str = oObj.getSearchOptions(getLocale(i)); for (int j=0;j<str.length;j++) { if ((str[j].equals(""))) { printit = true; @@ -284,10 +279,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getCollationOptions() { boolean res = true; boolean printit = false; - String[] str = new String[1]; for (int i=0;i<7;i++) { - str = oObj.getCollationOptions(getLocale(i)); + String[] str = oObj.getCollationOptions(getLocale(i)); for (int j=0;j<str.length;j++) { if ((str[j].equals(""))) { printit = true; @@ -310,10 +304,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getTransliterations() { boolean res = true; boolean printit = false; - String[] str = new String[1]; for (int i=0;i<7;i++) { - str = oObj.getTransliterations(getLocale(i)); + String[] str = oObj.getTransliterations(getLocale(i)); for (int j=0;j<str.length;j++) { if ((str[j].equals(""))) { printit = true; @@ -358,10 +351,9 @@ public class _XLocaleData extends MultiMethodTest { public void _getReservedWord() { boolean res = true; boolean printit = false; - String[] str = new String[1]; for (int i=0;i<7;i++) { - str = oObj.getReservedWord(getLocale(i)); + String[] str = oObj.getReservedWord(getLocale(i)); for (int j=0;j<str.length;j++) { if ((str[j].equals(""))) { printit = true; |