return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max( (int) (c.getGreen() * FACTOR), 0), Math.max( (int) (c.getBlue() * FACTOR), 0));
return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max( (int) (c.getGreen() * FACTOR), 0), Math.max( (int) (c.getBlue() * FACTOR), 0));
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/comp/CalendarPicker.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/list/DefaultStringRenderer.java
Method name: Color darker(Color) Method name: Color darker(Color)
Number of AST nodes: 1 Number of AST nodes: 1
1
return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max(
1
return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max(
2
				(int) (c.getGreen() * FACTOR), 0), Math.max(
2
				(int) (c.getGreen() * FACTOR), 0), Math.max(
3
				(int) (c.getBlue() * FACTOR), 0));
3
				(int) (c.getBlue() * FACTOR), 0));
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    return new Color(Math.max((int)(c.getRed() * FACTOR), 0), Math.max((int)(c.getGreen() * FACTOR), 0), Math.max((int)(c.getBlue() * FACTOR), 0));
    1
    return new Color(Math.max((int)(c.getRed() * FACTOR), 0), Math.max((int)(c.getGreen() * FACTOR), 0), Math.max((int)(c.getBlue() * FACTOR), 0));
    Precondition Violations (0)
    Row Violation