Caleb Brinkman
88bf742e3e
Implement prefixed setters
...
Related to #1805 , this change adds an optional `setterPrefix` parameter
to the `Builder` annotation; if this parameter is unspecified or blank
the behavior of the `Builder` annotation is unchanged, but if it is
present the value specified will be prefixed to the generated methods.
For example, using:
```
@Builder(setterPrefix = "include")
class Foo {
private int someValue;
}
```
will result in a generated `Builder` class containing an `includeSomeValue(int someValue)`
method instead of the default `someValue(int someValue)`.
2019-07-10 17:28:54 -05:00
Caleb Brinkman
96151ade65
Add tests for prefixed builder
2019-07-10 15:05:06 -05:00
Caleb Brinkman
5f198d71c6
Add setterPrefix to Builder annotation
2019-07-10 15:03:09 -05:00
Caleb Brinkman
64fc7b373b
Add iml files to gitignore
2019-07-10 15:02:44 -05:00
Till Brychcy
206e306615
Add Till Brychcy to AUTHORS
2019-07-09 09:28:08 +02:00
Reinier Zwitserloot
b7e67345b9
Merge branch 'customlog'
2019-07-09 00:46:03 +02:00
Reinier Zwitserloot
5ad6796b18
Merge pull request #2136 from ataccama/customlog
...
Fixes for CustomLog, AUTHORS entry, extended changlog
2019-07-09 00:43:28 +02:00
Reinier Zwitserloot
0984d14826
[changelog] adding to the changelog note about improved eclipse non-null support (see previous commit)
2019-07-09 00:38:27 +02:00
Reinier Zwitserloot
93540b267d
Merge pull request #2155 from brychcy/master
...
Avoid Eclipse warnings about lombok.NonNull when NonNullByDefault is used
2019-07-09 00:30:10 +02:00
Reinier Zwitserloot
1c65efa7d9
[changelog] adding to the changelog note about improved val/var support (see previous commit)
2019-07-09 00:26:08 +02:00
Reinier Zwitserloot
8b805fadf7
Merge pull request #2138 from bulgakovalexander/feature/typeInferenceImprovements
...
val. override error handling policy for problemReporter to guarantee AbortCompilation is throwing.
2019-07-09 00:20:43 +02:00
Reinier Zwitserloot
c1039553b0
[builder] added a feature: you can now configure builder class name via the config system
2019-07-09 00:11:00 +02:00
Reinier Zwitserloot
bcf2d55abf
[docker] Update test gradle file with the new style way to do things, which involves marking lombok explicitly as an annotation processor (via github user tagae: Sebastián González)
2019-07-09 00:10:59 +02:00
Roel Spilker
2ccd3f5f5d
Fixes #2165 : Generated equals fails on annotated array type
2019-07-08 23:17:38 +02:00
Reinier Zwitserloot
11065b564f
[build] adding a security policy
2019-07-02 03:30:44 +02:00
Reinier Zwitserloot
bb0736fe00
[website] tidelift update
2019-07-02 01:41:15 +02:00
Reinier Zwitserloot
927a6774f5
[ fixes #2140 ] when pretty-printing (delombok) varargs, only turn array brackets into varargs for the actual top-level type, not for arrays inside the type, such as an array as generics component.
2019-06-18 15:37:58 +02:00
Reinier Zwitserloot
e33a209022
[issue #2140 ] Reproducing the bug: delombok issue: When you delombok a signature like: List<byte[]>... arg, the array brackets are replaced by dots in the delomboked output, which isn’t valid java.
2019-06-18 00:35:26 +02:00
Till Brychcy
8a6603d191
Avoid Eclipse warnings about null checks generated for lombok.NonNull when NonNullByDefault is used
2019-06-15 17:03:09 +02:00
Adam Juraszek
2a98c4d1fd
Fix custom logger when topic presence != allowance
2019-05-29 19:18:10 +02:00
Bulgakov Alexander
a899ffcbca
[val]. more test cases
2019-05-25 00:15:09 +03:00
Bulgakov Alexander
67441a074f
[val]. Sets false to ReferenceContexts' ignoreFurtherInvestigationField fields for generating bytecode correctly. Resolves the False part type of a conditional expression.
2019-05-24 19:04:16 +03:00
Bulgakov Alexander
089f2ec5f4
#1976 . override error handling policy for problemReporter to guarantee AbortCompilation is throwing.
2019-05-24 10:05:38 +03:00
Roel Spilker
d9b8b14575
Add funding file
2019-05-23 13:17:52 +02:00
Adam Juraszek
06004b933b
Fixes for CustomLog, AUTHORS entry, extended changlog
2019-05-22 18:36:42 +02:00
Reinier Zwitserloot
6ea37c90a6
[website] changed the tidelift link to be more prominent + on docs pages
2019-05-22 01:04:22 +02:00
Reinier Zwitserloot
4af6e42b3b
[website] fixed history/ajax-load system to deal with anchor links
2019-05-22 00:11:15 +02:00
Reinier Zwitserloot
8f69331ce8
Merge branch 'bulgakovalexander-feature/typeInferenceImprovements'
2019-05-21 23:22:18 +02:00
Reinier Zwitserloot
2704f073aa
Code review + mention in changelog for the improvement to val handling vs. lambdas and conditional (ternary) expressions.
2019-05-21 23:20:00 +02:00
Reinier Zwitserloot
7fe4896867
Code review for @CustomLog, and added documentation and a changelog entry.
2019-05-21 22:57:45 +02:00
Roel Spilker
56aabf5465
Update changelog. Fixes #2100
2019-05-21 22:18:41 +02:00
Bulgakov Alexander
cd49188aff
#1976 . one more test case
2019-05-20 13:44:29 +03:00
Bulgakov Alexander
71aea086e4
Merge branch 'master' into feature/typeInferenceImprovements
2019-05-20 13:10:14 +03:00
Adam Juraszek
bb66465751
Custom log declaration
2019-05-14 18:48:01 +02:00
Adam Juraszek
399c516bd3
Configuration types without explicit registration
2019-05-14 18:47:07 +02:00
Adam Juraszek
4ea4b8d27b
IdentifierName instead of String
2019-05-14 18:47:07 +02:00
Reinier Zwitserloot
c479920db1
post-release version bump (to be clear, the static constructor feature 2 commits before this is NOT in the 1.18.8 release; this post-release bump is slightly late).
2019-05-09 14:20:03 +02:00
Reinier Zwitserloot
1a5363cc5b
[trivial] updating changelog retroactively to list an improbable breaking change about the generated parameter is null exception
2019-05-09 14:13:39 +02:00
Bulgakov Alexander
1fec035aa5
#1976 . [@val] improved raw generic type inference by eclipse compiler.
2019-05-08 23:34:37 +03:00
daliclass
d3ae4d9948
[Feature] staticConstructor should use already defined private constructor if available
2019-05-07 15:18:01 +02:00
Bulgakov Alexander
8f8cbae631
Merge remote-tracking branch 'lombok/master' into feature/typeInferenceImprovements
2019-05-07 10:49:50 +03:00
Bulgakov Alexander
06fb1034ea
#1976 . naive fix of the eclipse compiler's error 'The target type of this expression must be a functional interface' in code like 'lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;'
2019-05-07 10:49:25 +03:00
Reinier Zwitserloot
3496a3e963
pre-release version bump
2019-05-07 00:11:30 +02:00
Reinier Zwitserloot
42f36e66fe
[ fixes #1981 ][ fixes #1961 ] Hardcoded some knowledge about how to copy jackson’s @JsonProperty.
2019-05-07 00:08:49 +02:00
Reinier Zwitserloot
e69a991fcb
[ fixes #2120 ] ecj was not generating explicit nullchecks for builder-setters.
2019-05-06 22:48:11 +02:00
Reinier Zwitserloot
d41e804fe7
[trivial] replacing all calls to Class.newInstance() with Class.getConstructor().newInstance to avoid warnings which are default in many JDK11+ environments, and it shouldn’t change anything (we handle the change from sneaky throwing to InvocationTargetException appropriately).
2019-05-06 21:26:29 +02:00
Bulgakov Alexander
8276dee255
Merge branch 'feature/typeInferenceImprovements' of https://github.com/bulgakovalexander/lombok into feature/typeInferenceImprovements
2019-05-04 23:41:14 +03:00
Bulgakov Alexander
2611e6bf98
Revert "[val] in ecj we were constructing a different type than for javac, when using ‘val’ on an intersection type."
...
This reverts commit 1730a991
2019-05-03 22:07:43 +03:00
Bulgakov Alexander
715c731fc2
Merge remote-tracking branch 'lombok/master' into feature/typeInferenceImprovements
2019-05-03 21:50:15 +03:00
Reinier Zwitserloot
2335f25166
[ fixes #2104 ] superbuilder + non-list-singulars wouldn’t work due to hardcoded call to emptyList.
2019-05-01 05:45:10 +02:00