aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers/HandleSetter.java
AgeCommit message (Collapse)Author
2022-03-13[fixes #3133] Add annotation bits to annotation copy targetsRawi01
2022-02-08[implements #1456] accessors can now be made final via `@Accessors`.Reinier Zwitserloot
2022-01-09[fixes #3081] make CheckerFramework's This a type annotationJan Rieke
2021-03-22Merge branch 'records'Reinier Zwitserloot
# Conflicts: # src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java # src/core/lombok/eclipse/handlers/HandleBuilder.java # src/core/lombok/eclipse/handlers/HandleData.java # src/core/lombok/eclipse/handlers/HandleNonNull.java # src/core/lombok/eclipse/handlers/HandleSuperBuilder.java # src/core/lombok/javac/handlers/HandleBuilder.java # src/core/lombok/javac/handlers/HandleNonNull.java # src/core/lombok/javac/handlers/HandleSuperBuilder.java # test/core/src/lombok/RunTestsViaEcj.java
2021-03-16[build] sped up the build considerable.Reinier Zwitserloot
We used to use the mango SPI processor, but this had two major issues: * ecj wouldn't run annotation processors, requiring a separate proc:only compile run with javac * mangoSPI couldn't do incremental compilation, so this required a full rebuild just to generate SPI files, every time. Addressed by updating to IPP40 which does support explicit annotation processors even for ecj, and adding our own SPI generating annotation processor to the build which can deal with incrementals. There are some limits; removing a `@Provides` annotation on an existing type will need a full clean to pick that up, for example. These limits seem quite exotic, though.
2020-09-10Add record supportRawi01
2020-07-29Support javadoc copying in eclipseRawi01
2020-01-31[issue #788] Add more nullity annotations where relevantReinier Zwitserloot
(chainable setters, static constructors, builder stuff)
2020-01-31[issue #2221] simplified configuration for `@Singular`-generated plural form ↵Reinier Zwitserloot
nullchecks.
2020-01-20Remove unused importsRoel Spilker
2019-08-26Fixes #2156: also clone the annotations on the setter.Roel Spilker
2019-08-22[checkerframework]Reinier Zwitserloot
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-07-16[Fixes #2115] builder fields tracking a property that has a default set is ↵Reinier Zwitserloot
now called `$value` in order to convey that you shouldnt manually mess with it.
2019-05-07[fixes #1981][fixes #1961] Hardcoded some knowledge about how to copy ↵Reinier Zwitserloot
jackson’s `@JsonProperty`.
2019-05-06[fixes #2120] ecj was not generating explicit nullchecks for builder-setters.Reinier Zwitserloot
2018-09-11Replaced the notion of ‘nullable’ and ‘nonnull’ get copied to ‘any ↵Reinier Zwitserloot
‘copyable’ annotations get copied’, with ‘copyable’ defined as a specific FQN-style list of well-known nullity-indicating annotations, plus whatever you configured in lombok.config. Also some work on the notion of TYPE_USE annotations.
2018-09-11code review and fixes for the ‘copyable annotations’ setting concept.Reinier Zwitserloot
2018-09-11Add configuration key, handle whereever NULLABLE is handled, support Eclipse.Werner Dietl
2018-06-13Merge branch 'janrieke-superBuilder'Reinier Zwitserloot
2018-06-13[SuperBuilder] code review, style update, making it JDK1.6 compatible, ↵Reinier Zwitserloot
documentation review, bugfix for setter auto-presuming chaining even when you didn’t configure it to chain.
2018-05-14[annotation based ToString] hey.. we have annotation based ToString now, ↵Reinier Zwitserloot
where you can include/exclude fields by annotating the fields.
2018-05-11ecj: setter methods now return self()Jan Rieke
2018-04-23Allow onMethod and onParam in @Getter and @Setter if it is put on a typeRoel Spilker
2017-03-23Fixed issue #1342: builder now marks generated stuff as deprecated if ↵Reinier Zwitserloot
appropriate.
2017-03-20Fixing issue #1201: Builder now supports defaults!Reinier Zwitserloot
2017-03-07Fixed issue #778: problems with onX if the annotation to be added has named ↵Reinier Zwitserloot
args.
2015-01-29Reverting the revert of purely a style issue; the copyAnnotations method is ↵Reinier Zwitserloot
now ‘nicer’ and no longer requires having to deal with the fact that it can return both ‘null’ AND empty arrays. Thanks to Maaartin Gracjar for setting this change in motion in commit 842a4759165c5cd05aae63da3921ee11a3641a4b.
2014-06-01Revert "Remove a wrong test for copyAnnotations returning empty array."Reinier Zwitserloot
While Maaartinus' thoughts are obviously correct (far better to use an empty array to convey 'this list-like construct has 0 items in it right now', vs. a null pointer), eclipse actually uses null-as-empty almost everywhere, and a lot of eclipse code will simply break if you don't do it right. This reverts commit 842a4759165c5cd05aae63da3921ee11a3641a4b.
2014-05-31Remove a wrong test for copyAnnotations returning empty array.Maaartin Grajcar
2014-05-23Added confkey to make @NonNull generate a different exception because of the ↵Reinier Zwitserloot
IllegalArgumentException vs. NullPointerException that we really don’t want to get into.
2014-03-04[configuration] Merge branch 'master' as we work on configuration.Reinier Zwitserloot
* Conflict due to adding topic() feature to logger in master, and 'field name' feature in config branch. * master has since updated to shiny new eclipse dep versions and the 'ant eclipseForDebugging' feature, but this branch added deps. Addressed that. * Renamed 'loggerCategory' to 'loggerTopic'. I know, that wasn't exactly right to do in a merge, but, there you have it. * Test infrastructure changed in configuration branch, and tests had been added in master branch. Conflicts: build.xml buildScripts/ivy.xml src/core/lombok/eclipse/handlers/HandleLog.java src/core/lombok/extern/apachecommons/CommonsLog.java src/core/lombok/extern/java/Log.java src/core/lombok/extern/log4j/Log4j.java src/core/lombok/extern/log4j/Log4j2.java src/core/lombok/javac/handlers/HandleLog.java test/transform/resource/after-ecj/ValInTryWithResources.java
2014-01-20[configuration] Added all the @Accessors stuff as a configuration key.Reinier Zwitserloot
[refactor] Merged TransformationsUtil and HandlerUtil
2014-01-18[configuration] Moved ALL ConfigurationKey constants into ↵Reinier Zwitserloot
'ConfigurationKeys'; that bug where fields in annotation defs causes issues is too endemic to try and work around these.
2014-01-18[configuration] implementation of flagUsage for all handlers.Reinier Zwitserloot
2014-01-15added package-infos to lots of packages, updated the javadoc in these, and ↵Reinier Zwitserloot
made lots of private/package private methods 'public' in packages that aren't actually public API. Tumi asked for this, and I can imagine this is useful for others who are hacking add-ons to lombok. The package-info files clarify that we aren't committing to long-term stability of anything except the stuff directly in the lombok package, lombok.experimental, and lombok.extern.
2013-07-16* Fixed issues with @FieldDefaults and @Value (you can NOT overrideReinier Zwitserloot
@Value's final-by-default and private-by-default with it; now appropriate warnings are emitted) * Builder now errors out on presence of most lombok annotations on an explicit builder class. * Builder now takes @FieldDefaults/@Value into account. * Builder on type now generates the constructor as package private instead of private to avoid synthetic accessor constructors. * added a bunch of test cases. * added a test case feature: If the expected file is omitted entirely but there are expected messages, the differences in the output itself are ignored. * streamlined checking for boolean-ness (removed some duplicate code) * added 'fluent' and 'chain' to @Builder.
2013-06-16Eclipse Builder implementation finished. Tests need fleshing out though.Reinier Zwitserloot
2013-02-11BIG commit:Reinier Zwitserloot
* re-introduction of onMethod/onConstructor/onParam * tests checking error/warnings rewritten to be more heuristic, in order to accomodate difference in messaging between java6 and java 7 * Ability to eliminate java's own output of erroneous error messages (heh); i.e. those messages that are invalidated by lombok's actions. This mechanism is used for onMethod/onConstructor/onParam * First steps to unifying a billion setGeneratedBy calls into a single visitor traversal for eclipse' HandleGetter/Setter/Constructor/Wither * To simplify 'zooming in' the tests on just a few files, added an 'accept' mechanism. * Updated copyright headers of website to 2013.
2012-08-06Added @Value and @FieldDefaults implementations for javac and ecj, the ↵Reinier Zwitserloot
annotations including @NonFinal and @PackagePrivate, and some refactors. No tests yet.
2012-08-06Untested implementation of HandleWither for eclipse along with minor ↵Reinier Zwitserloot
refactors to HandleSetter
2012-03-26Finished work on @AccessorsReinier Zwitserloot
2012-03-26Merge branch 'acc2' into accessorsReinier Zwitserloot
Conflicts: src/core/lombok/eclipse/handlers/HandleGetter.java src/core/lombok/eclipse/handlers/HandleSetter.java src/core/lombok/javac/handlers/HandleGetter.java src/core/lombok/javac/handlers/HandleSetter.java
2012-03-26Updated findMethod with paramcount.Reinier Zwitserloot
2012-03-21Implementation of @Accessors.Reinier Zwitserloot
2012-03-19Fix for issue 342: @Deprecated annotation not propagated to generated ↵Roel Spilker
getter/setter
2011-11-12patched retrieveRightBraceOrSemiColonPosition && retrieveRightBrace so ↵jvanderhel
method bodies are converted instead of skipped Set Assignment.statementEnd to prevent invalid sourceRange in Statement convert
2011-11-07Changed copyright noticesRoel Spilker
2011-10-24pretty big refactor; introduced a new source package which should be (and ↵Reinier Zwitserloot
is) separately compilable, i.e. has no deps on any of the others. This is preparation work for being able to access some of these from lombok.ast without creating a cyclic dependency nightmare.
2011-08-15Removed support for onMethod, onParam and onConstructor due to javac7 type ↵Roel Spilker
incapabilities. Issue #251
2011-06-20Javac/EclipseAnnotationHandler are now abstract classes instead of ↵Reinier Zwitserloot
interfaces; there were too many 'option' methods (methods where you return either true or false), so we really needed the ability to pick a default.