This is an automated email from the ASF dual-hosted git repository.
lihan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 161e35a798 Formatting. Use 120 characters as the line length limit for
code.
161e35a798 is described below
commit 161e35a798c068d0278c4186d17e73137cbf4b76
Author: lihan <[email protected]>
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 b1f59767cc..ecfc7aaa16 100644
--- a/java/org/apache/catalina/connector/Request.java
+++ b/java/org/apache/catalina/connector/Request.java
@@ -3401,8 +3401,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: [email protected]
For additional commands, e-mail: [email protected]