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:59:10 UTC
[tomcat] branch 9.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 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new dc63855342 Formatting. Use 120 characters as the line length limit for code.
dc63855342 is described below
commit dc63855342c41495738df5a75861f1915eb6108a
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 5816cb6fbc..266a853f7b 100644
--- a/java/org/apache/catalina/connector/Request.java
+++ b/java/org/apache/catalina/connector/Request.java
@@ -3466,8 +3466,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 ad476c8d73..7af67d25d1 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