Oops - accidentally removed some lines in r753655. Replaced.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@754460 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-03-14 15:18:22 +00:00
parent 7585da946c
commit 3b03f6a0ad
1 changed files with 13 additions and 0 deletions

View File

@ -359,11 +359,17 @@ public class ToStringBuilderTest extends TestCase {
}
static class ReflectionTestFixtureA {
@SuppressWarnings("unused")
private char a='a';
@SuppressWarnings("unused")
private transient char transientA='t';
}
static class ReflectionTestFixtureB extends ReflectionTestFixtureA {
@SuppressWarnings("unused")
private char b='b';
@SuppressWarnings("unused")
private transient char transientB='t';
}
public void testInnerClassReflection() {
@ -482,7 +488,11 @@ public class ToStringBuilderTest extends TestCase {
}
private static class SelfInstanceVarReflectionTestFixture {
@SuppressWarnings("unused")
private SelfInstanceVarReflectionTestFixture typeIsSelf;
public SelfInstanceVarReflectionTestFixture() {
this.typeIsSelf = this;
}
@Override
@ -492,9 +502,12 @@ public class ToStringBuilderTest extends TestCase {
}
private static class SelfInstanceTwoVarsReflectionTestFixture {
@SuppressWarnings("unused")
private SelfInstanceTwoVarsReflectionTestFixture typeIsSelf;
private String otherType = "The Other Type";
public SelfInstanceTwoVarsReflectionTestFixture() {
this.typeIsSelf = this;
}
public String getOtherType(){