diff options
author | chibash <chiba@javassist.org> | 2019-03-17 22:57:29 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2019-03-17 22:57:29 +0900 |
commit | e3f70e8d1d8cc1838886191ae398b53c3bbe7963 (patch) | |
tree | 59c941f7ac105cb01789c9b44d1916af9c07ba8f | |
parent | 50430c10beedcc5971ed63c12810f1c13f1c33a5 (diff) | |
download | javassist-e3f70e8d1d8cc1838886191ae398b53c3bbe7963.tar.gz javassist-e3f70e8d1d8cc1838886191ae398b53c3bbe7963.zip |
adds javadoc comments for PR #250
-rw-r--r-- | Readme.html | 5 | ||||
-rw-r--r-- | build.xml | 2 | ||||
-rw-r--r-- | javassist.jar | bin | 767975 -> 768754 bytes | |||
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | src/main/javassist/CtClass.java | 4 | ||||
-rw-r--r-- | src/main/javassist/runtime/Desc.java | 15 |
6 files changed, 22 insertions, 6 deletions
diff --git a/Readme.html b/Readme.html index 68f49e1e..0c4daf46 100644 --- a/Readme.html +++ b/Readme.html @@ -7,7 +7,7 @@ <h1>Javassist version 3</h1> -<h3>Copyright (C) 1999-2018 by Shigeru Chiba, All rights reserved.</h3> +<h3>Copyright (C) 1999-2019 by Shigeru Chiba, All rights reserved.</h3> <p><br></p> @@ -283,7 +283,8 @@ see javassist.Dump. <p>-version 3.25 <ul> - <li>GitHub Issue #72 (PR #231), #241, #242 (PR #243), PR #244. + <li>GitHub Issue #72 (PR #231), #241, #242 (PR #243), PR #244, + #246 (PR #247), PR #250. </ul> <p>-version 3.24.1 on December 9, 2018 @@ -6,7 +6,7 @@ <project name="javassist" default="jar" basedir="."> - <property name="dist-version" value="javassist-3.24.1-GA"/> + <property name="dist-version" value="javassist-3.25-GA"/> <property environment="env"/> <property name="target.jar" value="javassist.jar"/> diff --git a/javassist.jar b/javassist.jar Binary files differindex f9e84222..5a670de7 100644 --- a/javassist.jar +++ b/javassist.jar @@ -7,7 +7,7 @@ Javassist (JAVA programming ASSISTant) makes Java bytecode manipulation simple. It is a class library for editing bytecodes in Java. </description> - <version>3.24.1-GA</version> + <version>3.25-GA</version> <name>Javassist</name> <url>http://www.javassist.org/</url> diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index 5c9ca722..5df3a69e 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -69,7 +69,7 @@ public abstract class CtClass { /** * The version number of this release. */ - public static final String version = "3.24.1-GA"; + public static final String version = "3.25-GA"; /** * Prints the version number and the copyright notice. @@ -80,7 +80,7 @@ public abstract class CtClass { */ public static void main(String[] args) { System.out.println("Javassist version " + CtClass.version); - System.out.println("Copyright (C) 1999-2018 Shigeru Chiba." + System.out.println("Copyright (C) 1999-2019 Shigeru Chiba." + " All Rights Reserved."); } diff --git a/src/main/javassist/runtime/Desc.java b/src/main/javassist/runtime/Desc.java index 9fbe8f22..8299b5cd 100644 --- a/src/main/javassist/runtime/Desc.java +++ b/src/main/javassist/runtime/Desc.java @@ -41,10 +41,25 @@ public class Desc { } }; + /** + * Changes so that the current thread will use the context class loader + * when a class is loaded. + * This method changes the behavior per thread unlike {@link useContextClassLoader}. + * + * @since 3.25 + */ public static void setUseContextClassLoaderLocally() { USE_CONTEXT_CLASS_LOADER_LOCALLY.set(true); } + /** + * Changes so that the current thread will not use the context class loader + * when a class is loaded. + * Call this method before releasing the current thread for reuse. + * It invokes <code>ThreadLocal.remvoe()</code>. + * + * @since 3.25 + */ public static void resetUseContextClassLoaderLocally() { USE_CONTEXT_CLASS_LOADER_LOCALLY.remove(); } |