Commit Graph
2534 Commits
Author SHA1 Message Date
Emil Lundberg 2747ce6a2c Move invariant parameter inside generateSingularMethodParameter 2019-01-13 02:20:03 +01:00
Emil Lundberg a367f7815d Move local variable declarations to just before use 2019-01-13 02:20:02 +01:00
Emil Lundberg b09f4ca38d Inline single-use variable 2019-01-13 02:20:02 +01:00
Emil Lundberg 4599a65b7d Extract method JavacSingularizer.generateSingularMethodParameter 2019-01-13 02:19:50 +01:00
Emil Lundberg 85759a1949 Detangle key/value param creation in JavacJavaUtilMapSingularizer.generateSingularMethod 2019-01-13 02:13:57 +01:00
Emil Lundberg f843499658 Extract local variable paramName 2019-01-13 02:13:56 +01:00
Emil Lundberg 360c1d5a21 Move invariant parameters inside finishAndInjectMethod 2019-01-13 02:13:56 +01:00
Emil Lundberg bb7b5cce75 Move one-use variable declarations to just before use 2019-01-13 02:13:55 +01:00
Emil Lundberg 3c9324e801 Extract method finishAndInjectMethod 2019-01-13 02:13:55 +01:00
Emil Lundberg 62bb81311e Pull return statement wrapping up into generateClearMethod 2019-01-13 02:13:54 +01:00
Emil Lundberg d08aa5a83d Pull generateClearMethod up to JavacSingularizer 2019-01-13 02:13:54 +01:00
Emil Lundberg 05ce5e050e Extract abstract method JavacSingularizer.generateClearStatements 2019-01-13 02:13:44 +01:00
Emil Lundberg 5c99e5b9a0 Extract method JavacSingularizer.finishGenerateClearMethod 2019-01-10 02:12:17 +01:00
Emil Lundberg a8a7888033 Extract method JavacSingularsRecipes.doGenerateMethods 2019-01-10 01:28:33 +01:00
Emil Lundberg c37b43690f Extract abstract method JavacSingularizer.generatePluralMethod 2019-01-10 01:25:14 +01:00
Emil Lundberg d57638b36e Extract abstract method JavacSingularizer.generateClearMethod 2019-01-10 01:24:30 +01:00
Emil Lundberg c336e6ff21 Extract abstract method JavacSingularizer.generateSingularMethod 2019-01-10 01:21:20 +01:00
Reinier Zwitserloot ccfab5ebff [#1033] steps on the way to issue 1033: You can add cleanup tasks which are deferred (during the javac run) until the end.
This already fixes the exotic-to-the-point-of-nonexistent bug where setter and wither compete to steal the `@param` off of the field’s javadoc. Next are to fix builder and setter/wither competing whilst bringing javadocs to `@Builder`.

Then for various other conflicts, we should defer removal of lombok imports and annotations until the end too.
2019-01-08 03:33:52 +01:00
Reinier Zwitserloot 20df86149d [website] fixing tidelift referral links 2019-01-08 03:33:52 +01:00
Roel Spilker 2c7870a4c7 @Delegate @NonNull would error on jdk8, fixes #1935 2019-01-08 00:00:04 +01:00
Roel Spilker ca46f98beb Serve dependencies instead of using a CDN. Fixes #1964. 2018-12-18 00:38:25 +01:00
Reinier Zwitserloot 2725637ef7 [website] updated docs of FieldNameConstants to show how to generate an enum instead of a static class. 2018-12-17 23:42:38 +01:00
Reinier Zwitserloot b00c0b0bf9 [deps] updated dep versions. 2018-12-17 23:25:21 +01:00
Reinier Zwitserloot 16aeef1608 [website] Added security vulnerability disclosure page 2018-12-17 22:55:05 +01:00
Reinier Zwitserloot 6ca884be75 [github] issue templates 2018-12-17 21:01:10 +01:00
Reinier Zwitserloot c2bd647287 Update issue templates
Adding some issue templates.
2018-12-17 20:40:42 +01:00
Reinier Zwitserloot 87600e814c website and README updates (tidelift) 2018-12-11 20:55:54 +01:00
Reinier Zwitserloot 4126bc2772 bugfix for clicking our W-8BEN form on the order page. 2018-11-19 12:05:44 +01:00
Reinier Zwitserloot 94d11d89a7 [issue #1938] addressing some small issues with the documentation. 2018-11-12 21:30:23 +01:00
Reinier Zwitserloot db19327cb4 [fixes #1628] Lombok now marks the result field used in the generated hashCode method as final if it isn’t modified. This doesn’t change its behavior whatsoever, but some linters and especially eclipse save actions (specifically: ‘mark local variables final if possible’) cause issues when they try to mess with generated code. Of course, now any save action with ‘remove useless modifiers’ would cause an issue but those don’t (yet…) exist. 2018-11-08 15:51:08 +01:00
Reinier Zwitserloot a685d0828c [fixes #1888] [jdk12] lombok can deal with the changes to case/break nodes in JDK12-preview javac. 2018-11-06 00:55:54 +01:00
Roel Spilker 7e79316a1f Improve toString generation for enums. Fixes #1916 2018-11-06 00:37:07 +01:00
Reinier Zwitserloot dc641cc369 [fixes #1912] clarifying builder’s behaviour about generating constructors in the face of already present ones. 2018-11-05 23:39:02 +01:00
Reinier Zwitserloot a73965b2b7 [fixes #1918] toString now supports a configkey to tell it how to deal with super. 2018-11-05 23:30:09 +01:00
Reinier Zwitserloot 2c0ec93155 [bugfix] attempting to fix an issue with buckbuild which uses some exotic trickery to compile straight from jar to jar, messing up our wrapper around javac’s javaFileObject. Bug report and suggested fix from external sources, we didn’t test it, but we only kick in this alternative if an exception occurs, so it couldn’t possibly affect anything that was already working fine. See PR #1929 2018-11-05 21:40:30 +01:00
Reinier Zwitserloot 9fc02601df [website] the usage example for FieldNameConstants was still written in the abandoned 1.18.2 style. 2018-11-05 21:19:21 +01:00
Reinier Zwitserloot 4acda73319 [trivial] error out on mismatch between FieldNameConstants asEnum flag and actual handwritten type. 2018-11-01 16:43:25 +01:00
Reinier Zwitserloot 2fd46a50b6 [feature] FieldNameConstants now works like Builder: Make whatever bits it does by hand and lombok fills in whatever is missing. 2018-11-01 16:38:25 +01:00
Reinier Zwitserloot 21878e253e [fixes #1932] We broke the delombok ant task. 2018-11-01 15:01:33 +01:00
Reinier Zwitserloot 6e7924f865 post-release version bump. 2018-10-30 01:29:27 +01:00
Reinier Zwitserloot 8451c88bfa pre-release version bump 2018-10-30 01:22:02 +01:00
Reinier Zwitserloot e960f482a9 cleaning up the changelog in preparation for a release. 2018-10-30 01:03:18 +01:00
Reinier Zwitserloot 9b0601809b [fixes #1907] This one is hard to describe; due to builder being a bit overzealous as to what it marks as ‘generated’, if you manually write the builder class and add some elements, you’d get crazy errors on those. 2018-10-30 01:03:18 +01:00
Roel Spilker f5b106971a add jdk11 to docker builds 2018-10-30 00:50:24 +01:00
Reinier Zwitserloot 03365378e9 fixing the tests added in the previous commits by janrieke to match alternative take on how to ‘fix’ null-collections and singular/toBuilder. 2018-10-29 23:41:11 +01:00
Reinier Zwitserloot d8de0e3c49 Merge branch 'wildcardsSingularFix' of git://github.com/janrieke/lombok into janrieke-wildcardsSingularFix 2018-10-29 23:29:10 +01:00
Reinier Zwitserloot eca219ee64 eliminate ‘you are using private API’ warnings by streamlining all reflective access via a class that uses sun.misc.Unsafe to arrange access. From the nqzero permit-reflect library. 2018-10-29 23:13:59 +01:00
Roel Spilker 182cb0cb9e [java-11] up dependency on lombok.patcher, including asm7 2018-10-29 21:30:27 +01:00
Reinier Zwitserloot c02263a5e2 Merge pull request #1923 from abargnesi/fix-maven-issue-management
correct issueManagement declaration in maven POM
2018-10-29 21:07:19 +01:00
Reinier Zwitserloot 4cf36b2788 Merge pull request #1917 from kkocel/master
Added Spring NonNull and Nullable annotations
2018-10-29 21:06:26 +01:00