CloneSet1173


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3220.963method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
134258
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java
234277
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java
Next
Last
Clone Instance
1
Line Count
3
Source Line
4258
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java

/**
 * Returns true if the specified character is valid. This method
 * also checks the surrogate character range from 0x10000 to 0x10FFFF.
 * <p>
 * If the program chooses to apply the mask directly to the
 * <code>CHARS</code> array, then they are responsible for checking
 * the surrogate character range.
 *
 * @param c The character to check.
 */
public static boolean isValid(int c) {
  return (c < 0x10000 && (CHARS[c]&MASK_VALID) != 0) || (0x10000 <= c && c <= 0x10ffff);
} // isValid(int):boolean


First
Previous
Clone Instance
2
Line Count
3
Source Line
4277
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/internal/DataValue.java

/**
 * Returns true if the specified character can be considered content.
 *
 * @param c The character to check.
 */
public static boolean isContent(int c) {
  return (c < 0x10000 && (CHARS[c]&MASK_CONTENT) != 0) || (0x10000 <= c && c <= 0x10ffff);
} // isContent(int):boolean


Clone AbstractionParameter Count: 2Parameter Bindings

/**
      * Returns true if the specified character can be considered content.
      *
      * @param c The character to check.
      */
/**
      * Returns true if the specified character is valid. This method
      * also checks the surrogate character range from 0x10000 to 0x10FFFF.
      * <p>
      * If the program chooses to apply the mask directly to the
      * <code>CHARS</code> array, then they are responsible for checking
      * the surrogate character range.
      *
      * @param c The character to check.
      */
public static boolean  [[#variable1751c240]](int c) {
  return (c < 0x10000 && (CHARS[c]& [[#variable1751c1c0]]) != 0) || (0x10000 <= c && c <= 0x10ffff);
} // isContent(int):boolean // isValid(int):boolean
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1751c240]]
isValid 
12[[#1751c240]]
isContent 
21[[#1751c1c0]]
MASK_VALID 
22[[#1751c1c0]]
MASK_CONTENT