Browse code

Remove the real fix

Thomas Fricker authored on 22/06/2017 12:13:31
Showing 1 changed files
... ...
@@ -172,47 +172,4 @@ public class SecurityContext {
172 172
 		orgUnitsRoles.put(ouUid, roles);
173 173
 	}
174 174
 
175
-	@Override
176
-	public int hashCode() {
177
-		final int prime = 31;
178
-		int result = 1;
179
-		result = prime * result + ((domainUid == null) ? 0 : domainUid.hashCode());
180
-		result = prime * result + ((orgUnitsRoles == null) ? 0 : orgUnitsRoles.hashCode());
181
-		result = prime * result + ((roles == null) ? 0 : roles.hashCode());
182
-		result = prime * result + ((subject == null) ? 0 : subject.hashCode());
183
-		return result;
184
-	}
185
-
186
-	@Override
187
-	public boolean equals(Object obj) {
188
-		if (this == obj)
189
-			return true;
190
-		if (obj == null)
191
-			return false;
192
-		if (getClass() != obj.getClass())
193
-			return false;
194
-		SecurityContext other = (SecurityContext) obj;
195
-		if (domainUid == null) {
196
-			if (other.domainUid != null)
197
-				return false;
198
-		} else if (!domainUid.equals(other.domainUid))
199
-			return false;
200
-		if (orgUnitsRoles == null) {
201
-			if (other.orgUnitsRoles != null)
202
-				return false;
203
-		} else if (!orgUnitsRoles.equals(other.orgUnitsRoles))
204
-			return false;
205
-		if (roles == null) {
206
-			if (other.roles != null)
207
-				return false;
208
-		} else if (!roles.equals(other.roles))
209
-			return false;
210
-		if (subject == null) {
211
-			if (other.subject != null)
212
-				return false;
213
-		} else if (!subject.equals(other.subject))
214
-			return false;
215
-		return true;
216
-	}
217
-
218 175
 }