diff --git a/src/main/java/spoon/reflect/reference/CtTypeReference.java b/src/main/java/spoon/reflect/reference/CtTypeReference.java index 1bad3090c10..cbf9a621fec 100644 --- a/src/main/java/spoon/reflect/reference/CtTypeReference.java +++ b/src/main/java/spoon/reflect/reference/CtTypeReference.java @@ -56,8 +56,8 @@ public interface CtTypeReference extends CtReference, CtActualTypeContainer, * Use {@link #getTypeDeclaration()} instead, * in order to only stay in the Spoon world and manipulate CtType instead of java.lang.Class * - * @return the Java class or null if the class is not found (not in - * classpath) + * @return the Java class or throws a {@link SpoonClassNotFoundException} if the class is not found. + * In case of a {@link CtTypeParameterReference} or a {@link CtArrayTypeReference} this method can return null value. * @throws SpoonClassNotFoundException * if the class is not in the classpath */