Commit 19f17361c36e6f1fc4f89b76991ce788f192f77e
1 parent
cc41b97c
Exists in
master
Mudanças findbugs;
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
cit-portal-api/src/main/java/br/com/centralit/api/service/impl/MenuServiceImpl.java
... | ... | @@ -1248,7 +1248,7 @@ public class MenuServiceImpl extends GenericServiceImpl<Menu, Long> implements M |
1248 | 1248 | for (Grupo grupo : gruposAdd) { |
1249 | 1249 | if(!UtilColecao.isVazio(menu.getMenuGrupos())){ |
1250 | 1250 | for (MenuGrupo menuGrupoPresente : menu.getMenuGrupos()) { |
1251 | - if(menuGrupoPresente.getGrupo().getId() == grupo.getId()){ | |
1251 | + if(menuGrupoPresente.getGrupo().getId().equals(grupo.getId())){ | |
1252 | 1252 | permiteAddGrupo = false; |
1253 | 1253 | break; |
1254 | 1254 | } | ... | ... |