hackedteam/core-blackberry

View on GitHub
bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java

Summary

Maintainability
F
1 wk
Test Coverage

File ClassPrinter.java has 710 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
 *             of Java bytecode.
 *
 * Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
Severity: Major
Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 1 day to fix

    ClassPrinter has 79 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class ClassPrinter
    extends      SimplifiedVisitor
    implements   ClassVisitor,
                 ConstantVisitor,
                 MemberVisitor,
    Severity: Major
    Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 1 day to fix

      Method visitProgramClass has 44 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void visitProgramClass(ProgramClass programClass)
          {
              println("_____________________________________________________________________");
              println(visitorInfo(programClass) + " " +
                      "Program class: " + programClass.getName());

        Method visitLibraryClass has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public void visitLibraryClass(LibraryClass libraryClass)
            {
                println("_____________________________________________________________________");
                println(visitorInfo(libraryClass) + " " +
                        "Library class: " + libraryClass.getName());

          Method visitTableSwitchInstruction has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public void visitTableSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TableSwitchInstruction tableSwitchInstruction)
          Severity: Minor
          Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

            Method visitFloatType has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public void visitFloatType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, FloatType floatType)
            Severity: Minor
            Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

              Method visitSameOneFrame has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public void visitSameOneFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SameOneFrame sameOneFrame)
              Severity: Minor
              Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                Method visitLongType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public void visitLongType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LongType longType)
                Severity: Minor
                Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                  Method visitNullType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      public void visitNullType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, NullType nullType)
                  Severity: Minor
                  Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                    Method visitIntegerType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public void visitIntegerType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, IntegerType integerType)
                    Severity: Minor
                    Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                      Method visitTopType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public void visitTopType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, TopType topType)
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                        Method visitAnyInstruction has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
                        Severity: Minor
                        Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                          Method visitUninitializedThisType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public void visitUninitializedThisType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, UninitializedThisType uninitializedThisType)
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                            Method visitFullFrame has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                public void visitFullFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, FullFrame fullFrame)
                            Severity: Minor
                            Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                              Method visitDoubleType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  public void visitDoubleType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, DoubleType doubleType)
                              Severity: Minor
                              Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                Method visitObjectType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    public void visitObjectType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ObjectType objectType)
                                Severity: Minor
                                Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                  Method visitUninitializedType has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public void visitUninitializedType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, UninitializedType uninitializedType)
                                  Severity: Minor
                                  Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                    Method visitLessZeroFrame has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public void visitLessZeroFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LessZeroFrame lessZeroFrame)
                                    Severity: Minor
                                    Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                      Method visitLookUpSwitchInstruction has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          public void visitLookUpSwitchInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, LookUpSwitchInstruction lookUpSwitchInstruction)
                                      Severity: Minor
                                      Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                        Method visitSameZeroFrame has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            public void visitSameZeroFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, SameZeroFrame sameZeroFrame)
                                        Severity: Minor
                                        Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                          Method visitConstantInstruction has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction)
                                          Severity: Minor
                                          Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                            Method visitMoreZeroFrame has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                            Open

                                                public void visitMoreZeroFrame(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, MoreZeroFrame moreZeroFrame)
                                            Severity: Minor
                                            Found in bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java - About 35 mins to fix

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println("  = " +
                                                              ((programClass.u2accessFlags & ClassConstants.INTERNAL_ACC_ANNOTATTION) != 0 ? "@ " : "") +
                                                              ClassUtil.externalClassAccessFlags(programClass.u2accessFlags) +
                                                              ((programClass.u2accessFlags & ClassConstants.INTERNAL_ACC_ENUM)      != 0 ? "enum " :
                                                               (programClass.u2accessFlags & ClassConstants.INTERNAL_ACC_INTERFACE) == 0 ? "class " :
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 153..159

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 94.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Identical blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println("  = " +
                                                              ((libraryClass.u2accessFlags & ClassConstants.INTERNAL_ACC_ANNOTATTION) != 0 ? "@ " : "") +
                                                              ClassUtil.externalClassAccessFlags(libraryClass.u2accessFlags) +
                                                              ((libraryClass.u2accessFlags & ClassConstants.INTERNAL_ACC_ENUM)      != 0 ? "enum " :
                                                               (libraryClass.u2accessFlags & ClassConstants.INTERNAL_ACC_INTERFACE) == 0 ? "class " :
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 101..107

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 94.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitLocalVariableInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableInfo localVariableInfo)
                                                  {
                                                      println("v" + localVariableInfo.u2index + ": " +
                                                              localVariableInfo.u2startPC + " -> " +
                                                              (localVariableInfo.u2startPC + localVariableInfo.u2length) + " [" +
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 886..893

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 79.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitLocalVariableTypeInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeInfo localVariableTypeInfo)
                                                  {
                                                      println("v" + localVariableTypeInfo.u2index + ": " +
                                                              localVariableTypeInfo.u2startPC + " -> " +
                                                              (localVariableTypeInfo.u2startPC + localVariableTypeInfo.u2length) + " [" +
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 874..881

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 79.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                              Open

                                                  public void visitFieldrefConstant(Clazz clazz, FieldrefConstant fieldrefConstant)
                                                  {
                                                      println(visitorInfo(fieldrefConstant) + " Fieldref [" +
                                                              clazz.getClassName(fieldrefConstant.u2classIndex) + "." +
                                                              clazz.getName(fieldrefConstant.u2nameAndTypeIndex) + " " +
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 256..262
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 265..271

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 59.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                              Open

                                                  public void visitMethodrefConstant(Clazz clazz, MethodrefConstant methodrefConstant)
                                                  {
                                                      println(visitorInfo(methodrefConstant) + " Methodref [" +
                                                              clazz.getClassName(methodrefConstant.u2classIndex)  + "." +
                                                              clazz.getName(methodrefConstant.u2nameAndTypeIndex) + " " +
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 247..253
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 256..262

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 59.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 3 locations. Consider refactoring.
                                              Open

                                                  public void visitInterfaceMethodrefConstant(Clazz clazz, InterfaceMethodrefConstant interfaceMethodrefConstant)
                                                  {
                                                      println(visitorInfo(interfaceMethodrefConstant) + " InterfaceMethodref [" +
                                                              clazz.getClassName(interfaceMethodrefConstant.u2classIndex)  + "." +
                                                              clazz.getName(interfaceMethodrefConstant.u2nameAndTypeIndex) + " " +
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 247..253
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 265..271

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 59.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                              Open

                                                  public void visitStackMapTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapTableAttribute stackMapTableAttribute)
                                                  {
                                                      println(visitorInfo(codeAttribute) +
                                                              " Stack map table attribute (count = "+
                                                              stackMapTableAttribute.u2stackMapFramesCount + "):");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 523..532
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 547..556
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 559..568
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 571..580

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 51.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                              Open

                                                  public void visitLocalVariableTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTableAttribute localVariableTableAttribute)
                                                  {
                                                      println(visitorInfo(localVariableTableAttribute) +
                                                              " Local variable table attribute (count = " +
                                                              localVariableTableAttribute.u2localVariableTableLength + ")");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 523..532
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 535..544
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 547..556
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 571..580

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 51.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                              Open

                                                  public void visitLineNumberTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LineNumberTableAttribute lineNumberTableAttribute)
                                                  {
                                                      println(visitorInfo(lineNumberTableAttribute) +
                                                              " Line number table attribute (count = " +
                                                              lineNumberTableAttribute.u2lineNumberTableLength + ")");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 523..532
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 535..544
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 559..568
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 571..580

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 51.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                              Open

                                                  public void visitStackMapAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapAttribute stackMapAttribute)
                                                  {
                                                      println(visitorInfo(codeAttribute) +
                                                              " Stack map attribute (count = "+
                                                              stackMapAttribute.u2stackMapFramesCount + "):");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 535..544
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 547..556
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 559..568
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 571..580

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 51.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 5 locations. Consider refactoring.
                                              Open

                                                  public void visitLocalVariableTypeTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeTableAttribute localVariableTypeTableAttribute)
                                                  {
                                                      println(visitorInfo(localVariableTypeTableAttribute) +
                                                              " Local variable type table attribute (count = "+
                                                              localVariableTypeTableAttribute.u2localVariableTypeTableLength + ")");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 523..532
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 535..544
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 547..556
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 559..568

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 51.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println(visitorInfo(enumConstantElementValue) +
                                                              " Enum constant element value [" +
                                                              (enumConstantElementValue.u2elementNameIndex == 0 ? "(default)" :
                                                              clazz.getString(enumConstantElementValue.u2elementNameIndex)) + ", " +
                                                              clazz.getString(enumConstantElementValue.u2typeNameIndex)  + ", " +
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 938..942

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 50.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println(visitorInfo(classElementValue) +
                                                              " Class element value [" +
                                                              (classElementValue.u2elementNameIndex == 0 ? "(default)" :
                                                              clazz.getString(classElementValue.u2elementNameIndex)) + ", " +
                                                              clazz.getString(classElementValue.u2classInfoIndex) + "]");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 927..931

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 50.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitRuntimeVisibleParameterAnnotationsAttribute(Clazz clazz, Method method, RuntimeVisibleParameterAnnotationsAttribute runtimeVisibleParameterAnnotationsAttribute)
                                                  {
                                                      println(visitorInfo(runtimeVisibleParameterAnnotationsAttribute) +
                                                              " Runtime visible parameter annotations attribute (parameter count = " + runtimeVisibleParameterAnnotationsAttribute.u2parametersCount + "):");
                                              
                                              
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 616..624

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 48.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitRuntimeInvisibleParameterAnnotationsAttribute(Clazz clazz, Method method, RuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute)
                                                  {
                                                      println(visitorInfo(runtimeInvisibleParameterAnnotationsAttribute) +
                                                              " Runtime invisible parameter annotations attribute (parameter count = " + runtimeInvisibleParameterAnnotationsAttribute.u2parametersCount + "):");
                                              
                                              
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 605..613

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 48.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitMethodHandleConstant(Clazz clazz, MethodHandleConstant methodHandleConstant)
                                                  {
                                                      println(visitorInfo(methodHandleConstant) + " MethodHandle [kind = " + methodHandleConstant.u1referenceKind + "]:");
                                              
                                                      indent();
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 227..234

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 47.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitInvokeDynamicConstant(Clazz clazz, InvokeDynamicConstant invokeDynamicConstant)
                                                  {
                                                      println(visitorInfo(invokeDynamicConstant) + " InvokeDynamic [bootstrap method index = " + invokeDynamicConstant.u2bootstrapMethodAttributeIndex + "]:");
                                              
                                                      indent();
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 237..244

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 47.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitBootstrapMethodsAttribute(Clazz clazz, BootstrapMethodsAttribute bootstrapMethodsAttribute)
                                                  {
                                                      println(visitorInfo(bootstrapMethodsAttribute) +
                                                              " Bootstrap methods attribute (count = " + bootstrapMethodsAttribute.u2bootstrapMethodsCount + "):");
                                              
                                              
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 426..434

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 45.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                  public void visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute)
                                                  {
                                                      println(visitorInfo(innerClassesAttribute) +
                                                              " Inner classes attribute (count = " + innerClassesAttribute.u2classesCount + ")");
                                              
                                              
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 393..401

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 45.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println(visitorInfo(codeAttribute) +
                                                              " Code attribute instructions (code length = "+ codeAttribute.u4codeLength +
                                                              ", locals = "+ codeAttribute.u2maxLocals +
                                                              ", stack = "+ codeAttribute.u2maxStack + "):");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 735..739

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 42.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println(visitorInfo(exceptionInfo) +
                                                              " ExceptionInfo (" +
                                                              exceptionInfo.u2startPC + " -> " +
                                                              exceptionInfo.u2endPC + ": " +
                                                              exceptionInfo.u2handlerPC + "):");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 500..503

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 42.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println(visitorInfo(annotationElementValue) +
                                                              " Annotation element value [" +
                                                              (annotationElementValue.u2elementNameIndex == 0 ? "(default)" :
                                                              clazz.getString(annotationElementValue.u2elementNameIndex)) + "]:");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 961..964

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 40.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              Similar blocks of code found in 2 locations. Consider refactoring.
                                              Open

                                                      println(visitorInfo(arrayElementValue) +
                                                              " Array element value [" +
                                                              (arrayElementValue.u2elementNameIndex == 0 ? "(default)" :
                                                              clazz.getString(arrayElementValue.u2elementNameIndex)) + "]:");
                                              bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java on lines 948..951

                                              Duplicated Code

                                              Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                              Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                              When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                              Tuning

                                              This issue has a mass of 40.

                                              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                              Refactorings

                                              Further Reading

                                              There are no issues that match your filters.

                                              Category
                                              Status