commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754460 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
Date Sat, 14 Mar 2009 15:18:23 GMT
Author: sebb
Date: Sat Mar 14 15:18:22 2009
New Revision: 754460

URL: http://svn.apache.org/viewvc?rev=754460&view=rev
Log:
Oops - accidentally removed some lines in r753655. Replaced.

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java?rev=754460&r1=754459&r2=754460&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
(original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
Sat Mar 14 15:18:22 2009
@@ -360,10 +360,16 @@
 
     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 @@
     }
 
     private static class SelfInstanceVarReflectionTestFixture {
+        @SuppressWarnings("unused")
+        private SelfInstanceVarReflectionTestFixture typeIsSelf;
+
         public SelfInstanceVarReflectionTestFixture() {
+            this.typeIsSelf = this;
         }
 
         @Override
@@ -492,9 +502,12 @@
       }
     
     private static class SelfInstanceTwoVarsReflectionTestFixture {
+        @SuppressWarnings("unused")
+        private SelfInstanceTwoVarsReflectionTestFixture typeIsSelf;
         private String otherType = "The Other Type";
 
         public SelfInstanceTwoVarsReflectionTestFixture() {
+            this.typeIsSelf = this;
         }
         
         public String getOtherType(){



Mime
View raw message