From 41d39ae9fa7cea070094d6e0230bca8c0cfba23a Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 21 Dec 2018 11:48:28 +0000 Subject: [PATCH] JAL-1767 minimise local variable scope --- src/jalview/project/Jalview2XML.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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) { -- 1.7.10.2