tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r465379 - in /incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb: JAXB2Node.java Reader2JAXB.java XMLStreamReader2JAXB.java
Date Wed, 18 Oct 2006 21:43:04 GMT
Author: rfeng
Date: Wed Oct 18 14:43:01 2006
New Revision: 465379

URL: http://svn.apache.org/viewvc?view=rev&rev=465379
Log:
Fix some PMD issues

Modified:
    incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/JAXB2Node.java
    incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/Reader2JAXB.java
    incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/XMLStreamReader2JAXB.java

Modified: incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/JAXB2Node.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/JAXB2Node.java?view=diff&rev=465379&r1=465378&r2=465379
==============================================================================
--- incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/JAXB2Node.java
(original)
+++ incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/JAXB2Node.java
Wed Oct 18 14:43:01 2006
@@ -34,13 +34,10 @@
 @Service(Transformer.class)
 public class JAXB2Node extends TransformerExtension<Object, Node> implements PullTransformer<Object,
Node> {
 
-    public JAXB2Node() {
-        super();
-    }
-
     public Node transform(Object source, TransformationContext tContext) {
-        if (source == null)
+        if (source == null) {
             return null;
+        }    
         try {
             JAXBContext context = JAXBContextHelper.createJAXBContext(tContext, true);
             Marshaller marshaller = context.createMarshaller();

Modified: incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/Reader2JAXB.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/Reader2JAXB.java?view=diff&rev=465379&r1=465378&r2=465379
==============================================================================
--- incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/Reader2JAXB.java
(original)
+++ incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/Reader2JAXB.java
Wed Oct 18 14:43:01 2006
@@ -35,13 +35,10 @@
 public class Reader2JAXB extends TransformerExtension<Reader, Object> implements
     PullTransformer<Reader, Object> {
 
-    public Reader2JAXB() {
-        super();
-    }
-
-    public Object transform(Reader source, TransformationContext context) {
-        if (source == null)
+    public Object transform(final Reader source, final TransformationContext context) {
+        if (source == null) {
             return null;
+        }
         try {
             JAXBContext jaxbContext = JAXBContextHelper.createJAXBContext(context, false);
             Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();

Modified: incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/XMLStreamReader2JAXB.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/XMLStreamReader2JAXB.java?view=diff&rev=465379&r1=465378&r2=465379
==============================================================================
--- incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/XMLStreamReader2JAXB.java
(original)
+++ incubator/tuscany/java/sca/services/databinding/databinding-jaxb/src/main/java/org/apache/tuscany/databinding/jaxb/XMLStreamReader2JAXB.java
Wed Oct 18 14:43:01 2006
@@ -38,8 +38,9 @@
     }
 
     public Object transform(XMLStreamReader source, TransformationContext context) {
-        if (source == null)
+        if (source == null) {
             return null;
+        }
         try {
             JAXBContext jaxbContext = JAXBContextHelper.createJAXBContext(context, false);
             Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
@@ -64,5 +65,5 @@
     @Override
     public String getTargetDataBinding() {
         return JAXBDataBinding.NAME;
-    }    
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message