From 106b44b0e0b7d19c8af4abc03b88c6d64ec442f0 Mon Sep 17 00:00:00 2001 From: chibash Date: Fri, 5 Oct 2018 18:04:11 +0900 Subject: [PATCH] fixes typos in javadocs. --- src/main/META-INF/MANIFEST.MF | 2 +- src/main/javassist/ClassPool.java | 4 +-- src/main/javassist/CtClass.java | 8 ++--- src/main/javassist/Modifier.java | 32 +++++++++---------- src/main/javassist/expr/ExprEditor.java | 8 ++--- src/main/javassist/expr/NewArray.java | 4 +-- src/main/javassist/expr/NewExpr.java | 10 +++--- .../util/proxy/DefineClassHelper.java | 2 +- .../javassist/util/proxy/ProxyFactory.java | 2 +- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/main/META-INF/MANIFEST.MF b/src/main/META-INF/MANIFEST.MF index 1d89a56a..d54cb4ba 100644 --- a/src/main/META-INF/MANIFEST.MF +++ b/src/main/META-INF/MANIFEST.MF @@ -1,5 +1,5 @@ Specification-Title: Javassist Specification-Vendor: Shigeru Chiba, www.javassist.org -Specification-Version: 3.24-GA +Specification-Version: 3.24.0-RC Main-Class: javassist.CtClass Automatic-Module-Name: org.javassist diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java index 100afbe5..37f2acbd 100644 --- a/src/main/javassist/ClassPool.java +++ b/src/main/javassist/ClassPool.java @@ -1038,7 +1038,7 @@ public class ClassPool { * work with a security manager or a signed jar file because a * protection domain is not specified.

* - * @see #toCalss(CtClass,Class) + * @see #toClass(CtClass,Class) * @see #toClass(CtClass,Class,java.lang.ClassLoader,ProtectionDomain) * @see #getClassLoader() */ @@ -1206,7 +1206,7 @@ public class ClassPool { * *

If your program is for only Java 9 or later, don't use this method. * Use {@link #toClass(CtClass,Class)} or - * {@link #toClass(CtClass)CtClass,java.lang.invoke.MethodHandles.Lookup)}. + * {@link #toClass(CtClass,java.lang.invoke.MethodHandles.Lookup)}. *

* * @param ct the class converted into {@code java.lang.Class}. diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index bb5bab6e..8fe598d2 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-GA"; + public static final String version = "3.24.0-RC"; /** * Prints the version number and the copyright notice. @@ -1262,7 +1262,7 @@ public abstract class CtClass { * class. * *

Warning: In Java 11 or later, the call to this method will - * print a warning message: + * print a warning message:

*
      * WARNING: An illegal reflective access operation has occurred
      * WARNING: Illegal reflective access by javassist.util.proxy.SecurityActions$3 ...
@@ -1270,7 +1270,7 @@ public abstract class CtClass {
      * WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      * WARNING: All illegal access operations will be denied in a future release
      * 
- * To avoid this message, use {@link #toClass(Class)} + *

To avoid this message, use {@link #toClass(Class)} * or {@link #toClass(java.lang.invoke.MethodHandles.Lookup)}. * {@link #toClass()} will be unavailable in a future release. *

@@ -1309,7 +1309,7 @@ public abstract class CtClass { * @param neighbor A class belonging to the same package that this * class belongs to. It is used to load the class. * @see ClassPool#toClass(CtClass,Class) - * @see #CtClass(java.lang.invoke.MethodHandles.Lookup) + * @see #toClass(java.lang.invoke.MethodHandles.Lookup) * @since 3.24 */ public Class toClass(Class neighbor) throws CannotCompileException diff --git a/src/main/javassist/Modifier.java b/src/main/javassist/Modifier.java index fd73c3b3..733cc67b 100644 --- a/src/main/javassist/Modifier.java +++ b/src/main/javassist/Modifier.java @@ -46,7 +46,7 @@ public class Modifier { public static final int ENUM = AccessFlag.ENUM; /** - * Returns true if the modifiers include the public + * Returns true if the modifiers include the public * modifier. */ public static boolean isPublic(int mod) { @@ -54,7 +54,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the private + * Returns true if the modifiers include the private * modifier. */ public static boolean isPrivate(int mod) { @@ -62,7 +62,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the protected + * Returns true if the modifiers include the protected * modifier. */ public static boolean isProtected(int mod) { @@ -71,14 +71,14 @@ public class Modifier { /** * Returns true if the modifiers do not include either - * public, protected, or private. + * public, protected, or private. */ public static boolean isPackage(int mod) { return (mod & (PUBLIC | PRIVATE | PROTECTED)) == 0; } /** - * Returns true if the modifiers include the static + * Returns true if the modifiers include the static * modifier. */ public static boolean isStatic(int mod) { @@ -86,7 +86,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the final + * Returns true if the modifiers include the final * modifier. */ public static boolean isFinal(int mod) { @@ -94,7 +94,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the synchronized + * Returns true if the modifiers include the synchronized * modifier. */ public static boolean isSynchronized(int mod) { @@ -102,7 +102,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the volatile + * Returns true if the modifiers include the volatile * modifier. */ public static boolean isVolatile(int mod) { @@ -110,7 +110,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the transient + * Returns true if the modifiers include the transient * modifier. */ public static boolean isTransient(int mod) { @@ -118,7 +118,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the native + * Returns true if the modifiers include the native * modifier. */ public static boolean isNative(int mod) { @@ -126,7 +126,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the interface + * Returns true if the modifiers include the interface * modifier. */ public static boolean isInterface(int mod) { @@ -134,7 +134,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the annotation + * Returns true if the modifiers include the annotation * modifier. * * @since 3.2 @@ -144,7 +144,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the enum + * Returns true if the modifiers include the enum * modifier. * * @since 3.2 @@ -154,7 +154,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the abstract + * Returns true if the modifiers include the abstract * modifier. */ public static boolean isAbstract(int mod) { @@ -162,7 +162,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the strictfp + * Returns true if the modifiers include the strictfp * modifier. */ public static boolean isStrict(int mod) { @@ -170,7 +170,7 @@ public class Modifier { } /** - * Returns true if the modifiers include the varargs + * Returns true if the modifiers include the varargs * (variable number of arguments) modifier. */ public static boolean isVarArgs(int mod) { diff --git a/src/main/javassist/expr/ExprEditor.java b/src/main/javassist/expr/ExprEditor.java index 0b3f934e..0f9bedce 100644 --- a/src/main/javassist/expr/ExprEditor.java +++ b/src/main/javassist/expr/ExprEditor.java @@ -35,7 +35,7 @@ import javassist.bytecode.Opcode; *

If instrument() is called in * CtMethod, the method body is scanned from the beginning * to the end. - * Whenever an expression, such as a method call and a new + * Whenever an expression, such as a method call and a new * expression (object creation), * is found, edit() is called in ExprEdit. * edit() can inspect and modify the given expression. @@ -259,10 +259,10 @@ public class ExprEditor { } /** - * Edits a new expression (overridable). + * Edits a new expression (overridable). * The default implementation performs nothing. * - * @param e the new expression creating an object. + * @param e the new expression creating an object. */ public void edit(NewExpr e) throws CannotCompileException {} @@ -270,7 +270,7 @@ public class ExprEditor { * Edits an expression for array creation (overridable). * The default implementation performs nothing. * - * @param a the new expression for creating an array. + * @param a the new expression for creating an array. * @throws CannotCompileException */ public void edit(NewArray a) throws CannotCompileException {} diff --git a/src/main/javassist/expr/NewArray.java b/src/main/javassist/expr/NewArray.java index 70d74afd..df30e26f 100644 --- a/src/main/javassist/expr/NewArray.java +++ b/src/main/javassist/expr/NewArray.java @@ -92,9 +92,9 @@ public class NewArray extends Expr { /** * Returns the type of array components. If the created array is - * a two-dimensional array of int, + * a two-dimensional array of int, * the type returned by this method is - * not int[] but int. + * not int[] but int. */ public CtClass getComponentType() throws NotFoundException { if (opcode == Opcode.NEWARRAY) { diff --git a/src/main/javassist/expr/NewExpr.java b/src/main/javassist/expr/NewExpr.java index 6b28475b..3171fc3f 100644 --- a/src/main/javassist/expr/NewExpr.java +++ b/src/main/javassist/expr/NewExpr.java @@ -38,7 +38,7 @@ import javassist.compiler.ProceedHandler; import javassist.compiler.ast.ASTList; /** - * Object creation (new expression). + * Object creation (new expression). */ public class NewExpr extends Expr { String newTypeName; @@ -69,7 +69,7 @@ public class NewExpr extends Expr { } */ /** - * Returns the method or constructor containing the new + * Returns the method or constructor containing the new * expression represented by this object. */ @Override @@ -77,7 +77,7 @@ public class NewExpr extends Expr { /** * Returns the line number of the source line containing the - * new expression. + * new expression. * * @return -1 if this information is not available. */ @@ -87,7 +87,7 @@ public class NewExpr extends Expr { } /** - * Returns the source file containing the new expression. + * Returns the source file containing the new expression. * * @return null if this information is not available. */ @@ -173,7 +173,7 @@ public class NewExpr extends Expr { } /** - * Replaces the new expression with the bytecode derived from + * Replaces the new expression with the bytecode derived from * the given source text. * *

$0 is available but the value is null. diff --git a/src/main/javassist/util/proxy/DefineClassHelper.java b/src/main/javassist/util/proxy/DefineClassHelper.java index 401fed69..96ade4aa 100644 --- a/src/main/javassist/util/proxy/DefineClassHelper.java +++ b/src/main/javassist/util/proxy/DefineClassHelper.java @@ -252,7 +252,7 @@ public class DefineClassHelper { * @param loader the class loader. It can be null if {@code neighbor} is not null * and the JVM is Java 11 or later. * @param domain if it is null, a default domain is used. - * @parma bcode the bytecode for the loaded class. + * @param bcode the bytecode for the loaded class. * @since 3.22 */ public static Class toClass(String className, Class neighbor, ClassLoader loader, diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java index bc2c024f..0c39a508 100644 --- a/src/main/javassist/util/proxy/ProxyFactory.java +++ b/src/main/javassist/util/proxy/ProxyFactory.java @@ -214,7 +214,7 @@ public class ProxyFactory { * *

The default value is {@code false}.

* - * @see DefineClassHelper#toClass(String, Class, ClassLoader, ProtectionDomain, byte[]) + * @see DefineClassHelper#toClass(String, Class, ClassLoader, ProtectionDomain, byte[]) * @since 3.22 */ public static boolean onlyPublicMethods = false; -- 2.39.5