File tree 1 file changed +2
-2
lines changed
openid-connect-server/src/main/java/org/mitre/oauth2/repository/impl
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -190,15 +190,15 @@ public Set<OAuth2AccessTokenEntity> getAccessTokensByUserName(String name) {
190
190
TypedQuery <OAuth2AccessTokenEntity > query = manager .createNamedQuery (OAuth2AccessTokenEntity .QUERY_BY_NAME , OAuth2AccessTokenEntity .class );
191
191
query .setParameter (OAuth2AccessTokenEntity .PARAM_NAME , name );
192
192
List <OAuth2AccessTokenEntity > results = query .getResultList ();
193
- return results != null ? new HashSet <>(query . getResultList () ) : new HashSet <>();
193
+ return results != null ? new HashSet <>(results ) : new HashSet <>();
194
194
}
195
195
196
196
@ Override
197
197
public Set <OAuth2RefreshTokenEntity > getRefreshTokensByUserName (String name ) {
198
198
TypedQuery <OAuth2RefreshTokenEntity > query = manager .createNamedQuery (OAuth2RefreshTokenEntity .QUERY_BY_NAME , OAuth2RefreshTokenEntity .class );
199
199
query .setParameter (OAuth2RefreshTokenEntity .PARAM_NAME , name );
200
200
List <OAuth2RefreshTokenEntity > results = query .getResultList ();
201
- return results != null ? new HashSet <>(query . getResultList () ) : new HashSet <>();
201
+ return results != null ? new HashSet <>(results ) : new HashSet <>();
202
202
}
203
203
204
204
@ Override
You can’t perform that action at this time.
0 commit comments