Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 885340b6
authored
Jul 21, 2015
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix checking of wrong object type! Caught by sonarqube
1 parent
59613c7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
code/moya-beans/ejbModule/fi/codecrew/moya/beans/OrgRoleBean.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/OrgRoleBean.java
View file @
885340b
...
@@ -183,7 +183,7 @@ public class OrgRoleBean implements OrgRoleBeanLocal {
...
@@ -183,7 +183,7 @@ public class OrgRoleBean implements OrgRoleBeanLocal {
orgRole
.
setEventRoles
(
new
ArrayList
<>());
orgRole
.
setEventRoles
(
new
ArrayList
<>());
}
}
if
(!
orgRole
.
getEventRoles
().
contains
(
org
Role
))
{
if
(!
orgRole
.
getEventRoles
().
contains
(
event
Role
))
{
orgRole
.
getEventRoles
().
add
(
eventRole
);
orgRole
.
getEventRoles
().
add
(
eventRole
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment