You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/07/26 22:44:39 UTC
(commons-lang) 02/02: Remove useless comment prefix and postfix
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 126b33613999b0e6b2e931a4fdfbc1221ed530e0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 26 18:44:31 2024 -0400
Remove useless comment prefix and postfix
---
src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
index 61c6e80d1..812290832 100644
--- a/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/time/DateUtilsTest.java
@@ -1606,13 +1606,13 @@ public class DateUtilsTest extends AbstractLangTest {
assertEquals("2004-10-31 01:02:03.000 -06:00", format.format(oct31_01_02_03MDT), "Check 01:02:03.000");
assertEquals("2004-10-31 01:02:03.004 -06:00", format.format(oct31_01_02_03_04MDT), "Check 01:02:03.004");
- // ------- Demonstrate Problem -------
+ // Demonstrate Problem
final Calendar gval = Calendar.getInstance();
gval.setTime(new Date(oct31_01MDT.getTime()));
gval.set(Calendar.MINUTE, gval.get(Calendar.MINUTE)); // set minutes to the same value
assertEquals(gval.getTime().getTime(), oct31_01MDT.getTime() + 3600000L, "Demonstrate Problem");
- // ---------- Test Truncate ----------
+ // Test Truncate
assertEquals(oct31_01_02_03_04MDT, DateUtils.truncate(oct31_01_02_03_04MDT, Calendar.MILLISECOND),
"Truncate Calendar.MILLISECOND");
@@ -1631,7 +1631,7 @@ public class DateUtilsTest extends AbstractLangTest {
assertEquals(oct31MDT, DateUtils.truncate(oct31_01_02_03_04MDT, Calendar.DATE),
"Truncate Calendar.DATE");
- // ---------- Test Round (down) ----------
+ // Test Round (down)
assertEquals(oct31_01_02_03_04MDT, DateUtils.round(oct31_01_02_03_04MDT, Calendar.MILLISECOND),
"Round Calendar.MILLISECOND");