Commit Graph
2122 Commits
Author SHA1 Message Date
Roel Spilker 01cee6f22d [configuration] Improved descriptions of configuration keys 2014-01-20 02:47:07 +01:00
Reinier Zwitserloot d1899a81e9 [test] Missing after-X files used to be an implicit 'just ignore the content' signal; now you need an explicit directive to allow this behaviour.
[configuration] added tests for @Accessors configuration key implementations.
2014-01-20 01:46:01 +01:00
Reinier Zwitserloot e5dc6203c8 [configuration] ConfigurationKeysLoader now caches. 2014-01-20 01:46:01 +01:00
Reinier Zwitserloot 8a1e0d03ae [configuration] Added all the @Accessors stuff as a configuration key.
[refactor] Merged TransformationsUtil and HandlerUtil
2014-01-20 01:46:01 +01:00
Roel Spilker 5be1c574d6 [configuration] ConfigurationKey now has a description 2014-01-20 00:44:57 +01:00
Roel Spilker cdb4920d52 Typo in changelog 2014-01-19 23:03:54 +01:00
Roel Spilker 14cc545276 Issue 625: use (even) better primes for hashcodes 2014-01-19 21:49:35 +01:00
Roel Spilker 2ab6cc809d Issue 629: have delombok respect the emptyLines derecotry inside enum bodies as well 2014-01-19 21:15:16 +01:00
Reinier Zwitserloot a016e623de [configuration] added a service-loader based way to load ConfigurationKeys, so that third party additions can add their own. 2014-01-19 07:38:49 +01:00
Reinier Zwitserloot bc1f91af3a [trivial] added test for logger config keys. 2014-01-19 07:01:10 +01:00
Reinier Zwitserloot d6ca8d5e81 [configuration] added facilities to override conf file resolution for test cases, and added first tests to test implementations of configuration-based stuff (FlagUsages, specifically). Error reporter has been refactored. 2014-01-19 03:54:46 +01:00
Roel Spilker deb694033a [configuration] Initial setup for configuration app 2014-01-19 02:59:59 +01:00
Roel Spilker 2f0d7614d4 [configuration] Move the responsibility to stop bubbling to the iterator 2014-01-19 02:25:23 +01:00
Roel Spilker 3415221322 [configuration] only allow a keyname to be registered once 2014-01-19 02:24:33 +01:00
Roel Spilker 513a27f746 [configuration] Make sure the ConfigurationKeys class is initialized 2014-01-19 02:23:14 +01:00
Reinier Zwitserloot 5767628efe [configuration] Moved ALL ConfigurationKey constants into 'ConfigurationKeys'; that bug where fields in annotation defs causes issues is too endemic to try and work around these. 2014-01-18 20:26:08 +01:00
Reinier Zwitserloot 08868a2076 [configuration] The 'getAbsoluteFileLocation()' addition to EclipseAST did not work in ECJ; now it does. 2014-01-18 20:23:34 +01:00
Reinier Zwitserloot 3a7c19f786 [configuration] [snippet] Removed the 'getProject' method; this doesn't even exist on ECJ. 2014-01-18 20:22:56 +01:00
Reinier Zwitserloot c65ec96943 [test-directives] another update to the 'test directives' system; test files now can start with directives (configuration keys, 'ignore', and java language version limits), and the test directory runner now has a framework to handle these. All existing tests pass at this point. 2014-01-18 18:55:53 +01:00
Reinier Zwitserloot f6da35e4c4 Moved NonNull's FLAG_USAGE ConfigurationKey definition to ConfigurationKeys to work around bugs with putting fields in annotation declarations in many versions of JDK7 and all of JDK6's versions. 2014-01-18 18:55:53 +01:00
Reinier Zwitserloot 7eccc3b4af [configuration] updates to the tests to streamline parsing 'directives', which have become more important as input files now may need to set up some lombok configuration stuff. 2014-01-18 18:55:53 +01:00
Reinier Zwitserloot 51805b4e0c [configuration] implementations for log's log.any.fieldIsStatic config. 2014-01-18 18:55:53 +01:00
Reinier Zwitserloot e24ebbbf59 [configuration] implementation of flagUsage for all handlers. 2014-01-18 18:55:53 +01:00
Reinier Zwitserloot 3797c8320a [configuration] Reduced the range around which all already flagged errors/warnings are removed (javac/delombok only) when using onMethod / onConstructor / onParam. Useful for adding warnings such as lombok configuration 'flag usages'. 2014-01-18 18:55:52 +01:00
Reinier Zwitserloot d680f8c7f4 [configuration] initial batch of configuration keys, primarily for flag usages. 2014-01-18 18:55:52 +01:00
Reinier Zwitserloot f6eef8e50a compiling lombok with javac gives 1 warning. fixed this. 2014-01-18 18:55:52 +01:00
Roel Spilker 3cca3e018b [configuration] Removed type parameter from ConfigurationSource.Result 2014-01-17 21:50:55 +01:00
Roel Spilker 493cf82313 [configuration] More strict naming rules for keyNames:
- may contain letters, digits, minus signs, underscores and periods
- must start with a letter, minus sign or underscore
- may not end with a period or minus sign

the rules about the periods are for possible future wildcard/globbing enhancements
2014-01-17 21:50:10 +01:00
Roel Spilker 477a5341c1 Close the outputstream if it is a file after printing the AST 2014-01-17 21:14:24 +01:00
Roel Spilker fee535eae9 [configuration] Added @PrintConfiguration to print the combined interpreted configuration for a certain java file, improved problem reporting 2014-01-17 21:13:37 +01:00
Reinier Zwitserloot 560552ddb3 post-release version bump 2014-01-15 22:31:59 +01:00
Reinier Zwitserloot 6363cac07d pre-release version bump 2014-01-15 22:11:13 +01:00
Reinier Zwitserloot 68e7a11f50 [website] If video playback is not working, the site offers a direct download of the video, but that link was broken (pointed to .mov instead of the actual .mp4). 2014-01-15 22:06:03 +01:00
Reinier Zwitserloot 09ea02e4f5 added package-infos to lots of packages, updated the javadoc in these, and 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 21:43:54 +01:00
Roel Spilker 610f250c1d [configuration] Implement LombokConfiguration (using the CONSOLE error reporter) 2014-01-15 21:36:52 +01:00
Roel Spilker 923a366003 [configuration] Pass the ConfigurationErrorReporterFactory as a parameter instead of a field. 2014-01-15 21:35:52 +01:00
Roel Spilker b6afe56dc2 [configuration] Use URI in the API instead of files. Null results in an empty Iterable. Some improvements on the time-out code 2014-01-15 21:28:31 +01:00
Roel Spilker bb56c53547 [configuration] Use the file system to look for 'lombok.config' files and parse those and cache the results 2014-01-15 21:02:45 +01:00
Roel Spilker 033356b6c6 [configuration] Add option 'stop-bubbling=true' to a lombok.config file to prevent the system from going up the directory tree to find more config files 2014-01-15 20:56:37 +01:00
Reinier Zwitserloot 69d82faa74 Merge pull request #41 from serverperformance/master
#591, #627: Fix for refactoring when @Getter(lazy=true)
2014-01-14 19:24:59 -08:00
Tumi 71a22340ae #627: Fix for refactoring when @Getter(lazy=true)
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.
2014-01-15 00:12:35 +01:00
Reinier Zwitserloot ed82259e52 [trivial] fixed typos in test files. 2014-01-14 22:52:44 +01:00
Reinier Zwitserloot ae4864ebc3 [#626] introduction of formatting options triggered a longer standing bug about wonky timing on replacing Options with LombokOptions, causing javac to complain about not recognizing i.e. a Getter annotation when using it more than once in a file. 2014-01-14 22:52:29 +01:00
Roel Spilker 96e1c9e02e [configuration] Bubbling now works 2014-01-09 23:16:18 +01:00
Reinier Zwitserloot 20ac40f201 [#625] Changelog entry for this issue 2014-01-09 21:26:48 +01:00
Reinier Zwitserloot a40a86ad53 [#625] Instead of '31' as a prime number for hashCode(), use something else. 31, probably owing to its inclusion in Effective Java, is overused, as proven by Maaartinus in issue 625. Switching to 277 instead. Also, 1231/1237 pair used for booleans has been replaced by 2591/2609. 2014-01-09 21:24:04 +01:00
Reinier Zwitserloot 685ddfd52e Added code to NOT add @SuppressWarnings to things if a @SuppressWarnings is already there. Lombok itself can't ever do that anyway (we don't add @SW except to things we just generated fresh), but some lombok extension builders do, and this helps them. 2014-01-09 04:46:59 +01:00
Reinier Zwitserloot 7bbe19f1b8 Merge pull request #40 from jlahoda/591
Lombok issue 591: Lombok 1.12.2 has some regressions with NetBeans
2014-01-08 14:43:28 -08:00
Jan Lahoda 9760b35197 591: setting positions for parameters even when running in NB editor, to avoid problems in javac's Flow. 2014-01-02 23:43:52 +01:00
Roel Spilker a23f56c21b [configuration] Implemented the StringResolver 2013-12-21 21:50:12 +01:00