cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1154328 - /cocoon/cocoon3/trunk/cocoon-stax/src/main/java/org/apache/cocoon/stax/navigation/InSubtreeNavigator.java
Date Fri, 05 Aug 2011 17:57:21 GMT
Author: anathaniel
Date: Fri Aug  5 17:57:21 2011
New Revision: 1154328

URL: http://svn.apache.org/viewvc?rev=1154328&view=rev
Log:
Limit scope of @SuppressWarnings("unchecked")

Modified:
    cocoon/cocoon3/trunk/cocoon-stax/src/main/java/org/apache/cocoon/stax/navigation/InSubtreeNavigator.java

Modified: cocoon/cocoon3/trunk/cocoon-stax/src/main/java/org/apache/cocoon/stax/navigation/InSubtreeNavigator.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-stax/src/main/java/org/apache/cocoon/stax/navigation/InSubtreeNavigator.java?rev=1154328&r1=1154327&r2=1154328&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-stax/src/main/java/org/apache/cocoon/stax/navigation/InSubtreeNavigator.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-stax/src/main/java/org/apache/cocoon/stax/navigation/InSubtreeNavigator.java
Fri Aug  5 17:57:21 2011
@@ -92,7 +92,6 @@ public final class InSubtreeNavigator im
      * 
      * @see org.apache.cocoon.stax.navigation.Navigator#fulfillsCriteria(javax.xml.stream.events.XMLEvent)
      */
-    @SuppressWarnings("unchecked")
     public boolean fulfillsCriteria(XMLEvent event) {
         if (event.isStartElement()) {
             StartElement element = (StartElement) event;
@@ -126,6 +125,7 @@ public final class InSubtreeNavigator im
                     Pattern namePattern = Pattern.compile(attribute.getName().getLocalPart());
                     Pattern valuePattern = Pattern.compile(attribute.getValue());
 
+                    @SuppressWarnings("unchecked")
                     Iterator<Attribute> elementAttributeIter = element.getAttributes();
                     while (elementAttributeIter.hasNext()) {
                         Attribute elementAttribute = elementAttributeIter.next();



Mime
View raw message