-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3388943
commit c248334
Showing
6 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
...library/src/test/resources/TestClassIsNonStaticInnerClassThatExtendsStaticInnerClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
import org.boundbox.BoundBox; | ||
|
||
//Thanks to Philippe Prados for this nasty example | ||
@BoundBox(boundClass = TestClassIsNonStaticInnerClassThatExtendsStaticInnerClass.StaticInner.class) | ||
@SuppressWarnings("unused") | ||
//TDD for issue #18 | ||
@BoundBox(boundClass = TestClassIsNonStaticInnerClassThatExtendsStaticInnerClass.InnerClass.class) | ||
public class TestClassIsNonStaticInnerClassThatExtendsStaticInnerClass { | ||
public class InnerClass { | ||
private int foo = 2; | ||
public class InnerClass extends StaticInner { | ||
} | ||
|
||
public static class StaticInner extends InnerClass { | ||
public StaticInner(TestClassIsNonStaticInnerClassThatExtendsStaticInnerClass obj) { | ||
obj.super(); | ||
} | ||
public static class StaticInner { | ||
public static int foo = 2; | ||
} | ||
} |
14 changes: 9 additions & 5 deletions
14
...library/src/test/resources/TestClassIsStaticInnerClassThatExtendsNonStaticInnerClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import org.boundbox.BoundBox; | ||
|
||
//TDD for issue #18 | ||
@BoundBox(boundClass = TestClassIsStaticInnerClassThatExtendsNonStaticInnerClass.InnerClass.class) | ||
//Thanks to Philippe Prados for this nasty example | ||
@BoundBox(boundClass = TestClassIsStaticInnerClassThatExtendsNonStaticInnerClass.StaticInner.class) | ||
@SuppressWarnings("unused") | ||
public class TestClassIsStaticInnerClassThatExtendsNonStaticInnerClass { | ||
public class InnerClass extends StaticInner { | ||
public class InnerClass { | ||
private int foo = 2; | ||
} | ||
|
||
public static class StaticInner { | ||
public static int foo = 2; | ||
public static class StaticInner extends InnerClass { | ||
public StaticInner(TestClassIsStaticInnerClassThatExtendsNonStaticInnerClass obj) { | ||
obj.super(); | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...resources/TestClassWithNonStaticInnerClassInheritingStaticInnerClassInSameOuterClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import org.boundbox.BoundBox; | ||
|
||
//TDD for issue #18 | ||
@SuppressWarnings("unused") | ||
@BoundBox(boundClass = TestClassWithNonStaticInnerClassInheritingStaticInnerClassInSameOuterClass.class) | ||
public class TestClassWithNonStaticInnerClassInheritingStaticInnerClassInSameOuterClass { | ||
|
||
public static class StaticInner { | ||
private static int foo = 2; | ||
} | ||
public class SubInnerClass extends StaticInner { | ||
} | ||
} | ||
|