CloneSet255


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12330.966method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112321
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java
212347
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java
39284
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Second.java
Next
Last
Clone Instance
1
Line Count
12
Source Line
321
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java

/**
 * Returns the first millisecond of the minute.
 *
 * @param calendar  the calendar which defines the 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 day = this.day.getDayOfMonth();
  calendar.clear();
  calendar.set(year, month, day, this.hour, this.minute, 0);
  calendar.set(Calendar.MILLISECOND, 0);
  //return calendar.getTimeInMillis();  // this won't work for JDK 1.3
  return calendar.getTime().getTime();
}


Next
Previous
Clone Instance
2
Line Count
12
Source Line
347
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Minute.java

/**
 * Returns the last millisecond of the minute.
 *
 * @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 day = this.day.getDayOfMonth();
  calendar.clear();
  calendar.set(year, month, day, this.hour, this.minute, 59);
  calendar.set(Calendar.MILLISECOND, 999);
  //return calendar.getTimeInMillis();  // this won't work for JDK 1.3
  return calendar.getTime().getTime();
}


First
Previous
Clone Instance
3
Line Count
9
Source Line
284
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/Second.java

/**
 * Returns the first millisecond of the minute.
 *
 * @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 day = this.day.getDayOfMonth();
  calendar.clear();
  calendar.set(year, month, day, this.hour, this.minute, this.second);
  calendar.set(Calendar.MILLISECOND, 0);
  //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 minute.
     *
     * @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 minute.
     *
     * @param calendar  the calendar which defines the timezone 
     *     (<code>null</code> not permitted).
     *
     * @return The first millisecond.
     *
     * @throws NullPointerException if <code>calendar</code> is 
     *     <code>null</code>.
     */
/**
     * Returns the first millisecond of the minute.
     *
     * @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  [[#variable1a86e8e0]](Calendar calendar) {
  int year = this.day.getYear();
  int month = this.day.getMonth() - 1;
  int day = this.day.getDayOfMonth();
  calendar.clear();
  calendar.set(year, month, day, this.hour, this.minute,  [[#variable1a86e880]]);
  calendar.set(Calendar.MILLISECOND,  [[#variable1a86e800]]);
  //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[[#1a86e8e0]]
getFirstMillisecond 
12[[#1a86e8e0]]
getLastMillisecond 
13[[#1a86e8e0]]
getFirstMillisecond 
21[[#1a86e880]]
0 
22[[#1a86e880]]
59 
23[[#1a86e880]]
this.second 
31[[#1a86e800]]
0 
32[[#1a86e800]]
999 
33[[#1a86e800]]
0