axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java JavaGeneratorFactory.java
Date Fri, 27 Jun 2003 04:49:35 GMT
ericf       2003/06/26 21:49:35

  Modified:    java/src/org/apache/axis MessageContext.java
               java/src/org/apache/axis/client Stub.java
               java/src/org/apache/axis/ime MessageExchangeConstants.java
               java/src/org/apache/axis/wsdl/toJava JavaBeanWriter.java
                        JavaGeneratorFactory.java
  Log:
  replaced all uses of new Boolean(true) with Boolean.TRUE
  and all uses of new Boolean(variable) with Boolean.valueOf(variable)
  since it's wasteful to allocate instances of type Boolean
  in addition to the static members on that class.
  
  Revision  Changes    Path
  1.134     +2 -2      xml-axis/java/src/org/apache/axis/MessageContext.java
  
  Index: MessageContext.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/MessageContext.java,v
  retrieving revision 1.133
  retrieving revision 1.134
  diff -u -r1.133 -r1.134
  --- MessageContext.java	19 Jun 2003 04:51:56 -0000	1.133
  +++ MessageContext.java	27 Jun 2003 04:49:34 -0000	1.134
  @@ -961,13 +961,13 @@
                   return getPassword();
               }
               else if (name.equals(Call.SESSION_MAINTAIN_PROPERTY)) {
  -                return new Boolean(getMaintainSession());
  +                return Boolean.valueOf(getMaintainSession());
               }
               else if (name.equals(Call.OPERATION_STYLE_PROPERTY)) {
                   return (getOperationStyle() == null) ? null : getOperationStyle().getName();
               }
               else if (name.equals(Call.SOAPACTION_USE_PROPERTY)) {
  -                return new Boolean(useSOAPAction());
  +                return Boolean.valueOf(useSOAPAction());
               }
               else if (name.equals(Call.SOAPACTION_URI_PROPERTY)) {
                   return getSOAPActionURI();
  
  
  
  1.29      +2 -2      xml-axis/java/src/org/apache/axis/client/Stub.java
  
  Index: Stub.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/client/Stub.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Stub.java	22 Apr 2003 19:34:04 -0000	1.28
  +++ Stub.java	27 Jun 2003 04:49:34 -0000	1.29
  @@ -200,7 +200,7 @@
                   return cachedEndpoint.toString();
               }
               else if (name.equals(Call.SESSION_MAINTAIN_PROPERTY)) {
  -                return maintainSessionSet ? new Boolean(maintainSession) : null;
  +                return maintainSessionSet ? Boolean.valueOf(maintainSession) : null;
               }
               else if (name.startsWith("java.") || name.startsWith("javax.")) {
                   throw new JAXRPCException(
  @@ -301,7 +301,7 @@
       public void setMaintainSession(boolean session) {
           maintainSessionSet = true;
           maintainSession = session;
  -        cachedProperties.put(Call.SESSION_MAINTAIN_PROPERTY, new Boolean(session));
  +        cachedProperties.put(Call.SESSION_MAINTAIN_PROPERTY, Boolean.valueOf(session));
       } // setmaintainSession
   
   
  
  
  
  1.5       +1 -1      xml-axis/java/src/org/apache/axis/ime/MessageExchangeConstants.java
  
  Index: MessageExchangeConstants.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/ime/MessageExchangeConstants.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MessageExchangeConstants.java	22 Apr 2003 19:35:06 -0000	1.4
  +++ MessageExchangeConstants.java	27 Jun 2003 04:49:34 -0000	1.5
  @@ -82,6 +82,6 @@
        * MessageContext property
        */
       public static final Boolean ENABLE_CORRELATOR_SERVICE_DEFAULT =
  -            new Boolean(true);
  +            Boolean.TRUE;
   
   }
  
  
  
  1.41      +1 -1      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java
  
  Index: JavaBeanWriter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaBeanWriter.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- JavaBeanWriter.java	18 Jun 2003 23:01:52 -0000	1.40
  +++ JavaBeanWriter.java	27 Jun 2003 04:49:34 -0000	1.41
  @@ -755,7 +755,7 @@
                   pw.println("        _hashCode += " + get +
                            Utils.capitalizeFirstChar(variable) + "();");
               } else if (variableType.equals("boolean")) {
  -                pw.println("        _hashCode += new Boolean(" + get +
  +                pw.println("        _hashCode += Boolean.valueOf(" + get +
                              Utils.capitalizeFirstChar(variable) + "()).hashCode();");
               } else if (variableType.equals("long")) {
                   pw.println("        _hashCode += new Long(" + get +
  
  
  
  1.41      +8 -8      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java
  
  Index: JavaGeneratorFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- JavaGeneratorFactory.java	22 Apr 2003 19:36:25 -0000	1.40
  +++ JavaGeneratorFactory.java	27 Jun 2003 04:49:35 -0000	1.41
  @@ -532,11 +532,11 @@
                       // Mark the type as a complex type fault
                       te.setDynamicVar(
                           JavaGeneratorFactory.COMPLEX_TYPE_FAULT, 
  -                        new Boolean(true));
  +                        Boolean.TRUE);
                       if (elementTE != null) {
                           te.setDynamicVar(
                              JavaGeneratorFactory.COMPLEX_TYPE_FAULT, 
  -                           new Boolean(true));
  +                           Boolean.TRUE);
                       }
   
                       // Mark all derived types as Complex Faults
  @@ -549,7 +549,7 @@
                               derivedI.next();
                           derivedTE.setDynamicVar(
                               JavaGeneratorFactory.COMPLEX_TYPE_FAULT, 
  -                            new Boolean(true));
  +                            Boolean.TRUE);
                       }
                       // Mark all base types as Complex Faults
                       TypeEntry base = SchemaUtils.getComplexElementExtensionBase(
  @@ -558,7 +558,7 @@
                       while (base != null) {
                           base.setDynamicVar(
                               JavaGeneratorFactory.COMPLEX_TYPE_FAULT, 
  -                            new Boolean(true));
  +                            Boolean.TRUE);
                           base = SchemaUtils.getComplexElementExtensionBase(
                               base.getNode(),
                               symbolTable);
  @@ -579,7 +579,7 @@
               if (exceptionClassName != null) {
                   me.setDynamicVar(
                                    JavaGeneratorFactory.COMPLEX_TYPE_FAULT, 
  -                                 new Boolean(true));
  +                                 Boolean.TRUE);
                   me.setDynamicVar(
                                    JavaGeneratorFactory.EXCEPTION_CLASS_NAME, 
                                    exceptionClassName);
  @@ -979,13 +979,13 @@
                                   TypeEntry typeEntry = p.getType();
                                   typeEntry.setDynamicVar(
                                           JavaTypeWriter.HOLDER_IS_NEEDED,
  -                                        new Boolean(true));
  +                                        Boolean.TRUE);
                                   //If this is a complex then set the HOLDER_IS_NEEDED
                                   //for the reftype too.
                                   if(!typeEntry.isSimpleType() && typeEntry.getRefType()!=null){
                                       typeEntry.getRefType().setDynamicVar(
                                           JavaTypeWriter.HOLDER_IS_NEEDED,
  -                                        new Boolean(true));
  +                                        Boolean.TRUE);
                                   }
   
                                   // If the type is a DefinedElement, need to 
  @@ -998,7 +998,7 @@
                                       if (anonType != null) {
                                           anonType.setDynamicVar(
                                               JavaTypeWriter.HOLDER_IS_NEEDED,
  -                                            new Boolean(true));
  +                                            Boolean.TRUE);
                                       }                                    
                                   }
                               }
  
  
  

Mime
View raw message