Reinier Zwitserloot
66469e04fe
[var] various upgrades to var:
...
* var is promoted to the main package.
* It is no longer an opt-in thing.
* bug: var (unlike val) is allowed in old-style for loops, but if you multi-init: for (var i = 0, j="Foo";;), you now get an error that you can't do that.
* tests both for the multi-for situation and the new main package variant.
2018-02-07 00:01:22 +01:00
Roel Spilker
209c082530
Update tests for new Builder.Default handling #1547
2018-01-08 22:10:27 +01:00
Roel Spilker
d9031506b5
support for @Builder on methods with a generified return type. Fixes #1420
2017-12-12 02:42:14 +01:00
Roel Spilker
f2530ab37e
handle @Builder.Default on generic fields. Fixes #1527
2017-12-12 01:04:20 +01:00
Reinier Zwitserloot
be0a9ec2ed
‘fixed’ ecj testing on JDK9 by requiring that you download the Oracle8 rt.jar. Fortunately, we already had an optional ant task to fetch this. I’ve simply made it less optional.
2017-12-11 21:28:46 +01:00
Reinier Zwitserloot
ab8e14736f
[JDK9] fixing delombok’s comment integration in JDK9.
2017-12-05 00:00:08 +01:00
Roel Spilker
003832670e
delombok no longer prints generated outer-instance constructor parameters, fixes #1521
2017-12-04 22:28:21 +01:00
Reinier Zwitserloot
9aac454aec
fixing tests to account for generation of javax.annotation.Generated and ConstructorProperties being default-off.
2017-12-04 21:41:47 +01:00
Roel Spilker
045638ec1f
Generate correct hashCode when callSuper and no fields included. Fixes #1505
2017-11-06 23:46:09 +01:00
Roel Spilker
438095f587
Merge pull request #1311 from askoning/testsOnLinux
...
Several minor fixes to make 'ant test' work more reliably on other systems
2017-09-18 23:40:08 +02:00
Roel Spilker
afb1fb8888
Rename class in test file
2017-09-18 23:19:25 +02:00
Roel Spilker
4597e069dc
Merge branch 'master' of https://github.com/kchirls/lombok into kchirls-master
...
Fixes #869 , fixes #1018
2017-09-18 22:56:16 +02:00
Reinier Zwitserloot
9094158a7c
Fixed some exotic singular cases that were being autosingularized incorrectly.
2017-07-04 02:18:58 +02:00
Reinier Zwitserloot
4ee9215e7b
Added some broken autosingulars.
2017-07-03 23:41:07 +02:00
Roel Spilker
077ab5aed5
Add test to make sure we don't add a super call if the type explicitly extends Object
2017-06-19 23:28:18 +02:00
Roel Spilker
4e75ed8f86
update tests
2017-05-16 00:35:27 +02:00
Roel Spilker
7d42d8c620
[i1351] Warning on initialized non-final field in Builder was wrong
2017-05-16 00:35:16 +02:00
Reinier Zwitserloot
164beb36be
Fixed issue #1342 : builder now marks generated stuff as deprecated if appropriate.
2017-03-23 01:17:28 +01:00
Roel Spilker
ae54fa51ac
[i1180] generate ConstructorProperties also for (package) private constructors
2017-03-23 01:07:56 +01:00
Roel Spilker
969ed9125e
[i1329] respect configuration for field access when generating equals, hashCode and toString from Data and Value
2017-03-23 00:16:47 +01:00
Reinier Zwitserloot
3b1792c397
Added tests to check warnings/errors emitted by Builder.Default support.
2017-03-22 23:32:28 +01:00
Roel Spilker
1db7052464
[jdk9] Workaround for a weird casting issue that shows up for singularizer support.
2017-03-22 22:24:12 +01:00
Reinier Zwitserloot
bf54986e8a
Fixing issue #1201 : Builder now supports defaults!
2017-03-20 22:54:36 +01:00
Kevin Chirls
78e526690c
Updates for pull request #1284 . Fix for issues #869 and #1018 .
...
Added name to AUTHORS file. Added ECJ fix and test. Made one of the
variables final to also verify the final error case.
2017-03-15 10:09:04 -07:00
Kevin Chirls
d146f36268
Merge remote-tracking branch 'rzwitserloot/master'
2017-03-15 09:26:36 -07:00
Reinier Zwitserloot
a2c10c70fa
removed the suppressConstructorProperties param.
2017-03-07 01:12:28 +01:00
Reinier Zwitserloot
d05d037433
Fixed issue #778 : problems with onX if the annotation to be added has named args.
2017-03-07 01:12:24 +01:00
Reinier Zwitserloot
8bfbd7fa84
fixded the version mess in the test framework.
2017-03-07 01:12:24 +01:00
Reinier Zwitserloot
eb91f71e83
Added support for restricting tests to certain platforms (ecj, javac)
2017-03-06 23:34:52 +01:00
Sander Koning
1244721734
Rename a set of case-differing transformation tests to make them work on case-sensitive file systems.
2017-02-22 10:19:01 +01:00
Sander Koning
233400eacb
Make tests run if no (eclipse-generated?) bin/ folder exists
2017-02-22 10:17:30 +01:00
Reinier Zwitserloot
b7cede3c27
Reproduced issue #1132 (javac only); self-ref generics doesn’t work in @Builder in javac.
2017-02-17 00:27:43 +01:00
Reinier Zwitserloot
74603cd9d3
Fixing issue #1298 : @Builder with recursive generics didn’t work in javac/delombok.
2017-02-16 23:45:28 +01:00
Reinier Zwitserloot
fe3490328a
ExoticJava was missing a marker for java7+; as it contains ARM construct, it needs that.
2017-02-16 23:45:28 +01:00
Reinier Zwitserloot
c096cbc65a
Fixed versionmatching for our test framework.
2017-02-16 23:45:28 +01:00
Reinier Zwitserloot
8ec7abf996
Reproduces the bug with recursive generics in builder (issue #1298 ).
2017-02-16 22:16:34 +01:00
Reinier Zwitserloot
a38b41f100
Added a test case to highlight issue #1302 : @Builder on non-static inner classes (or constructors of non-static inner classes) doesn't work.
2017-02-16 22:04:08 +01:00
Roel Spilker
2335512c8e
[i1274] Add outer name to type name for nested types in equals.
2017-02-10 00:10:17 +01:00
Roel Spilker
70f77f928a
[i1014] Only add lombok.Generated if it is explicitly turned on
2017-02-09 22:52:38 +01:00
Kevin Chirls
f765730526
Fix for issues #869 and #1018
...
Generates the null check on the constructor parameter instead of the
instance field. Fix for issues #869 and #1018 .
2017-01-31 20:08:41 -08:00
Roel Spilker
9e4292dae4
add @lombok.Generated to generated classes, methods and fields
2017-01-06 01:05:16 +01:00
Roel Spilker
d1ee4d5809
remove EncodingUtf8 test from ecj
2017-01-05 21:32:07 +01:00
Roel Spilker
cf82dcfb80
Fixes #1236 : Getter(lazy=true) now emits an error when used on a transient field
2016-12-05 23:41:38 +01:00
Roel Spilker
0727c8bfd3
Fixes #1254 : Value and FieldDefaults should skip static fields
2016-12-05 22:23:39 +01:00
Roel Spilker
7969951125
Merge pull request #1235 from bulgakovalexander/bugfix/builderWithTolerate
...
Bugfix/builder with tolerate
2016-11-22 00:52:51 +01:00
Roel Spilker
cce6f39389
Merge pull request #1231 from bulgakovalexander/bugfix/NoArgsConstructorForce
...
fix of the issue 1228
2016-11-22 00:49:40 +01:00
Roel Spilker
d6f1116108
var can now also be configured to emit a warning when used.
2016-11-22 00:37:07 +01:00
Bulgakov Alexander
105c32f4b6
fix of the issue 1230. @Tolerate not working for @Builder methods?
2016-11-13 22:41:18 +03:00
Bulgakov Alexander
69eeb9edc7
a initialization of variable like "var o = null;" will throw the compile time error "variable initializer is 'null'"
2016-11-12 23:04:48 +03:00
Bulgakov Alexander
d317eda711
fix for the issue 1228. @NoArgsConstructor(force = true) fails on primitive arrays in Eclipse
2016-11-11 20:22:12 +03:00