From: gmungoc Date: Fri, 21 Dec 2018 11:48:28 +0000 (+0000) Subject: JAL-1767 minimise local variable scope X-Git-Tag: Release_2_11_1_0~78^2~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=41d39ae9fa7cea070094d6e0230bca8c0cfba23a;p=jalview.git JAL-1767 minimise local variable scope --- diff --git a/src/jalview/project/Jalview2XML.java b/src/jalview/project/Jalview2XML.java index 9f796f2..74b6bf0 100644 --- a/src/jalview/project/Jalview2XML.java +++ b/src/jalview/project/Jalview2XML.java @@ -1822,12 +1822,10 @@ public class Jalview2XML { int rows = mData.getRows(); double[][] vals = new double[rows][]; - List dVector; - double[] vec; for (int i = 0; i < rows; i++) { - dVector = mData.getRow().get(i).getV(); + List dVector = mData.getRow().get(i).getV(); vals[i] = new double[dVector.size()]; int dvi = 0; for (Double d : dVector) @@ -1840,8 +1838,8 @@ public class Jalview2XML if (mData.getD() != null) { - dVector = mData.getD().getV(); - vec = new double[dVector.size()]; + List dVector = mData.getD().getV(); + double[] vec = new double[dVector.size()]; int dvi = 0; for (Double d : dVector) { @@ -1851,8 +1849,8 @@ public class Jalview2XML } if (mData.getE() != null) { - dVector = mData.getE().getV(); - vec = new double[dVector.size()]; + List dVector = mData.getE().getV(); + double[] vec = new double[dVector.size()]; int dvi = 0; for (Double d : dVector) {