aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/HandleGetter.java
AgeCommit message (Collapse)Author
2023-03-22[fixes #3364] Generate JCTree clones to prevent duplicate nodesRawi01
2022-02-08[implements #1456] accessors can now be made final via `@Accessors`.Reinier Zwitserloot
2021-04-18Merge branch 'enter-types-methods-fields' of git://github.com/Rawi01/lombok ↵Reinier Zwitserloot
into Rawi01-enter-types-methods-fields
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.
2021-03-05[javac6] replacing calls to ListBuffer add/addAll to the append variants; ↵Reinier Zwitserloot
add/addAll do not work in j6.
2021-02-01[fixes #1538] Use Enter and MemberEnter to update type mirrorsRawi01
2021-01-28[fixes #2691] Add end positions to all generated nodesRawi01
2020-10-03[builder] big refactor: Fixing CheckerFramework features + all params now in ↵Reinier Zwitserloot
an object These handlers had methods with humongous argument lists, and they needed to grow even more in order to accommodate some new needs to properly implement checkerframework (where annos can be type-use based, which means they were being put in the wrong place. void foo(com.foo.@X Bar paramName) // correct void foo(@X com.foo.Bar paramName) // wrong For example, the CalledMethod annotation is a type-use annotation. This commit covers both that refactor and fixing checkerframework generation.
2020-09-10Add record supportRawi01
2020-07-23[fixes #2300] Keep method argument positions for lazy getter initializerRawi01
2020-07-02[fixes #2433] Add config key to turn off @SuppressWarnings("all")Rawi01
2020-03-15[fixes #2386] [checkerframework]Reinier Zwitserloot
Now generating checkerframework `@Pure` instead of `@SideEffectFree` where appropriate.
2020-02-06[fixes #880] get rid of an unchecked cast warning for `@Getter(lazy=true)`Reinier Zwitserloot
2019-08-22Merge branch 'master' into clone-typeReinier Zwitserloot
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-08-08[Fixes #2189] Clone type to correctly set annotated type on constructor, ↵Jacob Middag
getter and setter.
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-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-04-23Allow onMethod and onParam in @Getter and @Setter if it is put on a typeRoel Spilker
2018-03-27[trivial] some memoryload improvements by not making a new instance but ↵Reinier Zwitserloot
using a cached one instead. Fixes issue #1579
2017-03-07Fixed issue #778: problems with onX if the annotation to be added has named ↵Reinier Zwitserloot
args.
2017-01-19Lombok will now also fix the typemirror info when generating bean-related ↵Reinier Zwitserloot
methods/constructors, to allow other annotation processors to see these generated methods/constructors too.
2016-12-05Fixes #1236: Getter(lazy=true) now emits an error when used on a transient fieldRoel Spilker
2014-05-22added conf keys (and implementation to make them work) for ↵Reinier Zwitserloot
lombok.getter.lazy.flagUsage and lombok.equalsAndHashCode.doNotUseGetters.
2014-05-20@Delegate has moved to lombok.experimental.Reinier Zwitserloot
Some work on the aliasing system to make that go smoothly.
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.
2014-01-15#627: Fix for refactoring when @Getter(lazy=true)Tumi
When if in NB Editor, just make the getter available (lazy stuff will be created when compiling). The inNetbeansEditor test is made after all the validations are made to the annotated field, and generates a regular getter for validations, Naviagator and autocompletion.
2013-12-11Added complete support for delombok's 'pretty' format options; covering all ↵Reinier Zwitserloot
of the issue #608.
2013-12-03Fix for Issue #591: v1.12.2 doesn't well with netbeans.Roel Spilker
2013-09-25Pre-emptive fix for the anticipated removal of ListBuffer.lb() in javac8Roel Spilker
2013-07-28more progress. This one is less JDK8 compatible, butReinier Zwitserloot
it has major refactorings to make JDK6-8 support possibly with much prettier code.
2013-07-26experiment: Can we wrap TreeMaker and remove a heck of a lot of opportunity ↵Reinier Zwitserloot
to program handlers that are not cross javac6-8 compatible?
2013-07-22Merge branch 'master' into jdk8. Also added some major fixes whilst merging.Reinier Zwitserloot
Conflicts: src/core/lombok/javac/handlers/JavacHandlerUtil.java src/utils/lombok/javac/CommentCatcher.java src/utils/lombok/javac/Javac.java
2013-07-08Support for javadoc copying in Getter/Setter generation for javac, as well ↵Reinier Zwitserloot
as updates to all relevant documentation
2013-07-07eclipse support for the new @Getter(lazy=true) desugaring.Reinier Zwitserloot
2013-07-07@Getter(lazy=true) now uses a different, more efficient desugaring. ↵Reinier Zwitserloot
Implementing in javac, ecj still has to be done.
2013-03-22Refactored out references to TypeTags.Robbert Jan Grootjans
Instead they are retrieved dynamically, with a pinch of caching during runtime. We already had some fixes to make sure that compile time constanst were not inlined, but we need to take into account that a lot of the Integer-based enums have been replaced with actual enums. Also, certain TreeMaker methods needed to be invoked dynamically with reflection. This needs to be reviewed, and if it turns out that these changes are too dramatic, we should fork out a larger part of our code for specific JVM versions.
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-11-12[refactor] Cleaned up static imports (always use *), and refactored out ↵Reinier Zwitserloot
getCtcInt calls into constants as defined in Javac.
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-06-18Fix for issue 376 for javac.Roel Spilker
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