You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by li...@apache.org on 2022/10/10 01:58:50 UTC

[tomcat] branch 10.0.x updated: Formatting. Use 120 characters as the line length limit for code.

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/10.0.x by this push:
     new 4bfe0fc385 Formatting. Use 120 characters as the line length limit for code.
4bfe0fc385 is described below

commit 4bfe0fc3851b27f0d0850e85ac3692eab06581a4
Author: lihan <li...@apache.org>
AuthorDate: Mon Oct 10 09:58:09 2022 +0800

    Formatting. Use 120 characters as the line length limit for code.
---
 java/org/apache/catalina/connector/Request.java                    | 3 +--
 java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/java/org/apache/catalina/connector/Request.java b/java/org/apache/catalina/connector/Request.java
index af2f1ccd2f..d867cdd554 100644
--- a/java/org/apache/catalina/connector/Request.java
+++ b/java/org/apache/catalina/connector/Request.java
@@ -3434,8 +3434,7 @@ public class Request implements HttpServletRequest {
         for (AcceptLanguage acceptLanguage : acceptLanguages) {
             // Add a new Locale to the list of Locales for this quality level
             Double key = Double.valueOf(-acceptLanguage.getQuality());  // Reverse the order
-            locales.computeIfAbsent(key, k -> new ArrayList<>())
-                .add(acceptLanguage.getLocale());
+            locales.computeIfAbsent(key, k -> new ArrayList<>()).add(acceptLanguage.getLocale());
         }
     }
 
diff --git a/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java b/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
index 6e779a610c..54bba7f35b 100644
--- a/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
+++ b/java/org/apache/tomcat/util/descriptor/web/SecurityConstraint.java
@@ -682,8 +682,7 @@ public class SecurityConstraint extends XmlEncodingBase implements Serializable
                             }
                         } else {
                             // Build the union of methods for this pattern
-                            urlMethodMap.computeIfAbsent(pattern, k -> new HashSet<>())
-                                .addAll(Arrays.asList(methods));
+                            urlMethodMap.computeIfAbsent(pattern, k -> new HashSet<>()).addAll(Arrays.asList(methods));
                         }
                     }
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org