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 --- linguistic/qa/complex/linguistic/HangulHanjaConversion.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linguistic') diff --git a/linguistic/qa/complex/linguistic/HangulHanjaConversion.java b/linguistic/qa/complex/linguistic/HangulHanjaConversion.java index 4b59d5265a20..b7e479d271b8 100644 --- a/linguistic/qa/complex/linguistic/HangulHanjaConversion.java +++ b/linguistic/qa/complex/linguistic/HangulHanjaConversion.java @@ -245,9 +245,9 @@ XComponent xDoc = DesktopTools.loadDoc(xMSF, FileToLoad, } private String[] getLeftAndRight(int counter, XSpreadsheet xSpreadsheet) { - String[] re = new String[2]; - re[0] = getCell(0, counter, xSpreadsheet).getFormula().trim(); - re[1] = getCell(1, counter, xSpreadsheet).getFormula().trim(); + String[] re = new String[] { + getCell(0, counter, xSpreadsheet).getFormula().trim(), + getCell(1, counter, xSpreadsheet).getFormula().trim() }; return re; } -- cgit v1.2.3