CloneSet1377


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8410.994executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181586
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
285405
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
385414
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
496380
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java
Clone Instance
1
Line Count
8
Source Line
1586
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

        this.handle(
                // Cannot override the final method from %1
                // 8.4.3.3 - Final methods cannot be overridden or hidden.
                IProblem.FinalMethodCannotBeOverridden, 
                new String[] {
                              new String(inheritedMethod.declaringClass.readableName())
                             }, new String[] {
                                              new String(inheritedMethod.declaringClass.shortReadableName())
                                             }, currentMethod.sourceStart(), currentMethod.sourceEnd());


Clone Instance
2
Line Count
8
Source Line
5405
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

                this.handle(
                        // This static method cannot hide the instance method from %1
                        // 8.4.6.4 - If a class inherits more than one method with the same signature a static (non-abstract) method cannot hide an instance method.
                        IProblem.CannotHideAnInstanceMethodWithAStaticMethod, 
                        new String[] {
                                      new String(inheritedMethod.declaringClass.readableName())
                                     }, new String[] {
                                                      new String(inheritedMethod.declaringClass.shortReadableName())
                                                     }, currentMethod.sourceStart(), currentMethod.sourceEnd());


Clone Instance
3
Line Count
8
Source Line
5414
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

                this.handle(
                        // This instance method cannot override the static method from %1
                        // 8.4.6.4 - If a class inherits more than one method with the same signature an instance (non-abstract) method cannot override a static method.
                        IProblem.CannotOverrideAStaticMethodWithAnInstanceMethod, 
                        new String[] {
                                      new String(inheritedMethod.declaringClass.readableName())
                                     }, new String[] {
                                                      new String(inheritedMethod.declaringClass.shortReadableName())
                                                     }, currentMethod.sourceStart(), currentMethod.sourceEnd());


Clone Instance
4
Line Count
9
Source Line
6380
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java

        this.handle(
                //      Cannot reduce the visibility of the inherited method from %1
                // 8.4.6.3 - The access modifier of an hiding method must provide at least as much access as the hidden method.
                // 8.4.6.3 - The access modifier of an overiding method must provide at least as much access as the overriden method.
                IProblem.MethodReducesVisibility, 
                new String[] {
                              new String(inheritedMethod.declaringClass.readableName())
                             }, new String[] {
                                              new String(inheritedMethod.declaringClass.shortReadableName())
                                             }, currentMethod.sourceStart(), currentMethod.sourceEnd());


Clone AbstractionParameter Count: 1Parameter Bindings

this.handle(
            // Cannot override the final method from %1
            // 8.4.3.3 - Final methods cannot be overridden or hidden.
            // This static method cannot hide the instance method from %1
            // 8.4.6.4 - If a class inherits more than one method with the same signature a static (non-abstract) method cannot hide an instance method.
            // This instance method cannot override the static method from %1
            // 8.4.6.4 - If a class inherits more than one method with the same signature an instance (non-abstract) method cannot override a static method.
            //      Cannot reduce the visibility of the inherited method from %1
            // 8.4.6.3 - The access modifier of an hiding method must provide at least as much access as the hidden method.
            // 8.4.6.3 - The access modifier of an overiding method must provide at least as much access as the overriden method.
            IProblem. [[#variablea0563800]], new String[] {
                                                            new String(inheritedMethod.declaringClass.readableName())
                                                          }, new String[] {
                                                                            new String(inheritedMethod.declaringClass.shortReadableName())
                                                                          }, currentMethod.sourceStart(), currentMethod.sourceEnd());
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a0563800]]
FinalMethodCannotBeOverridden 
12[[#a0563800]]
CannotHideAnInstanceMethodWithAStaticMethod 
13[[#a0563800]]
CannotOverrideAStaticMethodWithAnInstanceMethod 
14[[#a0563800]]
MethodReducesVisibility