Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 2 | 0.953 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 232 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/util/DateUtils.java |
2 | 2 | 248 | 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); } |
| |||||
/** * 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); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#130f6460]] | parseIso8601DateTime |
1 | 2 | [[#130f6460]] | parseIso8601Date |
2 | 1 | [[#130f63a0]] | ISO8601_DATETIME_PATTERN |
2 | 2 | [[#130f63a0]] | ISO8601_DATE_PATTERN |