You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2008/12/04 22:06:57 UTC
svn commit: r723437 - in
/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb:
JAXBContextHelper.java XMLRootElementUtil.java
Author: mcombellack
Date: Thu Dec 4 13:06:57 2008
New Revision: 723437
URL: http://svn.apache.org/viewvc?rev=723437&view=rev
Log:
Made class final as the only construvtor is private. Also Fixed a spelling mistake
Modified:
tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java
tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java
Modified: tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java?rev=723437&r1=723436&r2=723437&view=diff
==============================================================================
--- tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java (original)
+++ tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java Thu Dec 4 13:06:57 2008
@@ -55,7 +55,7 @@
* @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 @@
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) {
Modified: tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java?rev=723437&r1=723436&r2=723437&view=diff
==============================================================================
--- tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java (original)
+++ tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/XMLRootElementUtil.java Thu Dec 4 13:06:57 2008
@@ -44,7 +44,7 @@
/**
*
*/
-public class XMLRootElementUtil {
+public final class XMLRootElementUtil {
/** Constructor is intentionally private. This class only provides static utility methods */
private XMLRootElementUtil() {
@@ -273,7 +273,7 @@
/**
* 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) {