You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2019/03/15 13:30:07 UTC
[tomcat] branch 8.5.x updated: Simplify code
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 <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org