diff options
author | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-09-02 16:01:17 +0000 |
---|---|---|
committer | tkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2011-09-02 16:01:17 +0000 |
commit | 89888f9f230c98bde926e849d5e42ed92da10c0d (patch) | |
tree | ac115c56701b57e8b544e0d9628223bb605285eb /BKUOnline/src/main/java/at/gv/egiz | |
parent | 7b127caba3ddc39a5a70628c831953bb870f4b52 (diff) | |
download | mocca-89888f9f230c98bde926e849d5e42ed92da10c0d.tar.gz mocca-89888f9f230c98bde926e849d5e42ed92da10c0d.tar.bz2 mocca-89888f9f230c98bde926e849d5e42ed92da10c0d.zip |
Housekeeping
* Generic types parameterized
* SupressWarnings annotations added where parameterization impossible
* Unused members commented out
* SerialVersionUID added/removed where necessary
* Superfluous imports removed
* Other small changed to get rid of some compiler/validator warnings
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@976 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/java/at/gv/egiz')
-rw-r--r-- | BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALXJAXBContextFactory.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALXJAXBContextFactory.java b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALXJAXBContextFactory.java index b7f5727f..298a302a 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALXJAXBContextFactory.java +++ b/BKUOnline/src/main/java/at/gv/egiz/stal/service/impl/STALXJAXBContextFactory.java @@ -24,6 +24,8 @@ package at.gv.egiz.stal.service.impl; +import at.buergerkarte.namespaces.cardchannel.service.ObjectFactory; + import com.sun.xml.bind.api.JAXBRIContext; import com.sun.xml.bind.api.TypeReference; import com.sun.xml.ws.api.model.SEIModel; @@ -43,19 +45,20 @@ public class STALXJAXBContextFactory implements JAXBContextFactory { private final Logger log = LoggerFactory.getLogger(STALXJAXBContextFactory.class); @Override - public JAXBRIContext createJAXBContext(SEIModel sei, List<Class> classesToBind, List<TypeReference> typeReferences) throws JAXBException { + public JAXBRIContext createJAXBContext(SEIModel sei, @SuppressWarnings("rawtypes") List<Class> classesToBind, List<TypeReference> typeReferences) throws JAXBException { if (log.isTraceEnabled()) { log.trace("JAXBContext seed for SEI " + sei.getTargetNamespace() + ":"); - for (Class class1 : classesToBind) { + for (Class<?> class1 : classesToBind) { log.trace(" " + class1); } for (TypeReference typeReference : typeReferences) { log.trace(" typeRef " + typeReference.tagName + " -> " + typeReference.type); } } - List<Class> classes = new ArrayList<Class>(); + @SuppressWarnings("rawtypes") + List<Class> classes = new ArrayList<Class>(); classes.addAll(classesToBind); - Class ccOF = at.buergerkarte.namespaces.cardchannel.service.ObjectFactory.class; + Class<ObjectFactory> ccOF = ObjectFactory.class; if (!classes.contains(ccOF)) { log.debug("adding " + ccOF + " to JAXBContext seed"); classes.add(ccOF); |