From 3757c03fc8f138427e21c41ef5e66e8c5a98159c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 9 Jan 2015 14:51:38 +0200 Subject: java: simplify array creation and remove the need to worry about keeping indexes correct Change-Id: I9a5fc00f7e28f305279b41099274c96daebebb95 --- .../filter/detection/typeDetection/TypeDetection.java | 7 +++---- framework/qa/complex/dispatches/Interceptor.java | 6 ++---- framework/qa/complex/dispatches/checkdispatchapi.java | 3 +-- javaunohelper/com/sun/star/comp/helper/Bootstrap.java | 14 +++++++------- .../qa/complex/linguistic/HangulHanjaConversion.java | 6 +++--- .../Components/dialogcomponent/DialogComponent.java | 8 ++++---- odk/examples/DevelopersGuide/Config/ConfigExamples.java | 9 ++------- .../com/sun/star/lib/loader/InstallationFinder.java | 4 +--- .../ifc/configuration/backend/_XMultiLayerStratum.java | 16 +++++++--------- wizards/com/sun/star/wizards/form/CallFormWizard.java | 4 +--- wizards/com/sun/star/wizards/query/CallQueryWizard.java | 4 +--- .../com/sun/star/wizards/report/CallReportWizard.java | 4 +--- .../star/wizards/report/ReportTextImplementation.java | 12 ++++-------- .../reportbuilder/ReportBuilderImplementation.java | 6 ++---- wizards/com/sun/star/wizards/table/CallTableWizard.java | 4 +--- wizards/com/sun/star/wizards/ui/AggregateComponent.java | 6 +++--- 16 files changed, 43 insertions(+), 70 deletions(-) diff --git a/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java b/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java index 57558c41d78e..72fb1668d37a 100644 --- a/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java +++ b/filter/qa/complex/filter/detection/typeDetection/TypeDetection.java @@ -496,10 +496,9 @@ public class TypeDetection extends ComplexTestCase { * */ log.println("### checkStreamLoader() ###"); - String[] urls = new String[2]; - - urls[0] = helper.getClassURLString("TypeDetection.props"); - urls[1] = helper.getClassURLString("files.csv"); + String[] urls = new String[] { + helper.getClassURLString("TypeDetection.props"), + helper.getClassURLString("files.csv") }; for (int j=0; j 0) && (iselfunction.length > 0)) { - String[] curaggregatename = new String[2]; - curaggregatename[0] = CurDBMetaData.NumericFieldNames[iselfield[0]]; - curaggregatename[1] = this.sFunctionOperators[iselfunction[0]]; + String[] curaggregatename = new String[] { + CurDBMetaData.NumericFieldNames[iselfield[0]], + this.sFunctionOperators[iselfunction[0]] }; aggregatevector.add(curaggregatename); } } -- cgit