[jboss-cvs] JBossAS SVN: r57875 - projects/microcontainer/trunk/container/src/main/org/jboss/virtual/plugins/vfs/helpers
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 26 23:46:29 EDT 2006
Author: scott.stark at jboss.org
Date: 2006-10-26 23:46:27 -0400 (Thu, 26 Oct 2006)
New Revision: 57875
Modified:
projects/microcontainer/trunk/container/src/main/org/jboss/virtual/plugins/vfs/helpers/SuffixMatchFilter.java
Log:
Switch the default VisitorAttributes to VisitorAttributes.DEFAULT
Modified: projects/microcontainer/trunk/container/src/main/org/jboss/virtual/plugins/vfs/helpers/SuffixMatchFilter.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/virtual/plugins/vfs/helpers/SuffixMatchFilter.java 2006-10-27 03:41:57 UTC (rev 57874)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/virtual/plugins/vfs/helpers/SuffixMatchFilter.java 2006-10-27 03:46:27 UTC (rev 57875)
@@ -24,7 +24,6 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
-import java.util.List;
import org.jboss.logging.Logger;
import org.jboss.virtual.VirtualFile;
@@ -46,7 +45,7 @@
/**
* Create a new SuffixMatchFilter,
- * using {@link VisitorAttributes#RECURSE_LEAVES_ONLY}
+ * using {@link VisitorAttributes#DEFAULT}
*
* @param suffix the suffix
* @throws IllegalArgumentException for a null suffix
@@ -60,9 +59,10 @@
* Create a new SuffixMatchFilter.
*
* @param suffix the suffix
- * @param attributes the attributes, pass null to use {@link VisitorAttributes#RECURSE_LEAVES_ONLY}
+ * @param attributes the attributes, pass null to use {@link VisitorAttributes#DEFAULT}
* @throws IllegalArgumentException for a null suffix
*/
+ @SuppressWarnings("unchecked")
public SuffixMatchFilter(String suffix, VisitorAttributes attributes)
{
this(Collections.EMPTY_LIST, attributes);
@@ -81,12 +81,12 @@
/**
* Create a new SuffixMatchFilter.
* @param suffixes - the list of file suffixes to accept.
- * @param attributes the attributes, pass null to use {@link VisitorAttributes#RECURSE_LEAVES_ONLY}
+ * @param attributes the attributes, pass null to use {@link VisitorAttributes#DEFAULT}
* @throws IllegalArgumentException for a null suffixes
*/
public SuffixMatchFilter(Collection<String> suffixes, VisitorAttributes attributes)
{
- super(attributes == null ? VisitorAttributes.RECURSE_LEAVES_ONLY : attributes);
+ super(attributes == null ? VisitorAttributes.DEFAULT : attributes);
if (suffixes == null)
throw new IllegalArgumentException("Null suffixes");
this.suffixes = new ArrayList<String>();
More information about the jboss-cvs-commits
mailing list