Fixing reversed Javadoc descriptions (#781)
The descriptions for `formatTime()` and `formatSplitTime()` were reversed; the former said "Returns the split time" and the latter said "returns the time".
This PR switches their descriptions so that they now match the behavior of the methods.
diff --git a/src/main/java/org/apache/commons/lang3/time/StopWatch.java b/src/main/java/org/apache/commons/lang3/time/StopWatch.java
index 21505cb..9a82cbd 100644
--- a/src/main/java/org/apache/commons/lang3/time/StopWatch.java
+++ b/src/main/java/org/apache/commons/lang3/time/StopWatch.java
@@ -249,9 +249,9 @@
}
/**
- * Returns the time formatted by {@link DurationFormatUtils#formatDurationHMS}.
+ * Returns the split time formatted by {@link DurationFormatUtils#formatDurationHMS}.
*
- * @return the time formatted by {@link DurationFormatUtils#formatDurationHMS}.
+ * @return the split time formatted by {@link DurationFormatUtils#formatDurationHMS}.
* @since 3.10
*/
public String formatSplitTime() {
@@ -259,9 +259,9 @@
}
/**
- * Returns the split time formatted by {@link DurationFormatUtils#formatDurationHMS}.
+ * Returns the time formatted by {@link DurationFormatUtils#formatDurationHMS}.
*
- * @return the split time formatted by {@link DurationFormatUtils#formatDurationHMS}.
+ * @return the time formatted by {@link DurationFormatUtils#formatDurationHMS}.
* @since 3.10
*/
public String formatTime() {