IDEA-124385

This commit is contained in:
Anna Kozlova
2014-04-25 18:38:38 +02:00
parent 1d32716b96
commit f3e1d968b8
3 changed files with 36 additions and 1 deletions
@@ -0,0 +1,16 @@
// "Replace with lambda" "true"
class X1 {
public void testLambdaConversionBug() {
Object data = new Object();
new Thread(() -> {
System.out.println(data.getClass());
{
Integer data1 =1;
System.out.println(data1.longValue());
}
});
}
}
@@ -0,0 +1,19 @@
// "Replace with lambda" "true"
class X1 {
public void testLambdaConversionBug() {
Object data = new Object();
new Thread(new Runn<caret>able() {
@Override
public void run() {
System.out.println(data.getClass());
{
Integer data=1;
System.out.println(data.longValue());
}
}
});
}
}