You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/07/05 20:58:08 UTC
[commons-bcel] branch master updated: Fix unconventional private
class name.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push:
new 34a9f10 Fix unconventional private class name.
34a9f10 is described below
commit 34a9f10f606d214024ae2083de80b901c98aee1a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Jul 5 16:58:02 2019 -0400
Fix unconventional private class name.
---
src/main/java/org/apache/bcel/classfile/ConstantUtf8.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java b/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
index 21d17a9..8e0788d 100644
--- a/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
+++ b/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
@@ -34,7 +34,7 @@ import org.apache.bcel.Const;
*/
public final class ConstantUtf8 extends Constant {
- private static class CACHE_HOLDER {
+ private static class CacheHolder {
private static final int MAX_CACHE_ENTRIES = 20000;
private static final int INITIAL_CACHE_CAPACITY = (int) (MAX_CACHE_ENTRIES / 0.75);
@@ -80,7 +80,7 @@ public final class ConstantUtf8 extends Constant {
* @since 6.4.0
*/
public static void clearCache() {
- CACHE_HOLDER.CACHE.clear();
+ CacheHolder.CACHE.clear();
}
// for accesss by test code
@@ -98,13 +98,13 @@ public final class ConstantUtf8 extends Constant {
}
considered++;
synchronized (ConstantUtf8.class) { // might be better with a specific lock object
- ConstantUtf8 result = CACHE_HOLDER.CACHE.get(s);
+ ConstantUtf8 result = CacheHolder.CACHE.get(s);
if (result != null) {
hits++;
return result;
}
result = new ConstantUtf8(s);
- CACHE_HOLDER.CACHE.put(s, result);
+ CacheHolder.CACHE.put(s, result);
return result;
}
}