simplified isAssignable check

This commit is contained in:
Anna Kozlova
2013-08-16 20:54:06 +04:00
parent 2883d0ad37
commit bb1cea719a
3 changed files with 19 additions and 3 deletions
@@ -0,0 +1,18 @@
import java.io.*;
import java.util.*;
interface Foo {
String getText(Map attributes) throws IOException;
String getText(Properties attributes) throws IOException;
}
class Bar {
void foo(Foo foo, Properties prop) throws IOException {
foo.getText(prop);
}
}
public abstract class Hashtable<K,V> implements Map<K,V>, Cloneable {
}
public abstract class Properties extends Hashtable<Object,Object> {
}