-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract type correctly for default and protected classes (fixes #99)
- Loading branch information
1 parent
6ea89c0
commit ddef650
Showing
8 changed files
with
61 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package javarepl.testclasses; | ||
|
||
public interface BaseTestInterface { | ||
} |
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,28 @@ | ||
package javarepl.testclasses; | ||
|
||
public class Constructors { | ||
public static Object defaultAccessTestClass() { | ||
return new DefaultAccessTestClass(); | ||
} | ||
|
||
public static Object protectedAccessTestClass() { | ||
return new ProtectedAccessTestClass(); | ||
} | ||
|
||
public static Object privateAccessTestClass() { | ||
return new PrivateAccessTestClass(); | ||
} | ||
|
||
public static Object anonymousInnerBaseTestInterface() { | ||
return new BaseTestInterface() { | ||
}; | ||
} | ||
|
||
public static Object anonymousInnerGenericTestClass() { | ||
return new GenericTestClass<BaseTestInterface>() { | ||
}; | ||
} | ||
|
||
|
||
private static class PrivateAccessTestClass extends PublicBaseTestClass implements BaseTestInterface{} | ||
} |
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,4 @@ | ||
package javarepl.testclasses; | ||
|
||
class DefaultAccessTestClass extends PublicBaseTestClass implements BaseTestInterface { | ||
} |
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,5 @@ | ||
package javarepl.testclasses; | ||
|
||
|
||
public class GenericTestClass<T extends BaseTestInterface> extends PublicBaseTestClass { | ||
} |
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,4 @@ | ||
package javarepl.testclasses; | ||
|
||
public class ProtectedAccessTestClass extends PublicBaseTestClass implements BaseTestInterface{ | ||
} |
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,4 @@ | ||
package javarepl.testclasses; | ||
|
||
public class PublicBaseTestClass{ | ||
} |