-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3288 from Rawi01/val-default-method
Use real type for enclosing class
- Loading branch information
Showing
4 changed files
with
51 additions
and
2 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
12 changes: 12 additions & 0 deletions
12
test/transform/resource/after-delombok/ValSuperDefaultMethod.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 @@ | ||
// version :9 | ||
class ValSuperDefaultMethod implements Default { | ||
public void test() { | ||
final java.lang.String a = ""; | ||
Default.super.method(); | ||
} | ||
} | ||
|
||
interface Default { | ||
default void method() { | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/transform/resource/after-ecj/ValSuperDefaultMethod.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 @@ | ||
import lombok.val; | ||
class ValSuperDefaultMethod implements Default { | ||
ValSuperDefaultMethod() { | ||
super(); | ||
} | ||
public void test() { | ||
final @val java.lang.String a = ""; | ||
Default.super.method(); | ||
} | ||
} | ||
interface Default { | ||
default void method() { | ||
} | ||
} |
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,16 @@ | ||
// version :9 | ||
import lombok.val; | ||
|
||
class ValSuperDefaultMethod implements Default { | ||
public void test() { | ||
val a = ""; | ||
Default.super.method(); | ||
} | ||
|
||
} | ||
|
||
interface Default { | ||
default void method() { | ||
|
||
} | ||
} |