From ada58ea65abeff55dcbdb2bab8dc80ed92d632bd Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 8 Sep 2016 10:35:57 +1000 Subject: [PATCH] javadoc --- .../org/eclipse/jetty/util/IncludeExcludeSet.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExcludeSet.java b/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExcludeSet.java index 179dfcd8eff..0e0ea4c1002 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExcludeSet.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/IncludeExcludeSet.java @@ -65,7 +65,10 @@ public class IncludeExcludeSet implements Predicate /** * Construct an IncludeExclude - * @param setClass The type of {@link Set} to using internally + * @param setClass The type of {@link Set} to using internally to hold patterns. Two instances will be created. + * one for include patterns and one for exclude patters. If the class is also a {@link Predicate}, + * then it is also used as the item test for the set, otherwise a {@link SetContainsPredicate} instance + * is created. * @param The type of a set to use as the backing store */ public > IncludeExcludeSet(Class setClass) @@ -84,9 +87,12 @@ public class IncludeExcludeSet implements Predicate _includePredicate = new SetContainsPredicate(_includes); } - if(_excludes instanceof Predicate) { + if(_excludes instanceof Predicate) + { _excludePredicate = (Predicate)_excludes; - } else { + } + else + { _excludePredicate = new SetContainsPredicate(_excludes); } }