From 5604c4a49e87fb8f9472697615f52493758be997 Mon Sep 17 00:00:00 2001 From: Fabrizio Cucci Date: Thu, 21 Sep 2017 15:27:15 +0100 Subject: [PATCH] Fixed Javadoc and typo in CommonConfig Given the current implementation of `CommonConfig#getBinder` (which has been also pluralized in this commit), the `componentBag` instance field clearly contains also binders. --- .../org/glassfish/jersey/model/internal/CommonConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java b/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java index 34d3d31bdb..82bf7ed4cb 100644 --- a/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java +++ b/core-common/src/main/java/org/glassfish/jersey/model/internal/CommonConfig.java @@ -102,7 +102,7 @@ public class CommonConfig implements FeatureContext, ExtendedConfig { private final Map immutablePropertiesView; private final Collection immutablePropertyNames; /** - * Configured providers, does not include features and binders. + * Configured providers and binders, does not include features. */ private final ComponentBag componentBag; /** @@ -642,7 +642,7 @@ private Set configureBinders(InjectionManager injectionManager, Set allConfigured = Collections.newSetFromMap(new IdentityHashMap<>()); allConfigured.addAll(configured); - Collection binders = getBinder(configured); + Collection binders = getBinders(configured); if (!binders.isEmpty()) { injectionManager.register(CompositeBinder.wrap(binders)); allConfigured.addAll(binders); @@ -651,7 +651,7 @@ private Set configureBinders(InjectionManager injectionManager, Set getBinder(Set configured) { + private Collection getBinders(Set configured) { return componentBag.getInstances(ComponentBag.BINDERS_ONLY) .stream() .map(CAST_TO_BINDER)