-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'projectlombok:master' into feature/builder-setterPrefix…
…-configuration
- Loading branch information
Showing
12 changed files
with
148 additions
and
19 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
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 @@ | ||
/* | ||
* These are stub versions of various bits of javac-internal API (for various different versions of javac). Lombok is compiled against these. | ||
*/ | ||
package com.sun.tools.javac.comp; | ||
|
||
import com.sun.tools.javac.tree.JCTree; | ||
import com.sun.tools.javac.util.Context; | ||
|
||
// JDK9+ | ||
public class ArgumentAttr extends JCTree.Visitor { | ||
public static ArgumentAttr instance(Context context) { return null; } | ||
} |
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
11 changes: 11 additions & 0 deletions
11
test/transform/resource/after-delombok/ValSwitchExpression.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,11 @@ | ||
// version 14: | ||
public class ValSwitchExpression { | ||
public void method(int arg) { | ||
final int x = switch (arg) { | ||
default -> { | ||
final java.lang.String s = "string"; | ||
yield arg; | ||
} | ||
}; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
test/transform/resource/after-ecj/ValSwitchExpression.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,16 @@ | ||
// version 14: | ||
import lombok.val; | ||
public class ValSwitchExpression { | ||
public ValSwitchExpression() { | ||
super(); | ||
} | ||
public void method(int arg) { | ||
final @val int x = switch (arg) { | ||
default -> | ||
{ | ||
final @val java.lang.String s = "string"; | ||
yield arg; | ||
} | ||
}; | ||
} | ||
} |
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,13 @@ | ||
// version 14: | ||
import lombok.val; | ||
|
||
public class ValSwitchExpression { | ||
public void method(int arg) { | ||
val x = switch (arg) { | ||
default -> { | ||
val s = "string"; | ||
yield arg; | ||
} | ||
}; | ||
} | ||
} |
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