hackedteam/core-blackberry

View on GitHub
bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java

Summary

Maintainability
F
1 wk
Test Coverage

Method createAttribute has a Cognitive Complexity of 231 (exceeds 5 allowed). Consider refactoring.
Open

    private Attribute createAttribute(Clazz clazz)
    {
        int u2attributeNameIndex = dataInput.readUnsignedShort();
        int u4attributeLength    = dataInput.readInt();
        String attributeName     = clazz.getString(u2attributeNameIndex);
Severity: Minor
Found in bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java - About 4 days to fix

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

File ProgramClassReader.java has 624 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)

    ProgramClassReader has 62 methods (exceeds 20 allowed). Consider refactoring.
    Open

    public class ProgramClassReader
    extends      SimplifiedVisitor
    implements   ClassVisitor,
                 MemberVisitor,
                 ConstantVisitor,

      Method createStackMapFrame has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
      Open

          private StackMapFrame createStackMapFrame()
          {
              int u1tag = dataInput.readUnsignedByte();
      
              return

      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 visitProgramClass has 54 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public void visitProgramClass(ProgramClass programClass)
          {
              // Read and check the magic number.
              programClass.u4magic = dataInput.readInt();
      
      

        Method createAttribute has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private Attribute createAttribute(Clazz clazz)
            {
                int u2attributeNameIndex = dataInput.readUnsignedShort();
                int u4attributeLength    = dataInput.readInt();
                String attributeName     = clazz.getString(u2attributeNameIndex);

          Method visitProgramClass has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
          Open

              public void visitProgramClass(ProgramClass programClass)
              {
                  // Read and check the magic number.
                  programClass.u4magic = dataInput.readInt();
          
          
          Severity: Minor
          Found in bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java - About 45 mins to fix

          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 visitAnyVerificationType has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public void visitAnyVerificationType(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VerificationType verificationType)
          Severity: Minor
          Found in bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.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/io/ProgramClassReader.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/io/ProgramClassReader.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/io/ProgramClassReader.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/io/ProgramClassReader.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/io/ProgramClassReader.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/io/ProgramClassReader.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/io/ProgramClassReader.java - About 35 mins to fix

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

                              private Constant createConstant()
                              {
                                  int u1tag = dataInput.readUnsignedByte();
                          
                                  switch (u1tag)
                          bb-tools/proguard4.7/src/proguard/classfile/io/LibraryClassReader.java on lines 340..363

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

                          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)
                              {
                                  // Read the general method information.
                                  programMethod.u2accessFlags     = dataInput.readUnsignedShort();
                                  programMethod.u2nameIndex       = dataInput.readUnsignedShort();
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 166..183

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

                          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)
                              {
                                  // Read the general field information.
                                  programField.u2accessFlags     = dataInput.readUnsignedShort();
                                  programField.u2nameIndex       = dataInput.readUnsignedShort();
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 186..203

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

                          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 visitLineNumberTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LineNumberTableAttribute lineNumberTableAttribute)
                              {
                                  // Read the line numbers.
                                  lineNumberTableAttribute.u2lineNumberTableLength = dataInput.readUnsignedShort();
                          
                          
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 473..485
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 488..500

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

                          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 visitLocalVariableTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTableAttribute localVariableTableAttribute)
                              {
                                  // Read the local variables.
                                  localVariableTableAttribute.u2localVariableTableLength = dataInput.readUnsignedShort();
                          
                          
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 458..470
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 488..500

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

                          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 visitLocalVariableTypeTableAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeTableAttribute localVariableTypeTableAttribute)
                              {
                                  // Read the local variable types.
                                  localVariableTypeTableAttribute.u2localVariableTypeTableLength = dataInput.readUnsignedShort();
                          
                          
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 458..470
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 473..485

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

                          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 visitBootstrapMethodsAttribute(Clazz clazz, BootstrapMethodsAttribute bootstrapMethodsAttribute)
                              {
                                  // Read the bootstrap methods.
                                  bootstrapMethodsAttribute.u2bootstrapMethodsCount = dataInput.readUnsignedShort();
                          
                          
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 332..344
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 503..515

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

                          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 visitAnyAnnotationsAttribute(Clazz clazz, AnnotationsAttribute annotationsAttribute)
                              {
                                  // Read the annotations.
                                  annotationsAttribute.u2annotationsCount = dataInput.readUnsignedShort();
                          
                          
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 305..317
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 332..344

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

                          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 visitInnerClassesAttribute(Clazz clazz, InnerClassesAttribute innerClassesAttribute)
                              {
                                  // Read the inner classes.
                                  innerClassesAttribute.u2classesCount = dataInput.readUnsignedShort();
                          
                          
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 305..317
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 503..515

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

                          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)
                              {
                                  localVariableInfo.u2startPC         = dataInput.readUnsignedShort();
                                  localVariableInfo.u2length          = dataInput.readUnsignedShort();
                                  localVariableInfo.u2nameIndex       = dataInput.readUnsignedShort();
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 719..726

                          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 visitLocalVariableTypeInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, LocalVariableTypeInfo localVariableTypeInfo)
                              {
                                  localVariableTypeInfo.u2startPC        = dataInput.readUnsignedShort();
                                  localVariableTypeInfo.u2length         = dataInput.readUnsignedShort();
                                  localVariableTypeInfo.u2nameIndex      = dataInput.readUnsignedShort();
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 707..714

                          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

                                  for (int index = 0; index < fullFrame.variablesCount; index++)
                                  {
                                      VerificationType verificationType = createVerificationType();
                                      verificationType.variablesAccept(clazz, method, codeAttribute, offset, index, this);
                                      fullFrame.variables[index] = verificationType;
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 667..672

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

                          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

                                  for (int index = 0; index < fullFrame.stackCount; index++)
                                  {
                                      VerificationType verificationType = createVerificationType();
                                      verificationType.stackAccept(clazz, method, codeAttribute, offset, index, this);
                                      fullFrame.stack[index] = verificationType;
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 657..662

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

                          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

                                  for (int index = 0; index < programClass.u2fieldsCount; index++)
                                  {
                                      ProgramField programField = new ProgramField();
                                      this.visitProgramField(programClass, programField);
                                      programClass.fields[index] = programField;
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 139..144

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

                          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

                                  for (int index = 0; index < programClass.u2methodsCount; index++)
                                  {
                                      ProgramMethod programMethod = new ProgramMethod();
                                      this.visitProgramMethod(programClass, programMethod);
                                      programClass.methods[index] = programMethod;
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 128..133

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

                          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

                              public void visitInnerClassesInfo(Clazz clazz, InnerClassesInfo innerClassesInfo)
                              {
                                  innerClassesInfo.u2innerClassIndex       = dataInput.readUnsignedShort();
                                  innerClassesInfo.u2outerClassIndex       = dataInput.readUnsignedShort();
                                  innerClassesInfo.u2innerNameIndex        = dataInput.readUnsignedShort();
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 595..601

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

                          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

                              public void visitExceptionInfo(Clazz clazz, Method method, CodeAttribute codeAttribute, ExceptionInfo exceptionInfo)
                              {
                                  exceptionInfo.u2startPC   = dataInput.readUnsignedShort();
                                  exceptionInfo.u2endPC     = dataInput.readUnsignedShort();
                                  exceptionInfo.u2handlerPC = dataInput.readUnsignedShort();
                          bb-tools/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java on lines 584..590

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

                          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

                              public void visitUtf8Constant(Clazz clazz, Utf8Constant utf8Constant)
                              {
                                  int u2length = dataInput.readUnsignedShort();
                          
                                  // Read the UTF-8 bytes.
                          bb-tools/proguard4.7/src/proguard/classfile/io/LibraryClassReader.java on lines 269..277

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

                          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