CloneSet499


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8230.972method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18315
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java
28335
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java
Next
Last
Clone Instance
1
Line Count
8
Source Line
315
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java

/**
 * Returns the first millisecond of the hour.
 *
 * @param calendar  the calendar/timezone (<code>null</code> not permitted).
 *
 * @return The first millisecond.
 *
 * @throws NullPointerException if <code>calendar</code> is 
 *     <code>null</code>.
 */
public long getFirstMillisecond(Calendar calendar) {
  int year = this.day.getYear();
  int month = this.day.getMonth() - 1;
  int dom = this.day.getDayOfMonth();
  calendar.set(year, month, dom, this.hour, 0, 0);
  calendar.set(Calendar.MILLISECOND, 0);
  //return calendar.getTimeInMillis();  // this won't work for JDK 1.3
  return calendar.getTime().getTime();
}


First
Previous
Clone Instance
2
Line Count
8
Source Line
335
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Hour.java

/**
 * Returns the last millisecond of the hour.
 *
 * @param calendar  the calendar/timezone (<code>null</code> not permitted).
 *
 * @return The last millisecond.
 *
 * @throws NullPointerException if <code>calendar</code> is 
 *     <code>null</code>.
 */
public long getLastMillisecond(Calendar calendar) {
  int year = this.day.getYear();
  int month = this.day.getMonth() - 1;
  int dom = this.day.getDayOfMonth();
  calendar.set(year, month, dom, this.hour, 59, 59);
  calendar.set(Calendar.MILLISECOND, 999);
  //return calendar.getTimeInMillis();  // this won't work for JDK 1.3
  return calendar.getTime().getTime();
}


Clone AbstractionParameter Count: 3Parameter Bindings

/**
     * Returns the last millisecond of the hour.
     *
     * @param calendar  the calendar/timezone (<code>null</code> not permitted).
     *
     * @return The last millisecond.
     *
     * @throws NullPointerException if <code>calendar</code> is 
     *     <code>null</code>.
     */
/**
     * Returns the first millisecond of the hour.
     *
     * @param calendar  the calendar/timezone (<code>null</code> not permitted).
     *
     * @return The first millisecond.
     *
     * @throws NullPointerException if <code>calendar</code> is 
     *     <code>null</code>.
     */
public long  [[#variable1a9fb920]](Calendar calendar) {
  int year = this.day.getYear();
  int month = this.day.getMonth() - 1;
  int dom = this.day.getDayOfMonth();
  calendar.set(year, month, dom, this.hour,  [[#variable1a9fb880]],  [[#variable1a9fb880]]);
  calendar.set(Calendar.MILLISECOND,  [[#variable1a9fb760]]);
  //return calendar.getTimeInMillis();  // this won't work for JDK 1.3
  return calendar.getTime().getTime();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a9fb920]]
getFirstMillisecond 
12[[#1a9fb920]]
getLastMillisecond 
21[[#1a9fb880]]
0 
22[[#1a9fb880]]
59 
31[[#1a9fb760]]
0 
32[[#1a9fb760]]
999