jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1196204 - in /incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena: datatypes/xsd/XSDDatatype.java rdf/arp/StAX2SAX.java
Date Tue, 01 Nov 2011 18:53:45 GMT
Author: andy
Date: Tue Nov  1 18:53:45 2011
New Revision: 1196204

URL: http://svn.apache.org/viewvc?rev=1196204&view=rev
Log:
remove warnings.

Modified:
    incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.java
    incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/rdf/arp/StAX2SAX.java

Modified: incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.java?rev=1196204&r1=1196203&r2=1196204&view=diff
==============================================================================
--- incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.java
(original)
+++ incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.java
Tue Nov  1 18:53:45 2011
@@ -10,31 +10,33 @@
 
 package com.hp.hpl.jena.datatypes.xsd;
 
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.net.URI;
-import java.io.Reader;
-import java.util.*;
-
-import com.hp.hpl.jena.datatypes.*;
-import com.hp.hpl.jena.datatypes.xsd.impl.*;
-import com.hp.hpl.jena.graph.impl.LiteralLabel;
-
-import org.apache.xerces.impl.dv.util.Base64;
-import org.apache.xerces.impl.dv.util.HexBin;
-import org.apache.xerces.impl.dv.xs.DecimalDV;
-import org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl;
-import org.apache.xerces.impl.dv.*;
-import org.apache.xerces.impl.validation.ValidationState;
-import org.apache.xerces.util.SymbolHash;
-
-import org.apache.xerces.parsers.XMLGrammarPreparser;
-import org.apache.xerces.xni.grammars.XMLGrammarDescription;
-import org.apache.xerces.xni.parser.XMLInputSource;
-import org.apache.xerces.xs.XSConstants;
-import org.apache.xerces.xs.XSTypeDefinition;
-import org.apache.xerces.xs.XSNamedMap;
-import org.apache.xerces.xni.grammars.XSGrammar;
+import java.io.Reader ;
+import java.math.BigDecimal ;
+import java.math.BigInteger ;
+import java.util.ArrayList ;
+import java.util.List ;
+
+import org.apache.xerces.impl.dv.* ;
+import org.apache.xerces.impl.dv.util.Base64 ;
+import org.apache.xerces.impl.dv.util.HexBin ;
+import org.apache.xerces.impl.dv.xs.DecimalDV ;
+import org.apache.xerces.impl.dv.xs.XSSimpleTypeDecl ;
+import org.apache.xerces.impl.validation.ValidationState ;
+import org.apache.xerces.parsers.XMLGrammarPreparser ;
+import org.apache.xerces.util.SymbolHash ;
+import org.apache.xerces.xni.grammars.XMLGrammarDescription ;
+import org.apache.xerces.xni.grammars.XSGrammar ;
+import org.apache.xerces.xni.parser.XMLInputSource ;
+import org.apache.xerces.xs.XSConstants ;
+import org.apache.xerces.xs.XSNamedMap ;
+import org.apache.xerces.xs.XSTypeDefinition ;
+
+import com.hp.hpl.jena.datatypes.BaseDatatype ;
+import com.hp.hpl.jena.datatypes.DatatypeFormatException ;
+import com.hp.hpl.jena.datatypes.RDFDatatype ;
+import com.hp.hpl.jena.datatypes.TypeMapper ;
+import com.hp.hpl.jena.datatypes.xsd.impl.* ;
+import com.hp.hpl.jena.graph.impl.LiteralLabel ;
 
 /**
  * Representation of an XSD datatype based on the Xerces-2 

Modified: incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/rdf/arp/StAX2SAX.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/rdf/arp/StAX2SAX.java?rev=1196204&r1=1196203&r2=1196204&view=diff
==============================================================================
--- incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/rdf/arp/StAX2SAX.java (original)
+++ incubator/jena/Jena2/jena/trunk/src/main/java/com/hp/hpl/jena/rdf/arp/StAX2SAX.java Tue
Nov  1 18:53:45 2011
@@ -101,8 +101,11 @@ public class StAX2SAX {
     }
 
     private void emitSE(StartElement se) throws SAXException {
+        @SuppressWarnings("unchecked")
+        Iterator<Attribute> aIter = se.getAttributes() ;
         handler.startElement(se.getName().getNamespaceURI(), 
-                se.getName().getLocalPart(), qnameToS(se.getName()), convertAttrs(se.getAttributes()));
+                se.getName().getLocalPart(), qnameToS(se.getName()), convertAttrs(aIter));
+        @SuppressWarnings("unchecked")
         Iterator<Namespace> it = se.getNamespaces();
         while (it.hasNext()) emitNS(it.next());
     }
@@ -110,6 +113,7 @@ public class StAX2SAX {
     private void emitEE(EndElement ee) throws SAXException {
         handler.endElement(ee.getName().getNamespaceURI(), 
                 ee.getName().getLocalPart(), qnameToS(ee.getName()));
+        @SuppressWarnings("unchecked")
         Iterator<Namespace> it = ee.getNamespaces();
         while (it.hasNext()) emitNSGone(it.next());
     }



Mime
View raw message