r4131 - trunk/src/main/java/fr/ifremer/isisfish/entities
Author: kmorin Date: 2014-11-10 15:54:49 +0000 (Mon, 10 Nov 2014) New Revision: 4131 Url: http://forge.codelutin.com/projects/isis-fish/repository/revisions/4131 Log: fixes #5936 Passer le niveau de log des valeurs n?\195?\169gative en warn Modified: trunk/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java Modified: trunk/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java =================================================================== --- trunk/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java 2014-11-10 14:51:18 UTC (rev 4130) +++ trunk/src/main/java/fr/ifremer/isisfish/entities/PopulationSeasonInfoImpl.java 2014-11-10 15:54:49 UTC (rev 4131) @@ -522,10 +522,10 @@ int x = c * nbSecteur + d; int y = c * nbSecteur + a; - double ancienne_val = mat.getValue(x, x) - coef; - mat.setValue(x, x, ancienne_val); - if (ancienne_val < 0) { - log.info("Erreur dans la migration, un coef est negatif"); + double ancienneVal = mat.getValue(x, x) - coef; + mat.setValue(x, x, ancienneVal); + if (ancienneVal < 0) { + log.warn("Erreur dans la migration, un coef est negatif"); } mat.setValue(x, y, coef); } @@ -550,9 +550,9 @@ int y = posClasse * nbSecteur + posSecteurA; // toutes les migrations doivent etre precisees. // Peut-etre faire un teste pour que les migrations ne depassent pas 1 - double ancienne_val = mat.getValue(x, x); - mat.setValue(x, x, ancienne_val - coef); - if (ancienne_val < 0) { + double ancienneVal = mat.getValue(x, x); + mat.setValue(x, x, ancienneVal - coef); + if (ancienneVal < 0) { /*log.info("Erreur dans la migration, un coef est negatif");*/ } mat.setValue(x, y, coef);
participants (1)
-
kmorin@users.forge.codelutin.com