CloneSet946


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2220.953method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13232
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DateUtils.java
22248
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DateUtils.java
Next
Last
Clone Instance
1
Line Count
3
Source Line
232
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DateUtils.java

/**
 * Parse a string as a datetime using the ISO8601_DATETIME format which is
 * <code>yyyy-MM-dd'T'HH:mm:ss</code>
 *
 * @param datestr string to be parsed
 *
 * @return a java.util.Date object as parsed by the format.
 * @exception ParseException if the supplied string cannot be parsed by
 * this pattern.
 * @since Ant 1.6
 */
public static Date parseIso8601DateTime(String datestr) throws ParseException {
  return new SimpleDateFormat(ISO8601_DATETIME_PATTERN).parse(datestr);
}


First
Previous
Clone Instance
2
Line Count
2
Source Line
248
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DateUtils.java

/**
 * Parse a string as a date using the ISO8601_DATE format which is
 * <code>yyyy-MM-dd</code>
 *
 * @param datestr string to be parsed
 *
 * @return a java.util.Date object as parsed by the format.
 * @exception ParseException if the supplied string cannot be parsed by
 * this pattern.
 * @since Ant 1.6
 */
public static Date parseIso8601Date(String datestr) throws ParseException {
  return new SimpleDateFormat(ISO8601_DATE_PATTERN).parse(datestr);
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Parse a string as a date using the ISO8601_DATE format which is
     * <code>yyyy-MM-dd</code>
     *
     * @param datestr string to be parsed
     *
     * @return a java.util.Date object as parsed by the format.
     * @exception ParseException if the supplied string cannot be parsed by
     * this pattern.
     * @since Ant 1.6
     */
/**
     * Parse a string as a datetime using the ISO8601_DATETIME format which is
     * <code>yyyy-MM-dd'T'HH:mm:ss</code>
     *
     * @param datestr string to be parsed
     *
     * @return a java.util.Date object as parsed by the format.
     * @exception ParseException if the supplied string cannot be parsed by
     * this pattern.
     * @since Ant 1.6
     */
public static Date  [[#variable130f6460]](String datestr) throws ParseException {
  return new SimpleDateFormat( [[#variable130f63a0]]).parse(datestr);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#130f6460]]
parseIso8601DateTime 
12[[#130f6460]]
parseIso8601Date 
21[[#130f63a0]]
ISO8601_DATETIME_PATTERN 
22[[#130f63a0]]
ISO8601_DATE_PATTERN