Author: kstam
Date: Mon Dec 13 21:11:45 2010
New Revision: 1045375

URL: http://svn.apache.org/viewvc?rev=1045375&view=rev
Log:
JUDDI-440 cleaning up compile time warnings

Modified:
    juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/EntityCreator.java
    juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/JAXBMarshaller.java

Modified: 
juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/EntityCreator.java
URL: 
http://svn.apache.org/viewvc/juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/EntityCreator.java?rev=1045375&r1=1045374&r2=1045375&view=diff
==============================================================================
--- juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/EntityCreator.java 
(original)
+++ juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/EntityCreator.java 
Mon Dec 13 21:11:45 2010
@@ -35,7 +35,7 @@ public class EntityCreator {
 
        private static Logger logger = Logger.getLogger(EntityCreator.class);
        
-       @SuppressWarnings("unchecked")
+       @SuppressWarnings("rawtypes")
        public static Object buildFromDoc(String fileName, String thePackage) 
throws JAXBException, IOException {
                Object obj = null;
                URL url = 
Thread.currentThread().getContextClassLoader().getResource(fileName);
@@ -51,7 +51,7 @@ public class EntityCreator {
                return obj;
        }
 
-       @SuppressWarnings("unchecked")
+       @SuppressWarnings("rawtypes")
        public static Object buildFromString(String source, String thePackage) 
throws JAXBException, IOException {
                Object obj = null;
                JAXBContext jc = JAXBContext.newInstance(thePackage);

Modified: 
juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/JAXBMarshaller.java
URL: 
http://svn.apache.org/viewvc/juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/JAXBMarshaller.java?rev=1045375&r1=1045374&r2=1045375&view=diff
==============================================================================
--- juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/JAXBMarshaller.java 
(original)
+++ juddi/trunk/uddi-ws/src/main/java/org/apache/juddi/jaxb/JAXBMarshaller.java 
Mon Dec 13 21:11:45 2010
@@ -53,8 +53,7 @@ public class JAXBMarshaller {
                }
        }
        
-       
-       @SuppressWarnings("unchecked")
+       @SuppressWarnings("rawtypes")
        public static Object unmarshallFromInputStream(InputStream inputStream, 
String thePackage) throws JAXBException {
                Object obj = null;
                if (inputStream != null) {
@@ -113,10 +112,10 @@ public class JAXBMarshaller {
                return element;
        }
        
-       @SuppressWarnings("unchecked")
        public static Object unmarshallFromElement(Element element, String 
thePackage) throws JAXBException {
                JAXBContext jc = JAXBContexts.get(thePackage);
                Unmarshaller unmarshaller = jc.createUnmarshaller();
+               @SuppressWarnings("rawtypes")
                Object obj = ((JAXBElement) 
unmarshaller.unmarshal(element)).getValue();
                return obj;
        }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to