X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FCoordinate.java;h=085c502b363a5c81dfe18d45ebd583a92a3360c2;hp=a230e775a21424a9d1fcc06aa004d0b35e92d015;hb=7f5ed2be62905bd37717376dc22d09e5ea7edb4d;hpb=b361869e590bbca32664c16ac24d6296926594a5 diff --git a/tim/prune/data/Coordinate.java b/tim/prune/data/Coordinate.java index a230e77..085c502 100644 --- a/tim/prune/data/Coordinate.java +++ b/tim/prune/data/Coordinate.java @@ -84,7 +84,7 @@ public abstract class Coordinate // count numeric fields - 1=d, 2=dm, 3=dm.m/dms, 4=dms.s int numFields = 0; - boolean inNumeric = false; + boolean isNumeric = false; char currChar; long[] fields = new long[4]; // needs to be long for lengthy decimals long[] denoms = new long[4]; @@ -97,9 +97,9 @@ public abstract class Coordinate currChar = inString.charAt(i); if (currChar >= '0' && currChar <= '9') { - if (!inNumeric) + if (!isNumeric) { - inNumeric = true; + isNumeric = true; numFields++; denoms[numFields-1] = 1; } @@ -111,7 +111,7 @@ public abstract class Coordinate } else { - inNumeric = false; + isNumeric = false; // Remember delimiters if (currChar != ',' && currChar != '.') {otherDelims[numFields] = true;} }