This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new 9e9f28e Simplify code
9e9f28e is described below
commit 9e9f28efceee78dd928966a87d9aa73326d8fc3f
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Mar 15 13:29:04 2019 +0000
Simplify code
---
java/org/apache/tomcat/util/buf/B2CConverter.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/java/org/apache/tomcat/util/buf/B2CConverter.java
b/java/org/apache/tomcat/util/buf/B2CConverter.java
index 2dd63c0..9d72234 100644
--- a/java/org/apache/tomcat/util/buf/B2CConverter.java
+++ b/java/org/apache/tomcat/util/buf/B2CConverter.java
@@ -37,11 +37,8 @@ public class B2CConverter {
private static final StringManager sm =
StringManager.getManager(Constants.Package);
- private static final CharsetCache charsetCache;
+ private static final CharsetCache charsetCache = new CharsetCache();
- static {
- charsetCache = new CharsetCache();
- }
// Protected so unit tests can use it
protected static final int LEFTOVER_SIZE = 9;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]