CloneSet505


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.991method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114250
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemPropertyDescriptor.java
214729
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderAdapter.java
Next
Last
Clone Instance
1
Line Count
14
Source Line
250
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemPropertyDescriptor.java

// This is copied from ItemProviderAdapterFactory.
//
protected String crop(String text) {
  if (text != null) {
    char[] chars = text.toCharArray();
    for (int i = 0; i < chars.length; i++) {
      if (Character.isISOControl(chars[i])) {
        return text.substring(0, i) + "...";
      }
    }
  }
  return text;
}


First
Previous
Clone Instance
2
Line Count
14
Source Line
729
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderAdapter.java

/**
 * This crops the given text to exclude any control characters. The first such character and all following it are replaced by "..."
 * @since 2.2.0
 */
public String crop(String text) {
  if (text != null) {
    char[] chars = text.toCharArray();
    for (int i = 0; i < chars.length; i++) {
      if (Character.isISOControl(chars[i])) {
        return text.substring(0, i) + "...";
      }
    }
  }
  return text;
}


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variable1730d840]]String crop(String text) {
  if (text != null) {
    char[] chars = text.toCharArray();
    for (int i = 0; i < chars.length; i++) {
      if (Character.isISOControl(chars[i])) {
        return text.substring(0, i) + "...";
      }
    }
  }
  return text;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1730d840]]
// This is copied from ItemProviderAdapterFactory.
//
protected 
12[[#1730d840]]
/**
 * This crops the given text to exclude any control characters. The first such character and all following it are replaced by "..."
 * @since 2.2.0
 */
public