Skip to content
Permalink
Browse files
no value lead to null and not emptySet
  • Loading branch information
rmannibucau committed Apr 21, 2018
1 parent 17b2797 commit 29f733bf297d05b538ff252ec3c350737254e955
Showing 2 changed files with 2 additions and 3 deletions.
@@ -16,7 +16,6 @@
*/
package org.apache.geronimo.microprofile.impl.jwtauth.jwt;

import static java.util.Collections.emptySet;
import static java.util.stream.Collectors.toSet;

import java.util.Set;
@@ -69,7 +68,7 @@ public <T> T getClaim(final String claimName) {
if (claim.getType() == Set.class) {
final JsonValue jsonValue = delegate.get(claimName);
if (jsonValue == null) {
return (T) emptySet();
return null;
}
if (jsonValue.getValueType() == JsonValue.ValueType.ARRAY) {
return (T) JsonArray.class.cast(jsonValue).stream()
@@ -14,7 +14,7 @@
<suite name="Microprofile-jwt-auth-TCK (dev)" verbose="1" configfailurepolicy="continue" >
<test name="Tests">
<classes>
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.PrincipalInjectionTest">
<class name="org.eclipse.microprofile.jwt.tck.container.jaxrs.RequiredClaimsTest">
</class>
</classes>
</test>

0 comments on commit 29f733b

Please sign in to comment.