This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository wao. See http://git.codelutin.com/wao.git commit 616cce34c08c3d62770e36a79baf508b96faec56 Author: Brendan Le Ny <bleny@codelutin.com> Date: Tue Mar 3 10:25:01 2015 +0100 Correction d'un bogue dans le calcul de mois ayant le plus de jour (on ne mettait pas à jour le max, donc on tombait toujours sur le dernier mois) (testable-cl #6392)) --- wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java b/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java index 61ba078..8f07aaf 100644 --- a/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java +++ b/wao-persistence/src/main/java/fr/ifremer/wao/WaoUtils.java @@ -283,10 +283,10 @@ public class WaoUtils { T keyWithHighestValue = null; int maxObservationDays = 0; for (Map.Entry<T, Integer> entry : map.entrySet()) { - T aKey = entry.getKey(); Integer aObservationDays = entry.getValue(); if (aObservationDays > maxObservationDays) { - keyWithHighestValue = aKey; + maxObservationDays = aObservationDays; + keyWithHighestValue = entry.getKey(); } } return keyWithHighestValue; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.