-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix missing position in rare cases (#3056)
- Loading branch information
Showing
7 changed files
with
124 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/test/resources/noclasspath/lambdas/InheritedClassesWithLambda1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.pkg; | ||
|
||
public class InheritedClassesWithLambda1 { | ||
|
||
private static class ExtendedFailClass extends Failing { | ||
public void test(View itemView) { | ||
itemView.setOnClickListener(v -> listener.foo()); | ||
} | ||
} | ||
|
||
public static class Failing { | ||
ClickListener listener; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/resources/noclasspath/lambdas/InheritedClassesWithLambda2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
public class InheritedClassesWithLambda2 { | ||
|
||
private static class ExtendedFailClass extends OneMoreClass.Failing { | ||
public void test(View itemView) { | ||
itemView.setOnClickListener(v -> listener.foo()); | ||
} | ||
} | ||
|
||
public static class OneMoreClass | ||
{ | ||
public static class Failing { | ||
ClickListener listener; | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/test/resources/noclasspath/lambdas/InheritedInterfacesWithLambda.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
public class InheritedInterfacesWithLambda { | ||
|
||
public interface Failing { | ||
ClickListener listener; | ||
} | ||
|
||
private static class ExtendedFailClass implements Failing { | ||
public void test(View itemView) { | ||
itemView.setOnClickListener(v -> listener.foo()); | ||
} | ||
} | ||
} |