private void addReachableRoles(Set<GrantedAuthority> reachableRoles,
			GrantedAuthority authority) {

		for (GrantedAuthority testAuthority : reachableRoles) {
			String testKey = testAuthority.getAuthority();
			if ((testKey != null) && (testKey.equals(authority.getAuthority()))) {
				return;
			}
		}
		reachableRoles.add(authority);
	}
private void addReachableRoles(Set<GrantedAuthority> reachableRoles,
			GrantedAuthority authority) {

		for (GrantedAuthority testAuthority : reachableRoles) {
			String testKey = testAuthority.getAuthority();
			if ((testKey != null) && (testKey.equals(authority.getAuthority()))) {
				return;
			}
		}
		reachableRoles.add(authority);
	}
private void addReachableRoles ( Set < GrantedAuthority > reachableRoles , GrantedAuthority authority ) { for ( GrantedAuthority testAuthority : reachableRoles ) { String testKey = testAuthority . getAuthority ( ) ; if ( ( testKey != null ) && ( testKey . equals ( authority . getAuthority ( ) ) ) ) { return ; } } reachableRoles . add ( authority ) ; }
SEC-863
SEC - 863