changeset 6958:d2bf655bd278

AttributeWriter: Even better variable name.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 03 Sep 2013 10:33:38 +0200
parents 67e01d9c0519
children c80671932461
files artifacts/src/main/java/org/dive4elements/river/collections/AttributeWriter.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/collections/AttributeWriter.java	Tue Sep 03 10:31:26 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/collections/AttributeWriter.java	Tue Sep 03 10:33:38 2013 +0200
@@ -260,20 +260,20 @@
         // Preparations to be able to detect gaps.
         Map<Integer, ManagedFacet> mfmap =
             new HashMap<Integer, ManagedFacet>();
-        int numFacets = 0;
+        int maxPosition = 0;
         for (ManagedFacet mf: currentFacets) {
             int pos = mf.getPosition();
             mfmap.put(Integer.valueOf(pos), mf);
-            if (pos > numFacets) numFacets = pos;
+            if (pos > maxPosition) maxPosition = pos;
         }
 
         // TODO issue1458: debug what happens
 
         // Finally do gap correction
         // (note that posistions start at 1, not at zero).
-        if (numFacets != currentFacets.size()) {
+        if (maxPosition != currentFacets.size()) {
             int gap = 0;
-            for (int i = 1; i <= numFacets; i++) {
+            for (int i = 1; i <= maxPosition; i++) {
                 ManagedFacet mf = mfmap.get(Integer.valueOf(i));
                 if (mf == null) {
                     gap++;

http://dive4elements.wald.intevation.org