aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/util
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2015-01-06 02:54:09 +0900
committerchibash <chiba@javassist.org>2015-01-06 02:54:09 +0900
commit5a6662f29d49404965a9138d323d09aafc12128e (patch)
tree8f69a67ce83d946add6daaae63cc4c93cbcaf8e7 /src/main/javassist/util
parentec3afdfb5d58b98ae8091d59f84d0d2f7f97a725 (diff)
downloadjavassist-5a6662f29d49404965a9138d323d09aafc12128e.tar.gz
javassist-5a6662f29d49404965a9138d323d09aafc12128e.zip
preparation for 3.19 release. fixed bugs in javadoc comments
Diffstat (limited to 'src/main/javassist/util')
-rw-r--r--src/main/javassist/util/HotSwapper.java8
-rw-r--r--src/main/javassist/util/proxy/ProxyFactory.java24
2 files changed, 15 insertions, 17 deletions
diff --git a/src/main/javassist/util/HotSwapper.java b/src/main/javassist/util/HotSwapper.java
index 75ab1b86..9028f2aa 100644
--- a/src/main/javassist/util/HotSwapper.java
+++ b/src/main/javassist/util/HotSwapper.java
@@ -29,7 +29,7 @@ class Trigger {
/**
* A utility class for dynamically reloading a class by
- * the Java Platform Debugger Architecture (JPDA), or <it>HotSwap</code>.
+ * the Java Platform Debugger Architecture (JPDA), or <i>HotSwap</i>.
* It works only with JDK 1.4 and later.
*
* <p><b>Note:</b> The new definition of the reloaded class must declare
@@ -40,12 +40,10 @@ class Trigger {
* <p>To use this class, the JVM must be launched with the following
* command line options:
*
- * <ul>
* <p>For Java 1.4,<br>
* <pre>java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000</pre>
* <p>For Java 5,<br>
* <pre>java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000</pre>
- * </ul>
*
* <p>Note that 8000 is the port number used by <code>HotSwapper</code>.
* Any port number can be specified. Since <code>HotSwapper</code> does not
@@ -57,12 +55,12 @@ class Trigger {
*
* <p>Using <code>HotSwapper</code> is easy. See the following example:
*
- * <ul><pre>
+ * <pre>
* CtClass clazz = ...
* byte[] classFile = clazz.toBytecode();
* HotSwapper hs = new HostSwapper(8000); // 8000 is a port number.
* hs.reload("Test", classFile);
- * </pre></ul>
+ * </pre>
*
* <p><code>reload()</code>
* first unload the <code>Test</code> class and load a new version of
diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java
index 34d67179..8c43fa65 100644
--- a/src/main/javassist/util/proxy/ProxyFactory.java
+++ b/src/main/javassist/util/proxy/ProxyFactory.java
@@ -46,7 +46,7 @@ import javassist.bytecode.*;
*
* <p>For example, if the following code is executed,
*
- * <ul><pre>
+ * <pre>
* ProxyFactory f = new ProxyFactory();
* f.setSuperclass(Foo.class);
* f.setFilter(new MethodFilter() {
@@ -65,7 +65,7 @@ import javassist.bytecode.*;
* };
* Foo foo = (Foo)c.newInstance();
* ((Proxy)foo).setHandler(mi);
- * </pre></ul>
+ * </pre>
*
* <p>Here, <code>Method</code> is <code>java.lang.reflect.Method</code>.</p>
*
@@ -73,40 +73,40 @@ import javassist.bytecode.*;
* <code>mi</code> and prints a message before executing the originally called method
* <code>bar()</code> in <code>Foo</code>.
*
- * <ul><pre>
+ * <pre>
* foo.bar();
- * </pre></ul>
+ * </pre>
*
* <p>The last three lines of the code shown above can be replaced with a call to
* the helper method <code>create</code>, which generates a proxy class, instantiates
* it, and sets the method handler of the instance:
*
- * <ul><pre>
+ * <pre>
* :
* Foo foo = (Foo)f.create(new Class[0], new Object[0], mi);
- * </pre></ul>
+ * </pre>
*
* <p>To change the method handler during runtime,
* execute the following code:
*
- * <ul><pre>
+ * <pre>
* MethodHandler mi = ... ; // alternative handler
* ((Proxy)foo).setHandler(mi);
- * </pre></ul>
+ * </pre>
*
* <p> If setHandler is never called for a proxy instance then it will
* employ the default handler which proceeds by invoking the original method.
* The behaviour of the default handler is identical to the following
* handler:
*
- * <ul><pre>
+ * <pre>
* class EmptyHandler implements MethodHandler {
* public Object invoke(Object self, Method m,
* Method proceed, Object[] args) throws Exception {
* return proceed.invoke(self, args);
* }
* }
- * </pre></ul>
+ * </pre>
*
* <p>A proxy factory caches and reuses proxy classes by default. It is possible to reset
* this default globally by setting static field {@link ProxyFactory#useCache} to false.
@@ -592,13 +592,13 @@ public class ProxyFactory {
* implementation.
*
* <p>Example:
- * <ul><pre>
+ * <pre>
* ProxyFactory.classLoaderProvider = new ProxyFactory.ClassLoaderProvider() {
* public ClassLoader get(ProxyFactory pf) {
* return Thread.currentThread().getContextClassLoader();
* }
* };
- * </pre></ul>
+ * </pre>
*
* @since 3.4
*/