You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2004/12/15 23:45:25 UTC

cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava JavaGeneratorFactory.java

tomj        2004/12/15 14:45:25

  Modified:    java/src/org/apache/axis/wsdl/toJava
                        JavaGeneratorFactory.java
  Log:
  Just a little code cleanup of unused imports and unnecessary assignments.
  
  Revision  Changes    Path
  1.61      +6 -9      ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java
  
  Index: JavaGeneratorFactory.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- JavaGeneratorFactory.java	24 Oct 2004 19:12:56 -0000	1.60
  +++ JavaGeneratorFactory.java	15 Dec 2004 22:45:25 -0000	1.61
  @@ -60,7 +60,6 @@
   import java.util.Iterator;
   import java.util.List;
   import java.util.Map;
  -import java.util.Set;
   import java.util.Vector;
   
   /**
  @@ -424,8 +423,8 @@
                   baseWriter.generate();
               }
   
  -            Class[] formalArgs = null;
  -            Object[] actualArgs = null;
  +            Class[] formalArgs;
  +            Object[] actualArgs;
   
               if (entry != null) {
                   formalArgs = new Class[]{Emitter.class, entry.getClass(),
  @@ -439,7 +438,7 @@
   
               for (int i = 0; i < writers.size(); ++i) {
                   Class wClass = (Class) writers.get(i);
  -                Generator gen = null;
  +                Generator gen;
   
                   try {
                       Constructor ctor = wClass.getConstructor(formalArgs);
  @@ -620,7 +619,7 @@
                   // into name collisions with similarly named
                   // non-anonymous types
                   StringBuffer sb = new StringBuffer(localName);
  -                int aidx = -1;
  +                int aidx;
   
                   while ((aidx = sb.toString().indexOf(SymbolTable.ANON_TOKEN)) > -1) {
                       sb.replace(aidx, aidx + SymbolTable.ANON_TOKEN.length(), "");
  @@ -879,11 +878,10 @@
                       // The SEI (Service Endpoint Interface) name
                       // is always the portType name.
                       BindingEntry bEntry = (BindingEntry) entry;
  -                    String seiName = null;
                       PortTypeEntry ptEntry = symbolTable.getPortTypeEntry(
                               bEntry.getBinding().getPortType().getQName());
   
  -                    seiName = getServiceEndpointInterfaceJavaNameHook(ptEntry, bEntry);
  +                    String seiName = getServiceEndpointInterfaceJavaNameHook(ptEntry, bEntry);
                       if (seiName == null) {
                           seiName = ptEntry.getName();
                       }
  @@ -1007,8 +1005,7 @@
                         v.elementAt(1) instanceof Type) ||
                        (v.elementAt(1) instanceof Element &&
                         v.elementAt(0) instanceof Type))) {
  -                    Element e = null;
  -
  +                    Element e;
                       if (v.elementAt(0) instanceof Element) {
                           e = (Element) v.elementAt(0);
                       } else {