@@ -38,7 +38,7 @@ public abstract class Repository {
3838 /**
3939 * Adds clazz to repository if there isn't an equally named class already in there.
4040 *
41- * @return old entry in repository
41+ * @return old entry in repository.
4242 */
4343 public static JavaClass addClass (final JavaClass clazz ) {
4444 final JavaClass old = repository .findClass (clazz .getClassName ());
@@ -73,14 +73,14 @@ public static JavaClass[] getInterfaces(final String className) throws ClassNotF
7373 }
7474
7575 /**
76- * @return currently used repository instance
76+ * @return currently used repository instance.
7777 */
7878 public static org .apache .bcel .util .Repository getRepository () {
7979 return repository ;
8080 }
8181
8282 /**
83- * @return list of super classes of clazz in ascending order, that is, Object is always the last element
83+ * @return list of super classes of clazz in ascending order, that is, Object is always the last element.
8484 * @throws ClassNotFoundException if any of the superclasses can't be found
8585 */
8686 public static JavaClass [] getSuperClasses (final JavaClass clazz ) throws ClassNotFoundException {
@@ -96,31 +96,31 @@ public static JavaClass[] getSuperClasses(final String className) throws ClassNo
9696 }
9797
9898 /**
99- * @return true, if clazz is an implementation of interface inter
99+ * @return true, if clazz is an implementation of interface inter.
100100 * @throws ClassNotFoundException if any superclasses or superinterfaces of clazz can't be found
101101 */
102102 public static boolean implementationOf (final JavaClass clazz , final JavaClass inter ) throws ClassNotFoundException {
103103 return clazz .implementationOf (inter );
104104 }
105105
106106 /**
107- * @return true, if clazz is an implementation of interface inter
107+ * @return true, if clazz is an implementation of interface inter.
108108 * @throws ClassNotFoundException if inter or any superclasses or superinterfaces of clazz can't be found
109109 */
110110 public static boolean implementationOf (final JavaClass clazz , final String inter ) throws ClassNotFoundException {
111111 return implementationOf (clazz , lookupClass (inter ));
112112 }
113113
114114 /**
115- * @return true, if clazz is an implementation of interface inter
115+ * @return true, if clazz is an implementation of interface inter.
116116 * @throws ClassNotFoundException if clazz or any superclasses or superinterfaces of clazz can't be found
117117 */
118118 public static boolean implementationOf (final String clazz , final JavaClass inter ) throws ClassNotFoundException {
119119 return implementationOf (lookupClass (clazz ), inter );
120120 }
121121
122122 /**
123- * @return true, if clazz is an implementation of interface inter
123+ * @return true, if clazz is an implementation of interface inter.
124124 * @throws ClassNotFoundException if clazz, inter, or any superclasses or superinterfaces of clazz can't be found
125125 */
126126 public static boolean implementationOf (final String clazz , final String inter ) throws ClassNotFoundException {
@@ -130,31 +130,31 @@ public static boolean implementationOf(final String clazz, final String inter) t
130130 /**
131131 * Equivalent to runtime "instanceof" operator.
132132 *
133- * @return true, if clazz is an instance of superclass
133+ * @return true, if clazz is an instance of superclass.
134134 * @throws ClassNotFoundException if any superclasses or superinterfaces of clazz can't be found
135135 */
136136 public static boolean instanceOf (final JavaClass clazz , final JavaClass superclass ) throws ClassNotFoundException {
137137 return clazz .instanceOf (superclass );
138138 }
139139
140140 /**
141- * @return true, if clazz is an instance of superclass
141+ * @return true, if clazz is an instance of superclass.
142142 * @throws ClassNotFoundException if superclass can't be found
143143 */
144144 public static boolean instanceOf (final JavaClass clazz , final String superclass ) throws ClassNotFoundException {
145145 return instanceOf (clazz , lookupClass (superclass ));
146146 }
147147
148148 /**
149- * @return true, if clazz is an instance of superclass
149+ * @return true, if clazz is an instance of superclass.
150150 * @throws ClassNotFoundException if clazz can't be found
151151 */
152152 public static boolean instanceOf (final String clazz , final JavaClass superclass ) throws ClassNotFoundException {
153153 return instanceOf (lookupClass (clazz ), superclass );
154154 }
155155
156156 /**
157- * @return true, if clazz is an instance of superclass
157+ * @return true, if clazz is an instance of superclass.
158158 * @throws ClassNotFoundException if either clazz or superclass can't be found
159159 */
160160 public static boolean instanceOf (final String clazz , final String superclass ) throws ClassNotFoundException {
@@ -165,7 +165,7 @@ public static boolean instanceOf(final String clazz, final String superclass) th
165165 * Tries to find class source using the internal repository instance.
166166 *
167167 * @see Class
168- * @return JavaClass object for given runtime class
168+ * @return JavaClass object for given runtime class.
169169 * @throws ClassNotFoundException if the class could not be found or parsed correctly
170170 */
171171 public static JavaClass lookupClass (final Class <?> clazz ) throws ClassNotFoundException {
@@ -175,7 +175,7 @@ public static JavaClass lookupClass(final Class<?> clazz) throws ClassNotFoundEx
175175 /**
176176 * Lookups class somewhere found on your CLASSPATH, or whereever the repository instance looks for it.
177177 *
178- * @return class object for given fully qualified class name
178+ * @return class object for given fully qualified class name.
179179 * @throws ClassNotFoundException if the class could not be found or parsed correctly
180180 */
181181 public static JavaClass lookupClass (final String className ) throws ClassNotFoundException {
0 commit comments