(tomcat) branch 11.0.x updated: Checkstyle

2026-05-21 Thread remm
This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
 new ae9a764a64 Checkstyle
ae9a764a64 is described below

commit ae9a764a64a2af8ceae6f85ac5be9eebfa63479b
Author: remm 
AuthorDate: Thu May 21 19:53:34 2026 +0200

Checkstyle
---
 java/org/apache/juli/DateFormatCache.java |  2 +
 test/org/apache/juli/TestDateFormatCache.java | 59 +++
 2 files changed, 17 insertions(+), 44 deletions(-)

diff --git a/java/org/apache/juli/DateFormatCache.java 
b/java/org/apache/juli/DateFormatCache.java
index e40e8e3550..822c1dd1fe 100644
--- a/java/org/apache/juli/DateFormatCache.java
+++ b/java/org/apache/juli/DateFormatCache.java
@@ -62,6 +62,8 @@ public class DateFormatCache {
  * Replace the millisecond formatting character 'S' by some dummy 
characters in order to make the resulting
  * formatted time stamps cacheable. Our consumer might choose to replace 
the dummy chars with the actual
  * milliseconds because that's relatively cheap.
+ * @param format the format
+ * @return the replacement format
  */
 protected static String tidyFormat(String format) {
 final int length = format.length();
diff --git a/test/org/apache/juli/TestDateFormatCache.java 
b/test/org/apache/juli/TestDateFormatCache.java
index 46a6e3a898..f252b37627 100644
--- a/test/org/apache/juli/TestDateFormatCache.java
+++ b/test/org/apache/juli/TestDateFormatCache.java
@@ -57,40 +57,34 @@ public class TestDateFormatCache {
 dfc.getFormat(secs * 1000);
 expected[secs] = generateExpected(sdf, secs);
 }
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 
 // Cause the cache to roll-around by one and then confirm
 dfc.getFormat(cacheSize * 1000);
 expected[0] = generateExpected(sdf, cacheSize);
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 
 // Jump 2 ahead and then confirm (skipped value should be null)
 dfc.getFormat((cacheSize + 2) * 1000);
 expected[1] = null;
 expected[2] = generateExpected(sdf, cacheSize + 2);
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 
 // Back 1 to fill in the gap
 dfc.getFormat((cacheSize + 1) * 1000);
 expected[1] = generateExpected(sdf, cacheSize + 1);
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 
 // Return to 1 and confirm skipped value is null
 dfc.getFormat(1 * 1000);
 expected[1] = generateExpected(sdf, 1);
 expected[2] = null;
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 
 // Go back one further
 dfc.getFormat(0);
 expected[0] = generateExpected(sdf, 0);
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 
 // Jump ahead far enough that the entire cache will need to be cleared
 dfc.getFormat(42 * 1000);
@@ -98,8 +92,7 @@ public class TestDateFormatCache {
 expected[i] = null;
 }
 expected[0] = generateExpected(sdf, 42);
-Assert.assertArrayEquals(expected,
-(String[]) dfcCacheArray.get(dfcCache));
+Assert.assertArrayEquals(expected, (String[]) 
dfcCacheArray.get(dfcCache));
 }
 
 private String generateExpected(SimpleDateFormat sdf, long secs) {
@@ -108,59 +101,37 @@ public class TestDateFormatCache {
 
 @Test
 public void replacesUnquotedS() {
-Assert.assertEquals(
-"HH:mm:ss.###",
-DateFormatCache.tidyFormat("HH:mm:ss.SSS")
-);
+Assert.assertEquals("HH:mm:ss.###", 
DateFormatCache.tidyFormat("HH:mm:ss.SSS"));
 }
 
 @Test
 public void doesNotReplaceQuotedS() {
-Assert.assertEquals(
-"HH:mm:ss.'SSS'",
-DateFormatCache.tidyFormat("HH:mm:ss.'SSS'")
-);
+Assert.assertEquals("HH:mm:ss.'SSS'", 
DateFormatCache.tidyFormat("HH:mm:ss.'SSS'"));
 }
 
 @Test
 public void handlesEscapedQuoteInsideLiteral() {
-Assert.assertEquals(
-"'o''clock' ###",

(tomcat) branch 11.0.x updated: Checkstyle

2026-04-02 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
 new 1847a003bd Checkstyle
1847a003bd is described below

commit 1847a003bd5f89bbec8bdaf082c51e144794838c
Author: remm 
AuthorDate: Thu Apr 2 15:20:35 2026 +0200

Checkstyle
---
 webapps/docs/changelog.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index f1364e491f..b4468021d5 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -133,7 +133,7 @@
   
   
 Fix various minor issues with some HTTP/2 stream error messages for
-HTTP/2. (markt)  
+HTTP/2. (markt)
   
 
   


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



(tomcat) branch 11.0.x updated: Checkstyle

2024-09-10 Thread remm
This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
 new 22251c0cfd Checkstyle
22251c0cfd is described below

commit 22251c0cfd8599ebe9c83c4d75bf34edc61b6e8d
Author: remm 
AuthorDate: Tue Sep 10 15:02:40 2024 +0200

Checkstyle
---
 webapps/docs/architecture/startup/4_catalina_start_2.plantuml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/webapps/docs/architecture/startup/4_catalina_start_2.plantuml 
b/webapps/docs/architecture/startup/4_catalina_start_2.plantuml
index 9c02c4de6e..2a0577f6f1 100644
--- a/webapps/docs/architecture/startup/4_catalina_start_2.plantuml
+++ b/webapps/docs/architecture/startup/4_catalina_start_2.plantuml
@@ -82,7 +82,7 @@ return
 
 Container -> Container: fireLifecycleEvent(\nSTART_EVENT)
 
-group If backgroundProcessorDelay > 0 (Engine defaults to 10, other Containers 
-1) 
+group If backgroundProcessorDelay > 0 (Engine defaults to 10, other Containers 
-1)
 Container -> UtilityExecutor ++: scheduleWithFixedDelay()
 UtilityExecutor --> ContainerBackgroundProcessor **
 note right of ContainerBackgroundProcessor


-
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]