Commit Graph

440 Commits

Author SHA1 Message Date
Jan Rieke 0ab433b41a SuperBuilder javac fix for nested generic types; fixes #2359 2020-02-11 12:47:38 +01:00
Jan Rieke 6e2d23fdd7 setter prefixes for SuperBuilder
setter prefixes for SuperBuilder [javac]
better javadoc for the SuperBuilder setterPrefix value
setter prefixes for SuperBuilder [ecj]
add test for SuperBuilder setter method customization
fix setter method customization with setterPrefix
2020-02-08 16:09:56 +01:00
Reinier Zwitserloot 8943b49dfe [fixes #880] get rid of an unchecked cast warning for @Getter(lazy=true) 2020-02-06 23:57:30 +01:00
Reinier Zwitserloot 2e06cb3ff1 [#2355] fixed tests for clashes in the generics for superbuilder 2020-02-06 22:06:21 +01:00
Jan Rieke 4a34ed75b4 avoid more name clashes for builder type param; fixes #2297 2020-02-06 16:05:56 +01:00
Reinier Zwitserloot 3f0fec1872 [issue #788] Add more nullity annotations where relevant
(chainable setters, static constructors, builder stuff)
2020-01-31 15:58:19 +01:00
Reinier Zwitserloot c42bfbae39 [issue #2221] simplified configuration for @Singular-generated plural form nullchecks. 2020-01-31 06:33:33 +01:00
Reinier Zwitserloot e95680a767 [issue #2221] [issue #788] Lombok now adds nullity annotations.
Which 'flavour' is defined in lombok.config; applied to toString, equals, canEqual, and plural-form of `@Singular`.
2020-01-28 16:21:39 +01:00
Reinier Zwitserloot 91a40b8312 [singular][issue #2221] the plural builder method now nullchecks its argument with configurable results. 2020-01-28 16:21:39 +01:00
Roel Spilker 56543053ac Make test java version independent, error message changed 2020-01-20 13:37:11 +01:00
Reinier Zwitserloot 94381d0e9a [fixes #2335] ObtainVia(method=) on more than one arg would crash in javac 2020-01-15 00:52:53 +01:00
Reinier Zwitserloot 9ad2bd563b [fixes #788] lombok generated equals method plus a non-null-by-default annotation no longer clash. 2020-01-08 01:06:35 +01:00
Reinier Zwitserloot 0b0656ae3c [fixes #2323] javadoc @return generation updated. 2020-01-07 23:29:04 +01:00
Reinier Zwitserloot 3f620e3b84 [fixes #2327] mostly trivial: Added this. for field access and unified code gen of build() methods for @Builder. 2020-01-07 22:31:43 +01:00
Reinier Zwitserloot 889c935ec9 [fixes #2268] make lombok generate qualified types in order to avoid name clashes. 2020-01-06 05:19:37 +01:00
Reinier Zwitserloot d57a1bc2b9 [#2273] [#2262] [#2278] test to reproduce bug 2019-12-19 03:22:54 +01:00
Reinier Zwitserloot 6bab046832 Merge branch 'feature/builder-setter-prefixes' of git://github.com/floralvikings/lombok into floralvikings-feature/builder-setter-prefixes 2019-12-11 00:28:37 +01:00
Caleb Brinkman 65302bc13a More test fixes 2019-10-28 12:09:15 -05:00
Caleb Brinkman 666defaff3 Fix up some more tests and copy-paste errors 2019-10-25 15:38:07 -05:00
Caleb Brinkman ffb299730e Fix more broken tests 2019-09-19 16:05:17 -05:00
Caleb Brinkman 24a49a9d2b Fix more copy/paste test errors 2019-09-19 15:16:06 -05:00
Caleb Brinkman 4b6588ed02 Fix test copy/paste errors 2019-09-19 13:48:19 -05:00
Caleb Brinkman bae66a3450 Fix null pointers and incorrect tests 2019-09-19 13:14:43 -05:00
Roel Spilker 80c1b2d2e7 add test for #2230 2019-09-12 21:56:21 +02:00
abrinkman94 288ee7be5c Merge branch 'feature/builder-setter-prefixes' of https://github.com/floralvikings/lombok into feature/builder-setter-prefixes 2019-09-12 12:32:39 -05:00
abrinkman94 8b30eee604 Adjusted test classes to include WithSetterPrefix. 2019-09-12 12:32:12 -05:00
Caleb Brinkman f222050d13 Fix class names in before 2019-09-12 12:02:04 -05:00
Caleb Brinkman 5b16b48bbf Fix class names in after-ecj 2019-09-12 11:58:10 -05:00
Caleb Brinkman 36287f2ff9 Duplicate builder tests with setter prefix 2019-09-12 11:28:20 -05:00
Caleb Brinkman dc56309dad Merge branch 'master' of github.com:rzwitserloot/lombok into feature/builder-setter-prefixes 2019-09-11 09:17:02 -05:00
Reinier Zwitserloot 461b5541da [tests] fixing an error in a superbuilder/checkerframework test 2019-08-27 00:15:47 +02:00
Reinier Zwitserloot c11edbf032 [With] renaming lombok.experimental.Wither to lombok.experimental.With 2019-08-27 00:15:47 +02:00
Reinier Zwitserloot 15df143df6 [checkerframework]
A bit of a shadow feature because the checker framework folks need to do some work on their side.
this update makes lombok generate a few checker framework annotations (if configured to do so)
which let the checker framework add warnings and errors for example if you misuse builders, or ignore
the return values of withers, etc.
2019-08-22 22:42:48 +02:00
Caleb Brinkman 4dc5c32d6b Merge branch 'master' of github.com:rzwitserloot/lombok into feature/builder-setter-prefixes 2019-07-16 10:39:54 -05:00
Roel Spilker aa80e1baf9 Fixes #1197, add Objects.requireNonNull and Preconditions.checkkNotNull to supported null-check styles 2019-07-16 02:04:11 +02:00
Reinier Zwitserloot e1d1415d6e [fixes #2168] Added JsonSetter as a copyable annotation 2019-07-16 01:50:16 +02:00
Reinier Zwitserloot b439e4ce77 [Fixes #2115] builder fields tracking a property that has a default set is now called $value in order to convey that you shouldnt manually mess with it. 2019-07-16 01:24:18 +02:00
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
Reinier Zwitserloot b7e67345b9 Merge branch 'customlog' 2019-07-09 00:46:03 +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
Roel Spilker 2ccd3f5f5d Fixes #2165: Generated equals fails on annotated array type 2019-07-08 23:17:38 +02:00
Bulgakov Alexander a899ffcbca [val]. more test cases 2019-05-25 00:15:09 +03: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
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
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