Skip to content

Commit 8dc4e31

Browse files
committed
Rewording from Kevin
1 parent 5fd0996 commit 8dc4e31

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/java.base/share/classes/java/lang/Class.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -734,16 +734,16 @@ public T newInstance()
734734
private transient volatile Constructor<T> cachedConstructor;
735735

736736
/**
737-
* Determines if a non-null reference of the type represented by this {@code
738-
* Class} may refer to the object specified by the argument. This method is
739-
* the dynamic equivalent of the type comparison operator of the {@code
740-
* instanceof} Java keyword (JLS {@jls 15.20.2}). This method returns
741-
* {@code true} if and only if this {@code Class} represents a reference
742-
* type, the specified {@code Object} argument refers to an object instead
743-
* of {@code null}, and that referenced object can pass the run time
744-
* validity check of a narrowing reference conversion (JLS {@jls 5.1.6.3})
745-
* to the reference type represented by this {@code Class} object without
746-
* throwing a {@code ClassCastException}.
737+
* Determines if the reference type represented by this {@code Class} object
738+
* is the same as or a proper supertype of the class of the object specified
739+
* by the argument. This method is the dynamic equivalent of the type
740+
* comparison operator of the {@code instanceof} Java keyword (JLS {@jls
741+
* 15.20.2}). This method returns {@code true} if and only if this {@code
742+
* Class} represents a reference type, the specified {@code Object} argument
743+
* refers to an object instead of {@code null}, and that referenced object
744+
* can pass the run time validity check of a narrowing reference conversion
745+
* (JLS {@jls 5.1.6.3}) to the reference type represented by this {@code
746+
* Class} object without throwing a {@code ClassCastException}.
747747
*
748748
* <p>This method behaves as if:
749749
* {@snippet lang=java :

0 commit comments

Comments
 (0)