From 67300c229adf12169f2b7636f46bc0def77003ed Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 31 Aug 2011 21:15:41 -0600 Subject: [PATCH] change local variable name to avoid shadowing another variable --- src/machine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/machine.cpp b/src/machine.cpp index 0219894f77..25054e33da 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -1452,15 +1452,15 @@ parseMethodTable(Thread* t, Stream& s, object class_, object pool) unsigned attributeCount = s.read2(); for (unsigned j = 0; j < attributeCount; ++j) { - object name = singletonObject(t, pool, s.read2() - 1); + object attributeName = singletonObject(t, pool, s.read2() - 1); unsigned length = s.read4(); if (vm::strcmp(reinterpret_cast("Code"), - &byteArrayBody(t, name, 0)) == 0) + &byteArrayBody(t, attributeName, 0)) == 0) { code = parseCode(t, s, pool); } else if (vm::strcmp(reinterpret_cast("Exceptions"), - &byteArrayBody(t, name, 0)) == 0) + &byteArrayBody(t, attributeName, 0)) == 0) { if (addendum == 0) { addendum = makeMethodAddendum(t, pool, 0, 0, 0, 0); @@ -1473,7 +1473,7 @@ parseMethodTable(Thread* t, Stream& s, object class_, object pool) set(t, addendum, MethodAddendumExceptionTable, body); } else if (vm::strcmp(reinterpret_cast ("AnnotationDefault"), - &byteArrayBody(t, name, 0)) == 0) + &byteArrayBody(t, attributeName, 0)) == 0) { if (addendum == 0) { addendum = makeMethodAddendum(t, pool, 0, 0, 0, 0); @@ -1485,7 +1485,7 @@ parseMethodTable(Thread* t, Stream& s, object class_, object pool) set(t, addendum, MethodAddendumAnnotationDefault, body); } else if (vm::strcmp(reinterpret_cast("Signature"), - &byteArrayBody(t, name, 0)) == 0) + &byteArrayBody(t, attributeName, 0)) == 0) { if (addendum == 0) { addendum = makeMethodAddendum(t, pool, 0, 0, 0, 0); @@ -1495,7 +1495,7 @@ parseMethodTable(Thread* t, Stream& s, object class_, object pool) singletonObject(t, pool, s.read2() - 1)); } else if (vm::strcmp(reinterpret_cast ("RuntimeVisibleAnnotations"), - &byteArrayBody(t, name, 0)) == 0) + &byteArrayBody(t, attributeName, 0)) == 0) { if (addendum == 0) { addendum = makeMethodAddendum(t, pool, 0, 0, 0, 0);