Author: nusco
Date: 2007-10-18 15:49:17 -0400 (Thu, 18 Oct 2007)
New Revision: 14100
Modified:
commons-annotations/trunk/
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/XAnnotatedElementTestCase.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/Dad.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Dummy.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/DummySubclass.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass1.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass2.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass1.java
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass2.java
Log:
Removed unused code
Property changes on: commons-annotations/trunk
___________________________________________________________________
Name: svn:ignore
+ .classpath
.project
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/XAnnotatedElementTestCase.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/XAnnotatedElementTestCase.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/XAnnotatedElementTestCase.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,7 +1,5 @@
package org.hibernate.annotations.common.test.reflection.java;
-import javax.persistence.Transient;
-
import junit.framework.TestCase;
import org.hibernate.annotations.common.reflection.XAnnotatedElement;
import org.hibernate.annotations.common.test.reflection.java.generics.TestAnnotation;
@@ -13,7 +11,7 @@
public void testKnowsWhetherAnAnnotationIsPresent() {
assertTrue( getConcreteInstance().isAnnotationPresent( TestAnnotation.class ) );
- assertFalse( getConcreteInstance().isAnnotationPresent( Transient.class ) );
+ assertFalse( getConcreteInstance().isAnnotationPresent( Override.class ) );
}
public void testReturnsSpecificAnnotations() {
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/Dad.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/Dad.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/Dad.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -3,14 +3,11 @@
import java.util.List;
import java.util.Map;
-import javax.persistence.Entity;
-
/**
* @author Davide Marchignoli
* @author Paolo Perrotta
*/
@TestAnnotation(name = "xyz")
-@Entity
public class Dad<T> extends Grandpa<List<T>, Integer> {
static Integer staticField;
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Dummy.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Dummy.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Dummy.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,14 +1,6 @@
package org.hibernate.annotations.common.test.reflection.java.generics.deep;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.Id;
-
-/**
- *
- */
-@MappedSuperclass
public class Dummy {
- @Id
protected Long id;
private String name;
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/DummySubclass.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/DummySubclass.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/DummySubclass.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,12 +1,6 @@
package org.hibernate.annotations.common.test.reflection.java.generics.deep;
-import javax.persistence.Entity;
-
import org.hibernate.annotations.common.test.reflection.java.generics.deep.Dummy;
-/**
- *
- */
-@Entity
public class DummySubclass extends Dummy {
}
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass1.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass1.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass1.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,20 +1,10 @@
package org.hibernate.annotations.common.test.reflection.java.generics.deep;
-import javax.persistence.MappedSuperclass;
-import javax.persistence.OneToOne;
-import javax.persistence.Id;
-
import org.hibernate.annotations.common.test.reflection.java.generics.deep.Dummy;
-/**
- *
- */
-@MappedSuperclass
public class GenericSuperclass1<T extends Dummy> {
- @Id
protected Long id;
- @OneToOne
protected T dummy;
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass2.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass2.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/GenericSuperclass2.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,13 +1,7 @@
package org.hibernate.annotations.common.test.reflection.java.generics.deep;
-import javax.persistence.MappedSuperclass;
-
import org.hibernate.annotations.common.test.reflection.java.generics.deep.Dummy;
import
org.hibernate.annotations.common.test.reflection.java.generics.deep.GenericSuperclass1;
-/**
- *
- */
-@MappedSuperclass
public class GenericSuperclass2<T extends Dummy> extends
GenericSuperclass1<T> {
}
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass1.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass1.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass1.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,13 +1,7 @@
package org.hibernate.annotations.common.test.reflection.java.generics.deep;
-import javax.persistence.Entity;
-
import
org.hibernate.annotations.common.test.reflection.java.generics.deep.DummySubclass;
import
org.hibernate.annotations.common.test.reflection.java.generics.deep.GenericSuperclass1;
-/**
- *
- */
-@Entity
public class Subclass1 extends GenericSuperclass1<DummySubclass> {
}
Modified:
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass2.java
===================================================================
---
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass2.java 2007-10-18
06:20:04 UTC (rev 14099)
+++
commons-annotations/trunk/src/test/org/hibernate/annotations/common/test/reflection/java/generics/deep/Subclass2.java 2007-10-18
19:49:17 UTC (rev 14100)
@@ -1,13 +1,7 @@
package org.hibernate.annotations.common.test.reflection.java.generics.deep;
-import javax.persistence.Entity;
-
import
org.hibernate.annotations.common.test.reflection.java.generics.deep.DummySubclass;
import
org.hibernate.annotations.common.test.reflection.java.generics.deep.GenericSuperclass2;
-/**
- *
- */
-@Entity
public class Subclass2 extends GenericSuperclass2<DummySubclass> {
}
Show replies by date