[jboss-cvs] JBossAS SVN: r94608 - projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/jboss.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Oct 9 11:27:34 EDT 2009
Author: remy.maucherat at jboss.com
Date: 2009-10-09 11:27:34 -0400 (Fri, 09 Oct 2009)
New Revision: 94608
Modified:
projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/jboss/JBossWebMetaData.java
Log:
- Remove dead code.
Modified: projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/jboss/JBossWebMetaData.java
===================================================================
--- projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/jboss/JBossWebMetaData.java 2009-10-09 15:26:02 UTC (rev 94607)
+++ projects/metadata/web/trunk/src/main/java/org/jboss/metadata/web/jboss/JBossWebMetaData.java 2009-10-09 15:27:34 UTC (rev 94608)
@@ -86,7 +86,6 @@
import org.jboss.metadata.web.spec.SessionConfigMetaData;
import org.jboss.metadata.web.spec.Web25MetaData;
import org.jboss.metadata.web.spec.WebMetaData;
-import org.jboss.metadata.web.spec.WebResourceCollectionMetaData;
import org.jboss.metadata.web.spec.WelcomeFileListMetaData;
/**
@@ -1158,41 +1157,6 @@
}
servlet.setServletSecurity(servletSecurity);
}
- /*
- HashSet<String> urlPatterns = new HashSet<String>();
- for (ServletMappingMetaData servletMapping : servletMappings)
- {
- if (servletMapping.getServletName() != null
- && servletMapping.getServletName().equals(servlet.getServletName())
- && servletMapping.getUrlPatterns() != null)
- {
- urlPatterns.addAll(servletMapping.getUrlPatterns());
- }
- }
- if (annotation.getSecurityConstraints() != null)
- {
- List<SecurityConstraintMetaData> constraints = annotation.getSecurityConstraints();
- for (SecurityConstraintMetaData securityConstraint : constraints)
- {
- if (securityConstraint.getResourceCollections() != null)
- {
- for (WebResourceCollectionMetaData wrc : securityConstraint.getResourceCollections())
- {
- HashSet<String> newUrlPatterns = new HashSet<String>();
- newUrlPatterns.addAll(urlPatterns);
- if (wrc.getUrlPatterns() == null)
- {
- newUrlPatterns.addAll(wrc.getUrlPatterns());
- }
- List<String> finalUrlPatterns = new ArrayList<String>();
- finalUrlPatterns.addAll(newUrlPatterns);
- wrc.setUrlPatterns(finalUrlPatterns);
- }
- }
- }
- }
- */
-
}
}
}
More information about the jboss-cvs-commits
mailing list