mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
simplified isAssignable check
This commit is contained in:
+18
@@ -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> {
|
||||
}
|
||||
Reference in New Issue
Block a user