hackedteam/core-blackberry

View on GitHub
bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java

Summary

Maintainability
F
5 days
Test Coverage

File DynamicMemberReferenceInitializer.java has 604 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)

    Method printDynamicInvocationNote has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
    Open

        private void printDynamicInvocationNote(Clazz                      clazz,
                                                InstructionSequenceMatcher noteSequenceMatcher,
                                                boolean                    isField,
                                                boolean                    isDeclared,
                                                String                     defaultName,

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method printDynamicInvocationNote has 79 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private void printDynamicInvocationNote(Clazz                      clazz,
                                                InstructionSequenceMatcher noteSequenceMatcher,
                                                boolean                    isField,
                                                boolean                    isDeclared,
                                                String                     defaultName,

      Method visitAnyInstruction has 51 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)
          {
              // Try to match the SomeClass.class.getField("someField") construct.
              matchGetMember(clazz, method, codeAttribute, offset, instruction,
                             constantGetFieldMatcher,

        Method visitStringConstant has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
        Open

            public void visitStringConstant(Clazz clazz, StringConstant stringConstant)
            {
                if (referencedClass != null)
                {
                    String name = stringConstant.getString(clazz);

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method matchGetMember has 11 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            private void matchGetMember(Clazz                      clazz,
                                        Method                     method,
                                        CodeAttribute              codeAttribute,
                                        int                        offset,
                                        Instruction                instruction,

          Method printDynamicInvocationNote has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              private void printDynamicInvocationNote(Clazz                      clazz,
                                                      InstructionSequenceMatcher noteSequenceMatcher,
                                                      boolean                    isField,
                                                      boolean                    isDeclared,
                                                      String                     defaultName,

            Avoid deeply nested control flow statements.
            Open

                                    if (memberArgumentIndex > 0)
                                    {
                                        if (count > 0)
                                        {
                                            externalMemberDescription += ',';

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

                  public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction)

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

                    private void initializeStringReference(Clazz                      clazz,
                                                           InstructionSequenceMatcher constantSequenceMatcher,
                                                           boolean                    isField,
                                                           boolean                    isDeclared,
                                                           String                     defaultDescriptor)

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

                      public void visitLibraryMethod(LibraryClass libraryClass, LibraryMethod libraryMethod)
                      {
                          if (notePrinter.accepts(libraryClass.getName()))
                          {
                              System.out.println("      Maybe this is library method '" +
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 907..917

                  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 71.

                  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 visitProgramMethod(ProgramClass programClass, ProgramMethod programMethod)
                      {
                          if (notePrinter.accepts(programClass.getName()))
                          {
                              System.out.println("      Maybe this is program method '" +
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 933..943

                  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 71.

                  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 visitLibraryField(LibraryClass libraryClass, LibraryField libraryField)
                      {
                          if (notePrinter.accepts(libraryClass.getName()))
                          {
                              System.out.println("      Maybe this is library field '" +
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 894..904

                  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 67.

                  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 visitProgramField(ProgramClass programClass, ProgramField programField)
                      {
                          if (notePrinter.accepts(programClass.getName()))
                          {
                              System.out.println("      Maybe this is program field '" +
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 920..930

                  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 67.

                  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 16 locations. Consider refactoring.
                  Open

                      public DynamicMemberReferenceInitializer(ClassPool      programClassPool,
                                                               ClassPool      libraryClassPool,
                                                               WarningPrinter notePrinter,
                                                               StringMatcher  noteFieldExceptionMatcher,
                                                               StringMatcher  noteMethodExceptionMatcher)
                  bb-tools/proguard4.7/src/proguard/KeepClassSpecification.java on lines 50..61
                  bb-tools/proguard4.7/src/proguard/MemberSpecification.java on lines 71..82
                  bb-tools/proguard4.7/src/proguard/classfile/ProgramMember.java on lines 58..69
                  bb-tools/proguard4.7/src/proguard/classfile/attribute/LocalVariableInfo.java on lines 59..70
                  bb-tools/proguard4.7/src/proguard/classfile/attribute/LocalVariableTypeInfo.java on lines 60..71
                  bb-tools/proguard4.7/src/proguard/classfile/attribute/preverification/FullFrame.java on lines 66..77
                  bb-tools/proguard4.7/src/proguard/classfile/instruction/TableSwitchInstruction.java on lines 48..59
                  bb-tools/proguard4.7/src/proguard/classfile/util/ClassReferenceInitializer.java on lines 78..89
                  bb-tools/proguard4.7/src/proguard/classfile/visitor/ClassHierarchyTraveler.java on lines 56..68
                  bb-tools/proguard4.7/src/proguard/classfile/visitor/MethodImplementationTraveler.java on lines 57..68
                  bb-tools/proguard4.7/src/proguard/gui/splash/ImageSprite.java on lines 47..58
                  bb-tools/proguard4.7/src/proguard/gui/splash/ShadowedSprite.java on lines 51..62
                  bb-tools/proguard4.7/src/proguard/io/ClassReader.java on lines 55..66
                  bb-tools/proguard4.7/src/proguard/retrace/ReTrace.java on lines 659..666
                  bb-tools/proguard4.7/src/proguard/util/VariableStringMatcher.java on lines 38..49

                  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 60.

                  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 9 locations. Consider refactoring.
                  Open

                      private final Constant[] GET_DECLARED_CONSTRUCTOR_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] GET_CONSTRUCTOR_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] NEW_INTEGER_UPDATER_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] GET_DECLARED_FIELD_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] NEW_LONG_UPDATER_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] NEW_REFERENCE_UPDATER_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152

                  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

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

                      private final Constant[] GET_FIELD_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] GET_METHOD_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 124..132
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

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

                      private final Constant[] GET_DECLARED_METHOD_CONSTANTS = new Constant[]
                      {
                          new MethodrefConstant(1, 2, null, null),
                          new ClassConstant(3, null),
                          new NameAndTypeConstant(4, 5),
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 74..82
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 84..92
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 94..102
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 104..112
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 114..122
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 134..142
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 144..152
                  bb-tools/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java on lines 154..162

                  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

                  There are no issues that match your filters.

                  Category
                  Status