~ubuntu-branches/ubuntu/intrepid/proguard/intrepid

« back to all changes in this revision

Viewing changes to src/proguard/classfile/editor/VariableSizeUpdater.java

  • Committer: Bazaar Package Importer
  • Author(s): Sam Clegg
  • Date: 2008-05-15 10:39:48 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080515103948-8t5pbzq63uvz3i10
Tags: 4.2-1
* New upstream release
* Fix build of ant task (Closes: #459829)
  Thanks to Hans van Kranenburg <debian@knorrie.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
//            method.getName(clazz).equals("abc");
58
58
 
59
59
        // The minimum variable size is determined by the arguments.
60
 
        codeAttribute.u2maxLocals = ClassUtil.internalMethodParameterSize(method.getDescriptor(clazz));
61
 
 
62
 
        // Non-static methods also have the 'this' variable.
63
 
        if ((method.getAccessFlags() & ClassConstants.INTERNAL_ACC_STATIC) == 0)
64
 
        {
65
 
            codeAttribute.u2maxLocals++;
66
 
        }
 
60
        codeAttribute.u2maxLocals =
 
61
            ClassUtil.internalMethodParameterSize(method.getDescriptor(clazz),
 
62
                                                  method.getAccessFlags());
67
63
 
68
64
        if (DEBUG)
69
65
        {
70
66
            System.out.println("VariableSizeUpdater: "+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz));
71
 
            System.out.println("Max locals: "+codeAttribute.u2maxLocals+" <- parameters");
 
67
            System.out.println("  Max locals: "+codeAttribute.u2maxLocals+" <- parameters");
72
68
        }
73
69
 
74
70
        // Go over all instructions.