diff options
Diffstat (limited to 'src/main/java/org/testng/reporters/XMLReporterConfig.java')
-rwxr-xr-x | src/main/java/org/testng/reporters/XMLReporterConfig.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/main/java/org/testng/reporters/XMLReporterConfig.java b/src/main/java/org/testng/reporters/XMLReporterConfig.java index f48186c6..af25cfe2 100755 --- a/src/main/java/org/testng/reporters/XMLReporterConfig.java +++ b/src/main/java/org/testng/reporters/XMLReporterConfig.java @@ -105,16 +105,6 @@ public class XMLReporterConfig { // intricacies of ISO-8601. static final String FMT_DEFAULT = "yyyy-MM-dd'T'HH:mm:ss'Z'"; - public static long convertDate(String date) { - SimpleDateFormat format = new SimpleDateFormat(getTimestampFormat()); - try { - long result = format.parse(date).getTime(); - return result; - } catch (ParseException e) { - return -1; - } - } - /** * Indicates the way that the file fragmentation should be performed. Set this * property to one of the FF_LEVEL_* values for the desired output structure @@ -169,7 +159,7 @@ public class XMLReporterConfig { /** * The output format for timestamps */ - private static String timestampFormat = FMT_DEFAULT; + private String timestampFormat = FMT_DEFAULT; public int getFileFragmentationLevel() { return fileFragmentationLevel; @@ -211,7 +201,7 @@ public class XMLReporterConfig { this.splitClassAndPackageNames = splitClassAndPackageNames; } - public static String getTimestampFormat() { + public String getTimestampFormat() { return timestampFormat; } |