From 89888f9f230c98bde926e849d5e42ed92da10c0d Mon Sep 17 00:00:00 2001 From: tkellner Date: Fri, 2 Sep 2011 16:01:17 +0000 Subject: 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 --- .../at/gv/egiz/stal/service/impl/STALXJAXBContextFactory.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'BKUOnline/src/main') 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 classesToBind, List typeReferences) throws JAXBException { + public JAXBRIContext createJAXBContext(SEIModel sei, @SuppressWarnings("rawtypes") List classesToBind, List 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 classes = new ArrayList(); + @SuppressWarnings("rawtypes") + List classes = new ArrayList(); classes.addAll(classesToBind); - Class ccOF = at.buergerkarte.namespaces.cardchannel.service.ObjectFactory.class; + Class ccOF = ObjectFactory.class; if (!classes.contains(ccOF)) { log.debug("adding " + ccOF + " to JAXBContext seed"); classes.add(ccOF); -- cgit v1.2.3