diff options
author | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-04 21:06:57 +0000 |
---|---|---|
committer | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-04 21:06:57 +0000 |
commit | ffebec46ba7c5d3181cf0f19c59c5efaea35d174 (patch) | |
tree | a7f9659e3048a5e913648693d0b1fea71e038dbe /java/sca/modules | |
parent | f7bd10314e2447bc57eadf621a4a0f8fcadb1411 (diff) |
Made class final as the only construvtor is private. Also Fixed a spelling mistake
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@723437 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
2 files changed, 4 insertions, 4 deletions
diff --git a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java index 5265184ba6..05184f6cd0 100644 --- a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java +++ b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java @@ -55,7 +55,7 @@ import org.apache.tuscany.sca.interfacedef.util.XMLType; * @version $Rev$ $Date$ */ // FIXME: [rfeng] We probably should turn this into a pluggable system service -public class JAXBContextHelper { +public final class JAXBContextHelper { // public static final String JAXB_CLASSES = "jaxb.classes"; // public static final String JAXB_CONTEXT_PATH = "jaxb.contextPath"; @@ -79,7 +79,7 @@ public class JAXBContextHelper { if (tContext == null) throw new TransformationException("JAXB context is not set for the transformation."); - // TODO: [rfeng] Need to figure out what's the best grantularity to create the JAXBContext + // TODO: [rfeng] Need to figure out what's the best granularity to create the JAXBContext // per interface, operation or parameter Operation op = source ? tContext.getSourceOperation() : tContext.getTargetOperation(); if (op != null) { diff --git a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java index 7eb6437e79..b26c6e7e36 100644 --- a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java +++ b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java @@ -44,7 +44,7 @@ import javax.xml.namespace.QName; /** * */ -public class XMLRootElementUtil { +public final class XMLRootElementUtil { /** Constructor is intentionally private. This class only provides static utility methods */ private XMLRootElementUtil() { @@ -273,7 +273,7 @@ public class XMLRootElementUtil { /** * Get an annotation. This is wrappered to avoid a Java2Security violation. * @param cls Class that contains annotation - * @param annotation Class of requrested Annotation + * @param annotation Class of requested Annotation * @return annotation or null */ private static <T extends Annotation> T getAnnotation(final AnnotatedElement element, final Class<T> annotation) { |