Permalink
Browse files

make interface test cases, more obvious

  • Loading branch information...
1 parent 49b5b6c commit 19e4acf49a43c25c9fd678aa3d6728530d66a830 @mebigfatguy mebigfatguy committed Jan 31, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 samples/test/interfaces/TestInterfaces.java
@@ -2,11 +2,11 @@
public class TestInterfaces {
- public void callThruInterface(W w) {
- w.a();
- w.b();
- w.c();
- w.plain();
+ public void callThruInterface(C c) {
+ c.a();
+ c.b();
+ c.c();
+ ((W) c).plain();
}
static class W implements C {

0 comments on commit 19e4acf

Please sign in to comment.