changeset 877:06d1cace9141

Use equals() to compare int-values of Integer objects.
author Tom Gottfried <tom@intevation.de>
date Thu, 11 Feb 2016 16:19:52 +0100
parents c0883477db3f
children 9cf4b2ac3e2a
files src/main/java/de/intevation/lada/rest/StatusService.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/StatusService.java	Thu Feb 11 16:15:40 2016 +0100
+++ b/src/main/java/de/intevation/lada/rest/StatusService.java	Thu Feb 11 16:19:52 2016 +0100
@@ -254,10 +254,9 @@
                     i < userInfo.getFunktionenForMst(status.getErzeuger()).size();
                     i++
                 ) {
-                    if (userInfo.getFunktionenForMst(
-                            status.getErzeuger()).get(i) ==
-                                currentStatus.getStatusStufe() + 1 &&
-                        currentStatus.getStatusWert() != 0
+                    if (userInfo.getFunktionenForMst(status.getErzeuger())
+                            .get(i).equals(currentStatus.getStatusStufe() + 1)
+                        && currentStatus.getStatusWert() != 0
                     ) {
                         next = true;
                     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)