Commit Graph
1439 Commits
Author SHA1 Message Date
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
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
Roel Spilker 96e1c9e02e [configuration] Bubbling now works 2014-01-09 23:16:18 +01:00
Roel Spilker a23f56c21b [configuration] Implemented the StringResolver 2013-12-21 21:50:12 +01:00
Roel Spilker 43ead7d65f [configuration] ongoing work on the typing and resolving 2013-12-18 22:44:13 +01:00
Roel Spilker 404956374e [configuration] Initial API for declaring ans reading single settings. 2013-12-15 22:27:43 +01:00
Roel Spilker 930b17b85b [configuration] Added the .getAbsoluteFileLocation() method to AST;
this now works properly (even with eclipse Linked Resources) in both
eclipse and javac. We will now use this feature to search for and apply
config files, which will apply hierarchically based on the directory of
the source file.
2013-12-15 21:02:09 +01:00
Reinier Zwitserloot 324022b719 work in progress on ProjectSearcher. 2013-12-15 18:48:11 +01:00
Reinier Zwitserloot 7d51842ca3 semi-fix for issue 602, but not complete as adding annotations to generated fields leads to crazy issues (see issue 217): generated LOG field now has @SuppressWarnings on it. 2013-12-11 22:40:49 +01:00
Reinier Zwitserloot 5f92913a52 Updated web docs and added format options support to delombok ant task. 2013-12-11 22:40:48 +01:00
Reinier Zwitserloot a19b99cba2 Added complete support for delombok's 'pretty' format options; covering all of the issue #608. 2013-12-11 22:40:48 +01:00
Reinier Zwitserloot 9ac86c8a23 fixed a bug where called LombokOptionsFactory.getLombokOptions() would actually cause the old options to be wrapped continuously, thus wrapping LombokOptions into itself infinitely. Now it just wraps if needed, other wise returns what's already been done. 2013-12-11 22:40:48 +01:00
Reinier Zwitserloot 7e21683515 Added format preferences: Suppress @SuppressWarnings, suppress needless application of 'final'. 2013-12-11 22:40:48 +01:00
Roel Spilker 9639bc2ff4 [pretty] Make the tests work with the new delombok formatting options. 2013-12-11 22:40:48 +01:00
Roel Spilker 54c30d98c0 [Pretty] Delombok prettyprinter now adheres to whitspace formatting rules 2013-12-11 22:40:48 +01:00
Roel Spilker 749baeaaed [Pretty] Suppress final en last semicolon in try-with-resources. Do not indent empty lines. 2013-12-11 22:40:48 +01:00
Reinier Zwitserloot f865fe5fa2 added contingency case in format pref scanning if there is no input 2013-12-11 22:40:48 +01:00
Reinier Zwitserloot 21415af7b1 added support for CharSequences 2013-12-11 22:40:48 +01:00
Reinier Zwitserloot 91c84ed67b finished API for setting format prefs via command line. 2013-12-11 22:40:47 +01:00
Reinier Zwitserloot 1723e21b5e formatpreferences system v1 2013-12-11 22:40:47 +01:00
Roel Spilker 1025ffb8ba [Pretty] Fix labeled statements and try-with-resources 2013-12-11 22:40:47 +01:00
Roel Spilker 0838177322 Fix for Issue #591: v1.12.2 doesn't well with netbeans. 2013-12-03 21:27:04 +01:00
Roel Spilker 78b2d6919e Merge branch 'master' of github.com:rzwitserloot/lombok
Conflicts:
	src/delombok/lombok/delombok/DelombokApp.java
2013-11-19 21:02:59 +01:00
Reinier Zwitserloot 83b7e77b0c changelog for bugfix for 598 from previous commit 2013-10-27 22:34:49 +01:00
Reinier Zwitserloot 5cdb0757d3 [issue 598] JDK8 update broke assignment-with-operator in delombok. 2013-10-27 22:32:44 +01:00
Reinier Zwitserloot 601cd66bab Post release version bump 2013-10-10 23:53:56 +02:00
Reinier Zwitserloot e68c8d4fd4 pre-release version bump 2013-10-10 23:25:52 +02:00
Reinier Zwitserloot ab3ee68c38 No functional change, but runPostCompiler in eclipse patching is no longer transplanted. It shouldn't matter (runPostCompiler will call lombok.jar code, so if there is a classloader issue, transplanting won't help), and roel thinks it might help debug an issue with Springsource gradle plugin for eclipse. 2013-10-10 23:25:15 +02:00
Reinier Zwitserloot a9b4fb0c68 Fix for issues when mixing @NonNull on params with @SneakyThrows or @Synchronized [Issue #588] 2013-10-10 23:25:09 +02:00
Reinier Zwitserloot 08961edcfe Whoops, Classload errors running lombok on javac with backing JVM 7 or below; fixed. 2013-10-10 23:24:04 +02:00
Roel Spilker 728dddbc81 [jdk8support] ... and javadoc copying support is back for javac8. Also fixed some copyright headers. 2013-09-25 23:04:04 +02:00
Roel Spilker 00a8b08226 [jdk8support] there was a bunch of duplicate code in both JavacAST and JavacResolution. We've unified this (and fixed the fact that the JavacAST variant didn't work with javac8). 2013-09-25 22:12:05 +02:00
Roel Spilker 7fc6e70b36 Pre-emptive fix for the anticipated removal of ListBuffer.lb() in javac8 2013-09-25 21:38:37 +02:00
Reinier Zwitserloot f0cdc27a3f tiny tiny fix for some incredibly unlikely mix of intellij, ibm stuff, and who knows what. At any rate, Roel is absolutely sure this will fix it, so, hey, who am I to argue? NB: Unicum 2013-09-24 01:55:31 +02:00
Reinier Zwitserloot 7b8a85e1f9 Fixed slight typo issues with the tests due to merging and icelandic on the fly bug fixing. 2013-09-24 01:33:22 +02:00
Reinier Zwitserloot 86a635876d Merge branch 'master' into jdk8check
Conflicts:
	src/core/lombok/core/Version.java
	src/core/lombok/javac/handlers/HandleConstructor.java
	test/transform/resource/messages-delombok/EqualsAndHashCodeWithSomeExistingMethods.java.messages
	test/transform/resource/messages-ecj/EqualsAndHashCodeWithSomeExistingMethods.java.messages
2013-09-24 01:18:32 +02:00