This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new bd6eefa Simplify code
bd6eefa is described below
commit bd6eefaa22c7804a63c517935ae54660919829f7
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 0d3afd7..532c209 100644
--- a/java/org/apache/tomcat/util/buf/B2CConverter.java
+++ b/java/org/apache/tomcat/util/buf/B2CConverter.java
@@ -36,11 +36,8 @@ public class B2CConverter {
private static final StringManager sm =
StringManager.getManager(B2CConverter.class);
- 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]