git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@570 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
* @return the index of the added entry. | * @return the index of the added entry. | ||||
*/ | */ | ||||
public int addStringInfo(String str) { | public int addStringInfo(String str) { | ||||
int utf8 = addUtf8Info(str); | |||||
output.write(StringInfo.tag); | output.write(StringInfo.tag); | ||||
output.writeShort(addUtf8Info(str)); | |||||
output.writeShort(utf8); | |||||
return num++; | return num++; | ||||
} | } | ||||