mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
moreSpecific: use site info to check assignability, prefer concrete to abstract methods (IDEA-57569)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package pck;
|
||||
abstract class C<T> {
|
||||
abstract Object foo(T x);
|
||||
String foo(String x) { return null; }
|
||||
}
|
||||
|
||||
class D extends C<String>{
|
||||
{
|
||||
foo("");
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
public class CssPropertyValueImpl extends CssTableValueBase<CssPropertyValue, Object> implements CssPropertyValue {
|
||||
public CssPropertyValueImpl(final Type type) {
|
||||
super(type);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class CssTableValueBase<V extends CssTableValue, T> implements CssTableValue<V, T> {
|
||||
|
||||
protected CssTableValueBase(final Type type) {
|
||||
}
|
||||
|
||||
protected CssTableValueBase(final T value) {
|
||||
}
|
||||
}
|
||||
|
||||
enum Type {}
|
||||
|
||||
interface CssTableValue<A, B> {
|
||||
}
|
||||
|
||||
interface CssPropertyValue extends CssTableValue<CssPropertyValue, Object> {
|
||||
}
|
||||
Reference in New Issue
Block a user