diff --git a/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/JaxRSFeatureObjectMapper.java b/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/JaxRSFeatureObjectMapper.java index defec1eaac..d759e56243 100644 --- a/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/JaxRSFeatureObjectMapper.java +++ b/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/JaxRSFeatureObjectMapper.java @@ -20,6 +20,10 @@ import org.glassfish.jersey.jackson.internal.AbstractObjectMapper; import org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.JaxRSFeature; + +/** + * The Jackson {@link ObjectMapper} supporting {@link JaxRSFeature}s. + */ public class JaxRSFeatureObjectMapper extends AbstractObjectMapper { public JaxRSFeatureObjectMapper() { diff --git a/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/JaxrsFeatureBag.java b/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/JaxrsFeatureBag.java index 288cd5353c..4711b56808 100644 --- a/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/JaxrsFeatureBag.java +++ b/media/json-jackson/src/main/java/org/glassfish/jersey/jackson/internal/JaxrsFeatureBag.java @@ -23,6 +23,9 @@ import java.util.List; import java.util.Optional; +/** + * Internal holder class for {@link JaxRSFeature} settings and their values. + */ public class JaxrsFeatureBag { protected static final String JAXRS_FEATURE = "jersey.config.jackson.jaxrs.feature"; diff --git a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/JaxRSFeatureTest.java b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/JaxRSFeatureTest.java index 0cde9d88d5..431f8437a7 100644 --- a/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/JaxRSFeatureTest.java +++ b/media/json-jackson/src/test/java/org/glassfish/jersey/jackson/internal/JaxRSFeatureTest.java @@ -18,7 +18,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import org.glassfish.jersey.jackson.JacksonFeature; -import org.glassfish.jersey.jackson.JaxRSObjectMapper; +import org.glassfish.jersey.jackson.JaxRSFeatureObjectMapper; import org.glassfish.jersey.jackson.internal.jackson.jaxrs.cfg.JaxRSFeature; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; @@ -88,7 +88,7 @@ public static class JaxrsFetureContextResolver implements ContextResolver type) { - JaxRSObjectMapper objectMapper = new JaxRSObjectMapper(); + JaxRSFeatureObjectMapper objectMapper = new JaxRSFeatureObjectMapper(); objectMapper.disable(JaxRSFeature.READ_FULL_STREAM); return objectMapper; }