stevel      2003/01/25 11:34:56

  Modified:    java/src/org/apache/axis/utils/bytecode ParamReader.java
  Log:
  a raid by the tab-to-spaces police, as reported by checkstyle. Since this was done a 
few months ago, all these tabs are recent additions. naughty. nb, checkstyle is 
complaining about many, many other things....
  
  Revision  Changes    Path
  1.8       +41 -41    
xml-axis/java/src/org/apache/axis/utils/bytecode/ParamReader.java
  
  Index: ParamReader.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/utils/bytecode/ParamReader.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ParamReader.java  20 Sep 2002 14:44:11 -0000      1.7
  +++ ParamReader.java  25 Jan 2003 19:34:56 -0000      1.8
  @@ -140,23 +140,23 @@
   
       }
   
  -     public void readCode() throws IOException
  -     {
  -             readShort(); // max stack
  -             int maxLocals = readShort(); // max locals
  -
  -             MethodInfo info = new MethodInfo(maxLocals);
  -             if (methods != null && methodName != null)
  -             {
  -                     methods.put(methodName, info);
  -             }
  -
  -             skipFully(readInt()); // code
  -             skipFully(8 * readShort()); // exception table
  -             // read the code attributes (recursive).  This is where
  -             // we will find the LocalVariableTable attribute.
  -             readAttributes();
  -     }
  +    public void readCode() throws IOException
  +    {
  +        readShort(); // max stack
  +        int maxLocals = readShort(); // max locals
  +
  +        MethodInfo info = new MethodInfo(maxLocals);
  +        if (methods != null && methodName != null)
  +        {
  +            methods.put(methodName, info);
  +        }
  +
  +        skipFully(readInt()); // code
  +        skipFully(8 * readShort()); // exception table
  +        // read the code attributes (recursive).  This is where
  +        // we will find the LocalVariableTable attribute.
  +        readAttributes();
  +    }
   
       /**
        * return the names of the declared parameters for the given method.
  @@ -202,27 +202,27 @@
           }
       }
   
  -     private static class MethodInfo
  -     {
  -             String[] names;
  -             int maxLocals;
  -
  -             public MethodInfo(int maxLocals)
  -             {
  -                     this.maxLocals = maxLocals;
  -                     names = new String[maxLocals];
  -             }
  -     }
  -
  -     private MethodInfo getMethodInfo()
  -     {
  -             MethodInfo info = null;
  -             if (methods != null && methodName != null)
  -             {
  -                     info = (MethodInfo) methods.get(methodName);
  -             }
  -             return info;
  -     }
  +    private static class MethodInfo
  +    {
  +        String[] names;
  +        int maxLocals;
  +
  +        public MethodInfo(int maxLocals)
  +        {
  +            this.maxLocals = maxLocals;
  +            names = new String[maxLocals];
  +        }
  +    }
  +
  +    private MethodInfo getMethodInfo()
  +    {
  +        MethodInfo info = null;
  +        if (methods != null && methodName != null)
  +        {
  +            info = (MethodInfo) methods.get(methodName);
  +        }
  +        return info;
  +    }
   
       /**
        * this is invoked when a LocalVariableTable attribute is encountered.
  @@ -237,9 +237,9 @@
               int nameIndex = readShort(); // name_index
               readShort(); // descriptor_index
               int index = readShort(); // local index
  -                     if (info != null) {
  -                             info.names[index] = resolveUtf8(nameIndex);
  -                     }
  +            if (info != null) {
  +                info.names[index] = resolveUtf8(nameIndex);
  +            }
           }
       }
   }
  
  
  


Reply via email to