anonym -> lambda: disable if target SAM type is raw and methods are called on params with Object erasure (IDEA-125613)

This commit is contained in:
Anna Kozlova
2014-05-29 19:53:12 +04:00
parent 032faad977
commit 41b974e36f
2 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
// "Replace with lambda" "false"
class DbTableBinder {
public Binder build() {
return new Bin<caret>der<DbTable>() {
public void bind(A q, DbTable dbTable) {
q.bind("name", dbTable.name);
}
};
}
}
class DbTable {
String name;
}
interface Binder <ArgType> {
void bind(A<?> sqlStatement, ArgType argType);
}
interface A<P> {
void bind(String s, String p);
}