--- dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/AddressManager.java 2016/02/04 08:39:26 2912 +++ dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/AddressManager.java 2016/02/05 08:01:18 2924 @@ -31,6 +31,7 @@ private TaskLogger logger = TaskLogger.getInstance(); + private int duplicateCount; List
addressList; @@ -326,7 +327,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit monday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -348,7 +351,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit tuesday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -368,7 +373,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit wednesday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -390,7 +397,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit thursday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -411,7 +420,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit friday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -433,7 +444,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit saturday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -454,7 +467,9 @@ } } } else { + duplicateCount++; logger.info( "Double visit sunday " + addr); + return; // if the entry is duplicate on one day that it covers - then it will be as well on all the othters } } @@ -659,7 +674,9 @@ return Collections.unmodifiableMap( unknownStreets ); } - + public int getDuplicateCount() { + return duplicateCount; + } public int getRejectedCount() { return rejectedEntries.size();