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
commit 52d4dac1f942903abebe762fd6173da20f896f07 Author: Gary Gregory <ggreg...@rocketsoftware.com> AuthorDate: Mon Jun 3 07:47:18 2019 -0400 [BCEL-318] Add org.apache.bcel.classfile.ConstantUtf8.clearCache(). --- pom.xml | 4 ++-- src/changes/changes.xml | 3 ++- src/main/java/org/apache/bcel/classfile/ConstantUtf8.java | 9 +++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index c46c351..6e812e1 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ <groupId>org.apache.bcel</groupId> <artifactId>bcel</artifactId> <packaging>jar</packaging> - <version>6.3.2-SNAPSHOT</version> + <version>6.4.0-SNAPSHOT</version> <name>Apache Commons BCEL</name> <description>Apache Commons Bytecode Engineering Library</description> @@ -47,7 +47,7 @@ <maven.compiler.target>1.8</maven.compiler.target> <commons.componentid>bcel</commons.componentid> <commons.module.name>org.apache.bcel</commons.module.name> - <commons.release.version>6.3.2</commons.release.version> + <commons.release.version>6.4.0</commons.release.version> <commons.release.isDistModule>true</commons.release.isDistModule> <commons.rc.version>RC1</commons.rc.version> <commons.bc.version>6.3.1</commons.bc.version> diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 403202b..96a7bbb 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -62,9 +62,10 @@ The <action> type attribute can be add,update,fix,remove. --> <body> - <release version="6.3.2" date="2019-MM-DD" description="Bug fix release"> + <release version="6.4.0" date="2019-MM-DD" description="Bug fix release"> <action issue="BCEL-316" type="fix" dev="ggregory" due-to="Gary Gregory">org.apache.bcel.classfile.Attribute class and subclasses should NOT log to the console by default.</action> <action issue="BCEL-278" type="fix" dev="ggregory" due-to="Valery Barysoky">InvokeInstruction.toString(final ConstantPool cp) throws NoSuchElementException #11.</action> + <action issue="BCEL-318" type="fix" dev="ggregory" due-to="Gary Gregory">Add org.apache.bcel.classfile.ConstantUtf8.clearCache().</action> </release> <release version="6.3.1" date="2019-03-20" description="Bug fix release"> diff --git a/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java b/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java index 1035935..b9b7e6e 100644 --- a/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java +++ b/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java @@ -74,6 +74,15 @@ public final class ConstantUtf8 extends Constant { } } + /** + * Clears the cache. + * + * @since 6.4.0 + */ + public static void clearCache() { + CACHE_HOLDER.CACHE.clear(); + } + // for accesss by test code static void clearStats() { hits = considered = skipped = created = 0;