CloneSet4485


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1857
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointFieldLocator.java
2875
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointMethodLocator.java
Clone Instance
1
Line Count
8
Source Line
57
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointFieldLocator.java

        /**
         * Return the name of type in which the field is declared.
         * Return <code>null</code> if there is no field declaration at the given position.
         */
        public String getTypeName() {
                return fTypeName;
        }

        private boolean containsPosition(ASTNode node) {
                int startPosition = node.getStartPosition();
                int endPosition = startPosition + node.getLength();
                return startPosition <= fPosition && fPosition <= endPosition;
        }


Clone Instance
2
Line Count
8
Source Line
75
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/BreakpointMethodLocator.java

        /**
         * Return the name of type in which the method is declared.
         * Return <code>null</code> if there is no method declaration at the given position.
         * @see BreakpointFieldLocator#getMethodName()
         */
        public String getTypeName() {
                return fTypeName;
        }

        private boolean containsPosition(ASTNode node) {
                int startPosition = node.getStartPosition();
                int endPosition = startPosition + node.getLength();
                return startPosition <= fPosition && fPosition <= endPosition;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Return the name of type in which the field is declared.
         * Return <code>null</code> if there is no field declaration at the given position.
         */
/**
         * Return the name of type in which the method is declared.
         * Return <code>null</code> if there is no method declaration at the given position.
         * @see BreakpointFieldLocator#getMethodName()
         */
public String getTypeName() {
  return fTypeName;
}

private boolean containsPosition(ASTNode node) {
  int startPosition = node.getStartPosition();
  int endPosition = startPosition + node.getLength();
  return startPosition <= fPosition && fPosition <= endPosition;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None