Commit fd6240d3 authored by Eric Bruneton's avatar Eric Bruneton

Rename TypeReference.put into putTarget.

parent 5308e048
......@@ -592,7 +592,7 @@ public class ClassWriter extends ClassVisitor {
int typeRef, TypePath typePath, final String desc, final boolean visible) {
ByteVector bv = new ByteVector();
// write target_type, target_info, and target_path
TypeReference.put(typeRef, bv);
TypeReference.putTarget(typeRef, bv);
TypePath.put(typePath, bv);
// write type, and reserve space for values count
bv.putShort(newUTF8(desc)).putShort(0);
......
......@@ -132,7 +132,7 @@ final class FieldWriter extends FieldVisitor {
final int typeRef, final TypePath typePath, final String desc, final boolean visible) {
ByteVector bv = new ByteVector();
// write target_type, target_info, and target_path
TypeReference.put(typeRef, bv);
TypeReference.putTarget(typeRef, bv);
TypePath.put(typePath, bv);
// write type, and reserve space for values count
bv.putShort(cw.newUTF8(desc)).putShort(0);
......
......@@ -422,7 +422,7 @@ class MethodWriter extends MethodVisitor {
final int typeRef, final TypePath typePath, final String desc, final boolean visible) {
ByteVector bv = new ByteVector();
// write target_type, target_info, and target_path
TypeReference.put(typeRef, bv);
TypeReference.putTarget(typeRef, bv);
TypePath.put(typePath, bv);
// write type, and reserve space for values count
bv.putShort(cw.newUTF8(desc)).putShort(0);
......@@ -1186,7 +1186,7 @@ class MethodWriter extends MethodVisitor {
int typeRef, TypePath typePath, String desc, boolean visible) {
ByteVector bv = new ByteVector();
// write target_type, target_info, and target_path
TypeReference.put((typeRef & 0xFF0000FF) | (lastCodeOffset << 8), bv);
TypeReference.putTarget((typeRef & 0xFF0000FF) | (lastCodeOffset << 8), bv);
TypePath.put(typePath, bv);
// write type, and reserve space for values count
bv.putShort(cw.newUTF8(desc)).putShort(0);
......@@ -1224,7 +1224,7 @@ class MethodWriter extends MethodVisitor {
int typeRef, TypePath typePath, String desc, boolean visible) {
ByteVector bv = new ByteVector();
// write target_type, target_info, and target_path
TypeReference.put(typeRef, bv);
TypeReference.putTarget(typeRef, bv);
TypePath.put(typePath, bv);
// write type, and reserve space for values count
bv.putShort(cw.newUTF8(desc)).putShort(0);
......
......@@ -396,7 +396,7 @@ public class TypeReference {
* #targetTypeAndInfo}. LOCAL_VARIABLE and RESOURCE_VARIABLE target types are not supported.
* @param output where the type reference must be put.
*/
static void put(final int targetTypeAndInfo, final ByteVector output) {
static void putTarget(final int targetTypeAndInfo, final ByteVector output) {
switch (targetTypeAndInfo >>> 24) {
case CLASS_TYPE_PARAMETER:
case METHOD_TYPE_PARAMETER:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment