axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r644379 - in /webservices/axis2/trunk/java/modules: jaxws/src/org/apache/axis2/datasource/jaxb/ kernel/src/org/apache/axis2/context/externalize/ kernel/src/org/apache/axis2/description/java2wsdl/bytecode/ metadata/src/org/apache/axis2/jaxws...
Date Thu, 03 Apr 2008 15:49:10 GMT
Author: dims
Date: Thu Apr  3 08:49:08 2008
New Revision: 644379

URL: http://svn.apache.org/viewvc?rev=644379&view=rev
Log:
- Changing final fields to static
- use .valueOf instead of creating a new object.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/JAXBAttachmentMarshaller.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/XSDListUtils.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/externalize/SafeObjectInputStream.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/bytecode/ClassReader.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/JAXBAttachmentMarshaller.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/JAXBAttachmentMarshaller.java?rev=644379&r1=644378&r2=644379&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/JAXBAttachmentMarshaller.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/JAXBAttachmentMarshaller.java
Thu Apr  3 08:49:08 2008
@@ -47,7 +47,7 @@
 
     private MessageContext msgContext;
     private XMLStreamWriter writer;
-    private final String APPLICATION_OCTET = "application/octet-stream";
+    private static final String APPLICATION_OCTET = "application/octet-stream";
     
     /**
      * Construct the JAXBAttachmentMarshaller that has access to the MessageContext

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/XSDListUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/XSDListUtils.java?rev=644379&r1=644378&r2=644379&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/XSDListUtils.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/datasource/jaxb/XSDListUtils.java
Thu Apr  3 08:49:08 2008
@@ -220,7 +220,7 @@
         if (componentType == char.class) {
             Character ch = null;
             if (value != null && value.length() > 0) {
-                ch = new Character(value.charAt(0));
+                ch = Character.valueOf(value.charAt(0));
             }
             return ch;
         }

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/externalize/SafeObjectInputStream.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/externalize/SafeObjectInputStream.java?rev=644379&r1=644378&r2=644379&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/externalize/SafeObjectInputStream.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/context/externalize/SafeObjectInputStream.java
Thu Apr  3 08:49:08 2008
@@ -51,7 +51,7 @@
     
     // A buffer is used when Object is persisted as bytes
     private byte[] buffer = null;
-    private final int BUFFER_MIN_SIZE = 4096;
+    private static final int BUFFER_MIN_SIZE = 4096;
     
     /**
      * Add the SafeObjectInputStream if necessary

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/bytecode/ClassReader.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/bytecode/ClassReader.java?rev=644379&r1=644378&r2=644379&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/bytecode/ClassReader.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/bytecode/ClassReader.java
Thu Apr  3 08:49:08 2008
@@ -48,17 +48,17 @@
 public class ClassReader extends ByteArrayInputStream {
     // constants values that appear in java class files,
     // from jvm spec 2nd ed, section 4.4, pp 103
-    private final int CONSTANT_Class = 7;
-    private final int CONSTANT_Fieldref = 9;
-    private final int CONSTANT_Methodref = 10;
-    private final int CONSTANT_InterfaceMethodref = 11;
-    private final int CONSTANT_String = 8;
-    private final int CONSTANT_Integer = 3;
-    private final int CONSTANT_Float = 4;
-    private final int CONSTANT_Long = 5;
-    private final int CONSTANT_Double = 6;
-    private final int CONSTANT_NameAndType = 12;
-    private final int CONSTANT_Utf8 = 1;
+    private static final int CONSTANT_Class = 7;
+    private static final int CONSTANT_Fieldref = 9;
+    private static final int CONSTANT_Methodref = 10;
+    private static final int CONSTANT_InterfaceMethodref = 11;
+    private static final int CONSTANT_String = 8;
+    private static final int CONSTANT_Integer = 3;
+    private static final int CONSTANT_Float = 4;
+    private static final int CONSTANT_Long = 5;
+    private static final int CONSTANT_Double = 6;
+    private static final int CONSTANT_NameAndType = 12;
+    private static final int CONSTANT_Utf8 = 1;
     /**
      * the constant pool.  constant pool indices in the class file
      * directly index into this array.  The value stored in this array

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java?rev=644379&r1=644378&r2=644379&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/util/BaseWSDLLocator.java
Thu Apr  3 08:49:08 2008
@@ -225,7 +225,7 @@
     */
     private static final char WSDL_PATH_SEPERATOR_CHAR = '/';
     private static final String WSDL_PATH_SEPERATOR =
-        (new Character(WSDL_PATH_SEPERATOR_CHAR)).toString();
+        (Character.valueOf(WSDL_PATH_SEPERATOR_CHAR)).toString();
 
     protected String normalizePath(String parentLocation, String relativeLocation) {
         if (log.isDebugEnabled()) {



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


Mime
View raw message