This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit fac244d0 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Better check

parent 5daae62f
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -76,7 +76,7 @@ public class SearchResultsDTO {
return true;
if (obj == null)
return false;
if (!getClass().isAssignableFrom(obj.getClass()) )
if (!(obj instanceof Person))
return false;
Person other = (Person) obj;
if (affiliation == null) {
......@@ -206,7 +206,7 @@ public class SearchResultsDTO {
return true;
if (obj == null)
return false;
if (!getClass().isAssignableFrom(obj.getClass()) )
if (!(obj instanceof GitProject))
return false;
GitProject other = (GitProject) obj;
if (project_id != other.project_id)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment