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 5ef2a47f58fbef63a806d9ad551eab71baf707d1
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Feb 14 08:59:55 2026 -0500

    Javadoc
---
 src/main/java/org/apache/bcel/generic/ObjectType.java | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/bcel/generic/ObjectType.java 
b/src/main/java/org/apache/bcel/generic/ObjectType.java
index 2fd4c4ff..aff11edb 100644
--- a/src/main/java/org/apache/bcel/generic/ObjectType.java
+++ b/src/main/java/org/apache/bcel/generic/ObjectType.java
@@ -52,9 +52,11 @@ public class ObjectType extends ReferenceType {
     }
 
     /**
-     * Java Virtual Machine Specification edition 2, � 5.4.4 Access Control
+     * Java Virtual Machine Specification edition 2, 5.4.4 Access Control.
      *
-     * @throws ClassNotFoundException if the class referenced by this type 
can't be found
+     * @param accessor the accessing type.
+     * @return true if accessible.
+     * @throws ClassNotFoundException if the class referenced by this type 
can't be found.
      */
     public boolean accessibleTo(final ObjectType accessor) throws 
ClassNotFoundException {
         final JavaClass jc = Repository.lookupClass(className);
@@ -82,6 +84,8 @@ public class ObjectType extends ReferenceType {
     }
 
     /**
+     * Gets the hash code.
+     *
      * @return a hash code value for the object.
      */
     @Override
@@ -92,6 +96,7 @@ public class ObjectType extends ReferenceType {
     /**
      * If "this" doesn't reference a class, it references an interface or a 
non-existant entity.
      *
+     * @return true if it references a class, false otherwise.
      * @deprecated (since 6.0) this method returns an inaccurate result if the 
class or interface referenced cannot be
      *             found: use referencesClassExact() instead
      */
@@ -119,6 +124,7 @@ public class ObjectType extends ReferenceType {
     /**
      * If "this" doesn't reference an interface, it references a class or a 
non-existant entity.
      *
+     * @return true if it references an interface, false otherwise.
      * @deprecated (since 6.0) this method returns an inaccurate result if the 
class or interface referenced cannot be
      *             found: use referencesInterfaceExact() instead
      */
@@ -146,7 +152,9 @@ public class ObjectType extends ReferenceType {
     /**
      * Return true if this type is a subclass of given ObjectType.
      *
-     * @throws ClassNotFoundException if any of this class's superclasses 
can't be found
+     * @param superclass the superclass to check against.
+     * @return true if this is a subclass.
+     * @throws ClassNotFoundException if any of this class's superclasses 
can't be found.
      */
     public boolean subclassOf(final ObjectType superclass) throws 
ClassNotFoundException {
         if (referencesInterfaceExact() || 
superclass.referencesInterfaceExact()) {

Reply via email to