under the MPL, you must obtain a separate package including only
Javassist but not the other part of JBoss.
+<p>All the contributors to the original source tree must agree to
+the original license term described above.
+
<p><br>
<h2>Acknowledgments</h2>
/**
* Returns <code>true</code> if this class extends or implements
* <code>clazz</code>. It also returns <code>true</code> if
- * this class is the same as <code>clazz<code>.
+ * this class is the same as <code>clazz</code>.
*/
public boolean subtypeOf(CtClass clazz) throws NotFoundException {
return this == clazz || getName().equals(clazz.getName());
int fi = addFieldrefInfo(f, finfo, type);
int i = 0;
+ int dim = 0;
char c = type.charAt(i);
+ while (c == '[') {
+ ++dim;
+ c = type.charAt(++i);
+ }
+
+ arrayDim = dim;
boolean is2byte = (c == 'J' || c == 'D');
exprType = descToType(c);
- arrayDim = 0;
- if (c == '[') {
- i = 1;
- while ((c = type.charAt(i)) == '[')
- ++i;
-
- arrayDim = i;
- }
if (c == 'L')
className = type.substring(i + 1, type.indexOf(';', i + 1));
+ else
+ className = null;
if (noRead)
return fi;