Update java debugger plugin
This commit is contained in:
parent
4c96655526
commit
0452329203
2 changed files with 21 additions and 3 deletions
|
|
@ -13,6 +13,22 @@ public class TestApplication {
|
|||
return list;
|
||||
}
|
||||
|
||||
private static class Bass extends Base {
|
||||
String bass = "Pump";
|
||||
@Override
|
||||
public String DoSomething() {
|
||||
if ( Math.random() % 3 == 0 ) {
|
||||
return bass;
|
||||
}
|
||||
return super.DoSomething();
|
||||
}
|
||||
}
|
||||
|
||||
private static <T extends Base> void DoGeneric( T b ) {
|
||||
TestGeneric<T> foo = new TestGeneric<>( b );
|
||||
foo.DoSomethingUseful();
|
||||
}
|
||||
|
||||
public static void main( String[] args ) {
|
||||
int numEntries = 0;
|
||||
for ( String s : args ) {
|
||||
|
|
@ -24,6 +40,8 @@ public class TestApplication {
|
|||
++numEntries;
|
||||
}
|
||||
System.out.println( "Number of entries: " + numEntries );
|
||||
|
||||
DoGeneric( new Bass() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue