hackedteam/core-blackberry

View on GitHub
bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java

Summary

Maintainability
F
3 wks
Test Coverage

File InstructionSequenceConstants.java has 3575 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)

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

            {   // switch (...) { case/case/case/default: ... } = switch (...) { case/case/default: ... }
                {
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, B, new int[] { X, Y, Z }, new int[] { A, B, C }),
                },{
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, B, new int[] { X, Z }, new int[] { A, C }),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3488..3494
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3502..3508

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

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

            {   // switch (...) { case/case/case/default: ... } = switch (...) { case/case/default: ... }
                {
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, C, new int[] { X, Y, Z }, new int[] { A, B, C }),
                },{
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, C, new int[] { X, Y }, new int[] { A, B }),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3488..3494
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3495..3501

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

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

            {   // switch (...) { case/case/case/default: ... } = switch (...) { case/case/default: ... }
                {
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, A, new int[] { X, Y, Z }, new int[] { A, B, C }),
                },{
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, A, new int[] { Y, Z }, new int[] { B, C }),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3495..3501
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3502..3508

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

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

            {   // (... & 0x0000ff00) >>> 8 = (... >>> 8) & 0xff
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0x0000ff00),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 8),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2035..2047
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2061..2073
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2074..2086

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

            {   // (... & 0x00ff0000) >>> 16 = (... >>> 16) & 0xff
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0x00ff0000),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2035..2047
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2048..2060
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2061..2073

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

            {   // (... & 0x00ff0000) >> 16 = (... >> 16) & 0xff
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0x00ff0000),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2035..2047
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2048..2060
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2074..2086

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

            {   // (... & 0x0000ff00) >> 8 = (... >> 8) & 0xff
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0x0000ff00),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 8),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2048..2060
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2061..2073
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2074..2086

    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

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

            {   // if (-1 < i) = getfield/ifge
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_M1),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (1 <= i) = getfield/ifgt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (-1 >= i) = getfield/iflt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_M1),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (0 == i) = getfield/ifeq
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (null == a) = getfield/ifnull
                {
                    new SimpleInstruction(InstructionConstants.OP_ACONST_NULL),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (null != a) = getfield/ifnonnull
                {
                    new SimpleInstruction(InstructionConstants.OP_ACONST_NULL),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177

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

            {   // if (1 > i) = getfield/ifle
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (0 > i) = getfield/iflt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (0 <= i) = getfield/ifge
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (0 < i) = getfield/ifgt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (0 != i) = getfield/ifeq
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3114..3125
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // if (0 >= i) = getfield/ifle
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new ConstantInstruction(InstructionConstants.OP_GETFIELD, Z),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2766..2777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2806..2817
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2874..2885
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2886..2897
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2954..2965
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2966..2977
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3034..3045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3046..3057
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3126..3137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3166..3177
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3206..3217

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

            {   // StringBuffer#append("...").append(Ic) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(D) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(Cc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(Z) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(Fc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(D) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(Jc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(I) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(Z) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(C) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(Ic) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append("...") = StringBuilder#append("......")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368

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

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

            {   // new StringBuffer("...").append(I) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(Cc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(J) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(F) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(F) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(Cc) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(C) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(D) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(Dc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(Z) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(Dc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(Dc) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(C) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(F) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(Fc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(Jc) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(Jc) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(Fc) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(D) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(Cc) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append("...") = new StringBuffer("......")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(C) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append("...") = StringBuffer#append("......")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(Ic) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(I) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(J) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(Jc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuffer("...").append(Ic) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(F) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(I) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(J) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuffer#append("...").append(J) = StringBuffer#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append(Z) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // new StringBuilder("...").append("...") = new StringBuilder("......")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(Fc) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4358..4368
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

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

            {   // StringBuilder#append("...").append(Dc) = StringBuilder#append("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3701..3711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3712..3722
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3723..3733
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3734..3744
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3745..3755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3756..3766
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3767..3777
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3778..3788
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3789..3799
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3800..3810
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3811..3821
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3822..3832
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3833..3843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3844..3854
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3855..3865
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3866..3876
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3877..3887
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3888..3898
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3899..3909
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3910..3920
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3921..3931
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3932..3942
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3943..3953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3954..3964
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4116..4126
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4127..4137
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4138..4148
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4149..4159
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4160..4170
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4171..4181
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4182..4192
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4193..4203
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4204..4214
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4215..4225
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4226..4236
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4237..4247
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4248..4258
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4259..4269
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4270..4280
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4281..4291
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4292..4302
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4303..4313
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4314..4324
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4325..4335
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4336..4346
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4347..4357
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4369..4379

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

    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

            {   // switch (...) { case/case/default: ... } = switch (...) { case/default: ... }
                {
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, B, new int[] { X, Y }, new int[] { A, B }),
                },{
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, B, new int[] { X }, new int[] { A }),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3474..3480

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

    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

            {   // switch (...) { case/case/default: ... } = switch (...) { case/default: ... }
                {
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, A, new int[] { X, Y }, new int[] { A, B }),
                },{
                    new LookUpSwitchInstruction(InstructionConstants.OP_LOOKUPSWITCH, A, new int[] { Y }, new int[] { B }),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3481..3487

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

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

            {   // new StringBuffer("...").toString() = "..." (ignoring identity)
                {
                    new ConstantInstruction(InstructionConstants.OP_NEW, CLASS_STRINGBUFFER),
                    new SimpleInstruction(InstructionConstants.OP_DUP),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3562..3572
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3966..3976
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3977..3987

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

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

            {   // new StringBuilder("...").length() = length
                {
                    new ConstantInstruction(InstructionConstants.OP_NEW, CLASS_STRINGBUILDER),
                    new SimpleInstruction(InstructionConstants.OP_DUP),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3551..3561
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3562..3572
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3966..3976

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

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

            {   // new StringBuffer("...").length() = length
                {
                    new ConstantInstruction(InstructionConstants.OP_NEW, CLASS_STRINGBUFFER),
                    new SimpleInstruction(InstructionConstants.OP_DUP),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3551..3561
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3966..3976
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3977..3987

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

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

            {   // new StringBuilder("...").toString() = "..." (ignoring identity)
                {
                    new ConstantInstruction(InstructionConstants.OP_NEW, CLASS_STRINGBUILDER),
                    new SimpleInstruction(InstructionConstants.OP_DUP),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3551..3561
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3562..3572
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3977..3987

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

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

            {   // c + f = f + c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new VariableInstruction(InstructionConstants.OP_FLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_FADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // b * i = i * b
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c * i = i * c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c * f = f * c
                {
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_FLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_FMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + f = f + c
                {
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_FLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_FADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + l = l + c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new VariableInstruction(InstructionConstants.OP_LLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_LADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + i = i + c
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // b + i = i + b
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + i = i + c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + d = d + c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new VariableInstruction(InstructionConstants.OP_DLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_DADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // s + i = i + s
                {
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // s * i = i * s
                {
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + l = l + c
                {
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_LLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_LADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c * d = d * c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new VariableInstruction(InstructionConstants.OP_DLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_DMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711

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

            {   // c * i = i * c
                {
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, A),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_IMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c * l = l * c
                {
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_LLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_LMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c * f = f * c
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new VariableInstruction(InstructionConstants.OP_FLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_LMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c * d = d * c
                {
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_DLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_DMUL),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 679..689
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // c + d = d + c
                {
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, A),
                    new VariableInstruction(InstructionConstants.OP_DLOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_DADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 514..524
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 525..535
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 536..546
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 547..557
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 558..568
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 569..579
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 580..590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 591..601
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 602..612
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 613..623
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 624..634
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 635..645
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 646..656
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 657..667
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 668..678
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 690..700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 701..711
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 712..722

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

            {   // (... & 0xff000000) >> 24 = ... >> 24
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0xff000000),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2098..2108
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2109..2119
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2279..2289
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2290..2300

    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

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

            {   // (... >> 24) & 0xff = ... >>> 24
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
                    new SimpleInstruction(InstructionConstants.OP_ISHR),
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, 0xff),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2131..2141

    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

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

            {   // (... >>> 24) & 0xff = ... >>> 24
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
                    new SimpleInstruction(InstructionConstants.OP_IUSHR),
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, 0xff),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2120..2130

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

            {   // (... & 0xffffffff00000000L) >> 32 = ... >> 32
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, L_0xffffffff00000000),
                    new SimpleInstruction(InstructionConstants.OP_LAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 32),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2087..2097
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2098..2108
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2109..2119
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2290..2300

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

            {   // (... & 0xffff0000) >> 16 = ... >> 16
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0xffff0000),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2087..2097
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2109..2119
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2279..2289
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2290..2300

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

            {   // (... & 0xffff0000) >>> 16 = ... >>> 16
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC, I_0xffff0000),
                    new SimpleInstruction(InstructionConstants.OP_IAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2087..2097
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2098..2108
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2279..2289
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2290..2300

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

            {   // (... & 0xffffffff00000000L) >>> 32 = ... >>> 32
                {
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, L_0xffffffff00000000),
                    new SimpleInstruction(InstructionConstants.OP_LAND),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 32),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2087..2097
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2098..2108
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2109..2119
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2279..2289

    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

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

            {   // new StringBuffer().append(F) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_FLOAT),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(Z) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_BOOLEAN),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // i = i + c = i += c
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, A),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 733..742
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 743..752

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

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

            {   // new StringBuffer().append(Cc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_CHAR),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(J) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_LONG),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(Fc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_FLOAT),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append("...") = new StringBuffer("......")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_STRING),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(F) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_FCONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_FLOAT),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(Dc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_DOUBLE),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // i = i + s = i += s
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_SIPUSH, A),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 723..732
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 733..742

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

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

            {   // i = i + b = i += b
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, A),
                    new SimpleInstruction(InstructionConstants.OP_IADD),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 723..732
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 743..752

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

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

            {   // new StringBuffer().append(D) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_DOUBLE),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append("...") = new StringBuilder("......")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_STRING),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105

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

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

            {   // new StringBuffer().append(Ic) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_INTEGER),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(I) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_INTEGER),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(Ic) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_INTEGER),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(Jc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_LONG),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(Fc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_FLOAT),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(Dc) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_DOUBLE),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(C) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_CHAR),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(I) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_INTEGER),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(D) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_DCONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_DOUBLE),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(C) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_CHAR),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(Cc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_CHAR),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(Z) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_BOOLEAN),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuffer().append(J) = new StringBuffer("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUFFER_INIT),
                    new SimpleInstruction(InstructionConstants.OP_LCONST_0, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUFFER_APPEND_LONG),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4056..4065
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

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

            {   // new StringBuilder().append(Jc) = new StringBuilder("....")
                {
                    new ConstantInstruction(InstructionConstants.OP_INVOKESPECIAL, METHOD_STRINGBUILDER_INIT),
                    new ConstantInstruction(InstructionConstants.OP_LDC2_W, A),
                    new ConstantInstruction(InstructionConstants.OP_INVOKEVIRTUAL, METHOD_STRINGBUILDER_APPEND_LONG),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3581..3590
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3591..3600
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3601..3610
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3611..3620
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3621..3630
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3631..3640
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3641..3650
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3651..3660
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3661..3670
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3671..3680
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3681..3690
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3691..3700
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3996..4005
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4006..4015
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4016..4025
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4026..4035
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4036..4045
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4046..4055
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4066..4075
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4076..4085
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4086..4095
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4096..4105
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 4106..4115

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

    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

            {   // i = i - 2 = i -= 2
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_2),
                    new SimpleInstruction(InstructionConstants.OP_ISUB),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 763..772
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 783..792
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 793..802
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 803..812

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

    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

            {   // i = i - 4 = i -= 4
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_4),
                    new SimpleInstruction(InstructionConstants.OP_ISUB),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 763..772
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 773..782
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 783..792
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 803..812

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

    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

            {   // i = i - 1 = i--
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new SimpleInstruction(InstructionConstants.OP_ISUB),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 773..782
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 783..792
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 793..802
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 803..812

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

    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

            {   // i = i - 3 = i -= 3
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_3),
                    new SimpleInstruction(InstructionConstants.OP_ISUB),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 763..772
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 773..782
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 793..802
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 803..812

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

    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

            {   // i = i - 5 = i -= 5
                {
                    new VariableInstruction(InstructionConstants.OP_ILOAD, X),
                    new SimpleInstruction(InstructionConstants.OP_ICONST_5),
                    new SimpleInstruction(InstructionConstants.OP_ISUB),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 763..772
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 773..782
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 783..792
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 793..802

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

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

            {   // if (-1 < i) = iload/ifge
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_M1),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (-1 < i) = getstatic/ifge
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_M1),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 >= i) = getstatic/ifle
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 != i) = getstatic/ifeq
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPNE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 <= i) = iload/ifge
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 < i) = getstatic/ifgt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 == i) = getstatic/ifeq
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPEQ, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 != i) = iload/ifeq
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPNE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (-1 >= i) = getstatic/iflt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_M1),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 > i) = iload/iflt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (null == a) = getstatic/ifnull
                {
                    new SimpleInstruction(InstructionConstants.OP_ACONST_NULL),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFACMPEQ, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (-1 >= i) = iload/iflt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_M1),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (null != a) = getstatic/ifnonnull
                {
                    new SimpleInstruction(InstructionConstants.OP_ACONST_NULL),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFACMPNE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195

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

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

            {   // if (0 == i) = iload/ifeq
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPEQ, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (1 > i) = iload/ifle
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (1 > i) = getstatic/ifle
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 < i) = iload/ifgt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (null == a) = aload/ifnull
                {
                    new SimpleInstruction(InstructionConstants.OP_ACONST_NULL),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFACMPEQ, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (1 <= i) = iload/ifgt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 >= i) = iload/ifle
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new VariableInstruction(InstructionConstants.OP_ILOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (null != a) = aload/ifnonnull
                {
                    new SimpleInstruction(InstructionConstants.OP_ACONST_NULL),
                    new VariableInstruction(InstructionConstants.OP_ALOAD, Y),
                    new BranchInstruction(InstructionConstants.OP_IFACMPNE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 <= i) = getstatic/ifge
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (1 <= i) = getstatic/ifgt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_1),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPLE, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2854..2863
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

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

            {   // if (0 > i) = getstatic/iflt
                {
                    new SimpleInstruction(InstructionConstants.OP_ICONST_0),
                    new ConstantInstruction(InstructionConstants.OP_GETSTATIC, Y),
                    new BranchInstruction(InstructionConstants.OP_IFICMPGT, X),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2746..2755
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2756..2765
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2786..2795
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2796..2805
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2834..2843
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2844..2853
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2864..2873
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2914..2923
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2924..2933
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2934..2943
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2944..2953
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2994..3003
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3004..3013
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3014..3023
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3024..3033
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3074..3083
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3084..3093
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3094..3103
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3104..3113
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3146..3155
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3156..3165
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3186..3195
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 3196..3205

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

    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

            {   // ... << 24 >> 24 = (byte)...
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
                    new SimpleInstruction(InstructionConstants.OP_ISHL),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2239..2248
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2249..2258

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

            {   // (short)(... >> 16) = ... >> 16
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
                    new SimpleInstruction(InstructionConstants.OP_ISHR),
                    new SimpleInstruction(InstructionConstants.OP_I2S),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2169..2178
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2179..2188
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2189..2198
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2199..2208
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2219..2228

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

            {   // (short)(... >>> 16) = ... >> 16
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
                    new SimpleInstruction(InstructionConstants.OP_IUSHR),
                    new SimpleInstruction(InstructionConstants.OP_I2S),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2169..2178
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2179..2188
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2189..2198
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2199..2208
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2209..2218

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

            {   // ... << 16 >>> 16 = (char)...
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
                    new SimpleInstruction(InstructionConstants.OP_ISHL),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2229..2238
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2249..2258

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

            {   // ... << 16 >> 16 = (short)...
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
                    new SimpleInstruction(InstructionConstants.OP_ISHL),
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2229..2238
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2239..2248

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

            {   // (char)(... >> 16) = ... >>> 16
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
                    new SimpleInstruction(InstructionConstants.OP_ISHR),
                    new SimpleInstruction(InstructionConstants.OP_I2C),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2169..2178
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2179..2188
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2199..2208
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2209..2218
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2219..2228

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

            {   // (char)(... >>> 16) = ... >>> 16
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 16),
                    new SimpleInstruction(InstructionConstants.OP_IUSHR),
                    new SimpleInstruction(InstructionConstants.OP_I2C),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2169..2178
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2179..2188
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2189..2198
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2209..2218
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2219..2228

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

            {   // (byte)(... >>> 24) = ... >> 24
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
                    new SimpleInstruction(InstructionConstants.OP_IUSHR),
                    new SimpleInstruction(InstructionConstants.OP_I2B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2169..2178
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2189..2198
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2199..2208
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2209..2218
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2219..2228

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

            {   // (byte)(... >> 24) = ... >> 24
                {
                    new SimpleInstruction(InstructionConstants.OP_BIPUSH, 24),
                    new SimpleInstruction(InstructionConstants.OP_ISHR),
                    new SimpleInstruction(InstructionConstants.OP_I2B),
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2179..2188
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2189..2198
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2199..2208
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2209..2218
    bb-tools/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java on lines 2219..2228

    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