-
-
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.
[issue #2092] Add an uppercase option to FieldNameConstants
- Loading branch information
1 parent
ac0eeac
commit bf04992
Showing
8 changed files
with
80 additions
and
11 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
12 changes: 12 additions & 0 deletions
12
test/transform/resource/after-delombok/FieldNameConstantsUppercased.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 FieldNameConstantsUppercased { | ||
String iAmADvdPlayer; | ||
int $skipMe; | ||
static double skipMeToo; | ||
int andMe; | ||
String butPrintMePlease; | ||
@java.lang.SuppressWarnings("all") | ||
static final class Fields { | ||
public static final java.lang.String I_AM_A_DVD_PLAYER = "iAmADvdPlayer"; | ||
public static final java.lang.String BUT_PRINT_ME_PLEASE = "butPrintMePlease"; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
test/transform/resource/after-ecj/FieldNameConstantsUppercased.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,23 @@ | ||
import lombok.experimental.FieldNameConstants; | ||
import lombok.AccessLevel; | ||
public @FieldNameConstants(level = AccessLevel.PACKAGE) class FieldNameConstantsUppercased { | ||
static final @java.lang.SuppressWarnings("all") class Fields { | ||
public static final java.lang.String I_AM_A_DVD_PLAYER = "iAmADvdPlayer"; | ||
public static final java.lang.String BUT_PRINT_ME_PLEASE = "butPrintMePlease"; | ||
<clinit>() { | ||
} | ||
private @java.lang.SuppressWarnings("all") Fields() { | ||
super(); | ||
} | ||
} | ||
String iAmADvdPlayer; | ||
int $skipMe; | ||
static double skipMeToo; | ||
@FieldNameConstants.Exclude int andMe; | ||
String butPrintMePlease; | ||
<clinit>() { | ||
} | ||
public FieldNameConstantsUppercased() { | ||
super(); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
test/transform/resource/before/FieldNameConstantsUppercased.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 @@ | ||
//CONF: lombok.fieldNameConstants.uppercase = true | ||
import lombok.experimental.FieldNameConstants; | ||
import lombok.AccessLevel; | ||
|
||
@FieldNameConstants(level = AccessLevel.PACKAGE) | ||
public class FieldNameConstantsUppercased { | ||
String iAmADvdPlayer; | ||
int $skipMe; | ||
static double skipMeToo; | ||
@FieldNameConstants.Exclude int andMe; | ||
String butPrintMePlease; | ||
} |
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