Reinier Zwitserloot
eb3250a2fa
Finished work on @Accessors
2012-03-26 21:57:24 +02:00
Roel Spilker
8bc82cad05
Fix for issue 342: @Deprecated annotation not propagated to generated getter/setter
2012-03-19 23:18:37 +01:00
Robbert Jan Grootjans
d39623693b
Merge branch 'master' of github.com:rzwitserloot/lombok
...
Conflicts:
doc/changelog.markdown
2012-03-05 21:12:39 +01:00
Robbert Jan Grootjans
f1e679471d
PrettyCommentsPrinter now prints default clause of annotation methods. Fixes Issue #350
2012-03-05 21:11:19 +01:00
Taiki Sugawara
821370e01b
Add deprecated comment support for eclipse.
2012-02-24 23:55:02 +09:00
Taiki Sugawara
c63d036e78
Remove spaces in after files.
2012-02-24 22:56:42 +09:00
Taiki Sugawara
c809047b78
support delegate with deprecated comment.
2012-02-22 05:01:35 +09:00
Reinier Zwitserloot
0f86101098
Couple more tests for val
2012-02-15 04:45:28 +01:00
Reinier Zwitserloot
9a50da2d09
ecj tests and eclipse tests are now effectively doing the same thing, except the ecj tests are written in a slightly more close-to-reality way, and do work for 'val'. eclipse test aspect removed.
2012-02-14 17:11:15 +01:00
Reinier Zwitserloot
06581537f2
More test files, test files updated to be valid java, and ecj test now goes through the complete compile process. This means val and @Delegate testing is now enabled.
...
TODO: Update -eclipse tests.
2012-02-14 16:39:48 +01:00
Roel Spilker
bf8b93701a
Added test for @Getter(AccessLevel.NONE)
2012-01-24 03:07:14 +01:00
Roel Spilker
2242de2bf9
Fix for issue 328: @Delegate on a field for which we also generate a getter will use the getter for delegation
2012-01-24 02:52:13 +01:00
peichhorn and Reinier Zwitserloot
87cca2d322
[Issue 275] Allow @Delegate on no-argument methods
2012-01-19 00:44:47 +01:00
Reinier Zwitserloot
ae87a26456
Now the type resolver also finds top-level types in a compilation unit that name-shadow. Added tests for the type resolver.
2011-12-19 20:09:40 +01:00
Reinier Zwitserloot
3b921ad7f6
Fix for issue 299: labels would break 'val' in javac.
2011-11-20 19:04:31 +01:00
peichhorn
0d75d56fce
Eclipse/JavacHandlerUtil.injectField(...) inserts the new fields after the enum constants.
...
Also the new fields are ordered in the same way the method injectField() gets invoked.
2011-11-13 09:06:57 +01:00
Roel Spilker
45f9e9def1
Changed copyright notices
2011-11-07 22:04:40 +01:00
Robbert Jan Grootjans
88a83e08a9
Fixed eclipse and ecj unit test broken by 99e36bf51c
2011-11-07 21:51:12 +01:00
Roel Spilker
2fcfc4c3dc
Fixed unit tests to take into account work on issue 289 and 287.
2011-11-01 00:53:21 +01:00
peichhorn
2d39470469
[Issue 281] added test
2011-10-07 21:40:33 +02:00
peichhorn
236c88fc5c
fixed Issue 271: @NotNull annotations should introduce a null check
2011-09-05 21:53:58 +02:00
Roel Spilker
a284600987
Removed support for onMethod, onParam and onConstructor due to javac7 type incapabilities. Issue #251
2011-08-15 21:21:51 +02:00
Reinier Zwitserloot
4ff39e5770
Added some forgotten copyright headers
2011-08-02 03:57:53 +02:00
Roel Spilker
4dfa3b7004
There's now 1 test suite that runs all tests, and 'ant eclipse' will make a launch config that adds the appropriate -javaagent VM param to ensure the runWithEclipse tests work.
2011-07-18 21:11:37 +02:00
Roel Spilker
83e2fb5e00
Now either all or none of equals/hashCode/canEqual is generated. Fixes issue 240.
2011-07-18 21:05:00 +02:00
Philipp Eichhorn
476b198f16
Allow "before" to be used as a source-package for eclipse tests (see LoggerSlf4jWithPackage).
2011-06-05 22:14:50 +02:00
peichhorn
850c3eaf07
Added a test infrastructure that simulates eclipse with diet-parse, type-binding and so forth. Similar to eclipse, the test needs to be executed with lombok as vm-agent. @Delegate runs with this setup, sadly val does not, at least for now.
...
And as expected the tests shows that @Synchronized and @SneakyThrows are currently broken for eclipse but not for ecj.
2011-06-01 02:44:53 +02:00
peichhorn
daf84dd00e
HandleDelegate did not remove the annotation @Delegate from javac's AST, so HandleDelegate was called multiple times for the same field resulting in an error saying the delegate method was already defined.
...
Also added a test for @Delegate that uncovered this issue.
2011-05-30 21:26:45 +02:00
Reinier Zwitserloot
04e9397971
Rewritten @Cleanup's new null analysis prevention to not use
...
Lombok.preventNullAnalysis but go with Collections.singletonList(expr).get(0)
instead; while this does create a pointless object, it doesn't cause a clash
when eclipse has lombok 0.10 installed but the project uses 0.9, which doesn't
have preventNullAnalysis. Eventually, once 0.9 is long forgotten, this can be reverted.
2011-03-18 19:30:02 +01:00
grootjans
ed4068d842
Added a number of test for AllArgsConstuctor, RequiredArgsConstructor, NoArgsConstructor annotations and added a test for issue: 172
2011-02-14 22:53:08 +01:00
Reinier Zwitserloot
b15bcb09e9
Added test to confirm behaviour of @RequiredArgsConstructor, @ToString, and @Getter on enums.
2011-02-07 23:21:15 +01:00
Reinier Zwitserloot
30b63deaff
Testcases updated with new behaviour of @Getter/@Setter on booleans.
2011-02-07 21:35:34 +01:00
Reinier Zwitserloot
41a85d2814
Some of the tests weren't succeeding (and haven't for a while now) since fixing the bug where lombok will call equals(SomeSpecificType) instead of equals(Object) from data. This commit rectifies this by updating the tests.
2011-01-17 23:57:11 +01:00
Roel Spilker
b0072a17eb
lombok.val import now gets removed. Only adding lombok.val flags the compilation unit as changed.
2010-11-29 22:43:44 +01:00
Roel Spilker
f258229b88
- Renamed the diverse @Log annotations to give them distinct names
...
- Removed the option to specify a different class to log on
- Updated tests and documentation
2010-11-22 23:52:34 +01:00
Roel Spilker
3f00e7c905
@Getter(lazy=true) now also works in Eclipse
2010-11-11 05:55:15 +01:00
Roel Spilker
ddf54dcfae
Merge branch 'master' into lazyinit
...
Conflicts:
src/core/lombok/javac/handlers/HandleGetter.java
2010-11-11 02:03:38 +01:00
Roel Spilker
1c32333249
@Getter(lazy=true) support for javac
2010-11-11 01:58:48 +01:00
Reinier Zwitserloot
40b76b5046
Merge branch 'fixDelombok'
2010-11-10 22:20:08 +01:00
Reinier Zwitserloot
632027249b
All tests pass! - The test framework has been updated a bit to fit with the new way delombok works.
2010-11-10 22:19:46 +01:00
Roel Spilker
3d4b27d6d2
Merge branch 'master' into annoGetSet
...
Conflicts:
src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
2010-11-10 01:52:07 +01:00
Roel Spilker
fe7f0db2fc
From now on it is possible to specify annotations to be placed on the method
...
or the parameter of the generated getter/setter methods.
2010-11-10 01:44:04 +01:00
Roel Spilker
a94243e062
Added lombok.Lombok.preventNullAnalysis to the null test in @Cleanup to suppress
...
warnings about variables that cannot be null
2010-11-09 00:37:06 +01:00
Roel Spilker
dee834a397
Added support for canEqual in ecj
2010-11-08 22:00:06 +01:00
Roel Spilker
6e5acaca49
Added support for canEquals in javac
2010-11-08 02:57:01 +01:00
Roel Spilker
2097dd8731
Solved issue 155: "Eclipse constructor generation not in class body" http://code.google.com/p/projectlombok/issues/detail?id=155
...
Now all lombok generated methods are located before any other method.
2010-11-07 15:16:48 +01:00
Roel Spilker
1f0db1191a
Use the actual annotation value to process the @Log annotations instead of their String representations.
2010-11-07 02:49:01 +01:00
Roel Spilker
8e7334a505
Updated documentation on @Log and moved them all to lombok.extern.*
2010-11-06 23:29:43 +01:00
Roel Spilker
5915032899
Have j.u.l. be invoked with TargetType.class.getName() instead of "TargetType"
2010-11-06 20:41:36 +01:00
Roel Spilker
0c7b29f8e7
Create Clinit if you create a static field and it doesn't yet exist
2010-11-06 16:41:17 +01:00