aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/javac
AgeCommit message (Collapse)Author
2009-11-24Added more thorough support for detecting we're running as an annotation ↵Reinier Zwitserloot
processor on an unsupported platform, even giving useful suggestions about what you're doing wrong when we detect you're trying to do this on eclipse. Fixes ticket #53
2009-11-08Minor bug fixes and style edits. All these were found after running findbugs ↵Reinier Zwitserloot
on the lombok sources.
2009-11-02Javadoc fixes.Reinier Zwitserloot
2009-11-02the static constructor generated by @Data wasn't public when compiling with ↵Reinier Zwitserloot
javac (but it was with eclipse). Fixes issue #63
2009-10-31Made the utility methods previously located in package private 'PKG.java' in ↵Reinier Zwitserloot
lombok.eclipe.handlers and javac.eclipse.handlers public. Renamed them to more useful names, made all methods public, added some javadoc, and renamed one or two methods to be more consistent. Talked about in google groups thread http://groups.google.com/group/project-lombok/browse_thread/thread/52085a345e77c086
2009-10-18Added the ability to get the Context object via JavacAST, useful for various ↵Reinier Zwitserloot
things, and specifically requested by David McCullars, who is working on rolling their own lombok extensions. See: http://groups.google.com/group/project-lombok/browse_thread/thread/a73972d4011a3e21
2009-10-18Removed some warnings.Reinier Zwitserloot
2009-10-18Merge branch 'master' of git@github.com:rzwitserloot/lombokReinier Zwitserloot
2009-10-18Configured warnings and solved some.unknown
2009-10-17Fix: getters and setters for $foo fields (including our own $lock!) are now ↵Reinier Zwitserloot
no longer generated.
2009-10-17trivial javadoc fixReinier Zwitserloot
2009-10-16Fixes issue #56 - annotations with shorthand parameters on methods in ↵Reinier Zwitserloot
method-local classes failed to parse correctly due to a (rare) boneheaded design in the javac tree. Also had a bunch of code in doing raw introspection of the Annotation ASTNode. It wasn't doing anything other than causing bugs and cluttering the code. Removed it.
2009-10-16Switched all use of <code></code> in javadoc to {@code}.Reinier Zwitserloot
2009-10-16Fixed issue #24 by refactoring the AST.Node class - taken it out, and in the ↵Reinier Zwitserloot
process fixed a lot of type annoyance by adding more generics. Also changed coding style from for/while/if/switch/catch/do ( expr ) {} to for (expr) {}, hence the changes _everywhere_.
2009-09-15Binkley on the newsgroup spotted a bug in this code: the one-arg javacError ↵Reinier Zwitserloot
method delegated to javacWarning instead of javacError. Fixed that little oversight.
2009-09-03Added a bunch of javadoc. No other changes.Reinier Zwitserloot
2009-09-03bugfix in the javac implementation of AnnotationValues.Reinier Zwitserloot
2009-09-03Fixed a problem in AnnotationValues where 'isExplicit' always returned true.Reinier Zwitserloot
2009-09-03Added an AccessLevel.NONE to suppress generating getters and setters (useful ↵Reinier Zwitserloot
in combination with @Data). Addresses issue #37.
2009-09-03Addressed issue #32: The @EqualsAndHashCode and @ToString annotations now ↵Reinier Zwitserloot
support explicitly listing the fields to use, via the new 'of' parameter. We've also added any fields that start with $ to the default excludes list. Lombok itself can generate these fields ($lock of @Synchronized, for example), and in general they probably should count as effectively not part of the class.
2009-08-28null checks are no longer generated if you put @NonNull on primitives.Reinier Zwitserloot
2009-08-27Merge branch 'nonnull'Reinier Zwitserloot
Conflicts: src/lombok/eclipse/handlers/HandleData.java src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java src/lombok/eclipse/handlers/HandleSetter.java src/lombok/javac/handlers/HandleData.java src/lombok/javac/handlers/HandleEqualsAndHashCode.java src/lombok/javac/handlers/HandleSetter.java
2009-08-27Now @Nullable is also copied over.Reinier Zwitserloot
2009-08-27Made all parameters of all generated methods 'final'.Reinier Zwitserloot
2009-08-14The fix in previous commit has been verified, so the diagnostic messages ↵Reinier Zwitserloot
have been removed.
2009-08-12More attempts to fix NullPointerExceptions reported on the forums.Reinier Zwitserloot
http://groups.google.com/group/project-lombok/browse_thread/thread/a8d59daaf7c1ae09
2009-08-12Added an extra check for non-standard javacs.Reinier Zwitserloot
2009-08-01There was a bug in the annotation builder for javac, which would trigger ↵Reinier Zwitserloot
exceptions anytime you used a lombok annotation in implicit-value-parameter form (e.g: @Cleanup("release") instead of @Cleanup or @Cleanup(value="release"). Fixes issue #14
2009-08-01The warning for not enabling callSuper cannot be avoided, but there are ↵Reinier Zwitserloot
legal reasons for using it, so, changed it: explicitly setting 'callSuper=false' removes the warning. You only get the warning if callSuper is false because that's the default. Fixes issue #13
2009-08-01The constructors will now also add non-final fields if they have a NonNull ↵Roel Spilker
annotation The constructor will test for null-values The constructor and static constructor will copy the NonNull annotations from the fields
2009-08-01Moved the check to see if a variable is null to the PKG utility classesRoel Spilker
2009-08-01@Setter will copy all NotNull and NonNull (case-insensitive) annotations to ↵Roel Spilker
the parameter @Getter will copy them to the getter method Added @NonNull to lombok to support null-checks in the setter
2009-07-31Added support for @NonNull in the @Setter annotationRoel Spilker
2009-07-28Changed the way toString is generated to reduce the number of superfluous ↵Reinier Zwitserloot
'plus' nodes (e.g. concatenating the infix ", " and a field name literal such as "width=" into ", width=". Also removed the [] brackets from the supercall, as, if you're chaining to another lombok-generated toString, those are superfluous - lombok's toString includes parentheses already.
2009-07-27on javac: Warnings associated with specific values in annotation parameters ↵Reinier Zwitserloot
now 'point at' the right position, instead of at the entire annotation. (it already did so for errors). Fixes issue #11
2009-07-27Split off generation of equals() and hashCode() methods form @Data into a ↵Reinier Zwitserloot
new annotation, @EqualsAndHashCode. Addresses issue #8
2009-07-27[TRIVIAL]Reinier Zwitserloot
2009-07-27[TRIVIAL]Reinier Zwitserloot
2009-07-27Added support for @ToString annotation. The code for generating toStrings ↵Reinier Zwitserloot
has now moved from HandleData to the new HandleToString.
2009-07-26Addresses issue #5:Reinier Zwitserloot
hitting 'find callers' on a @Data annotation should find callers of the (static) constructor. Right now it'll find callers to the *static* constructor ONLY. Letting it find callers of the public constructor if there is no static constructor just doesn't work.
2009-07-26[TRIVIAL]Reinier Zwitserloot
2009-07-26Addresses issue #4:Reinier Zwitserloot
If boolean fields already start with a typical getter prefix (is, has, or get), lombok's @Getter will no longer generate its own prefix as well, so a field named 'hasFoo' will result in a getter named 'hasFoo()', not 'isHasFoo()'. Also, if any likely getter name already exists for a boolean, a getter will not be generated. Thus, if your field is called 'hasFoo', and you already have a method named 'isFoo', then @Getter will not generate anything (and warn, unless the getter is being generated due to @Data). This last mechanism works by taking the field name *AND* any other likely base names (defined by the field name being named as prefix+baseName, with prefix being is/has/get), and then prefixing all the likely fieldnames with is/has/get, and checking if any method with that name exists. Of course, this means weird things are going to happen if you have 2 fields named 'isFoo' and 'hasFoo', but then, you'd be a real idiot if you did that.
2009-07-18No constructor entry should be made for assigned final fieldsRoel Spilker
2009-07-18Refactored the name of the cleanup method arg to 'value'.Reinier Zwitserloot
2009-07-12More fixes to avoid erroneous "getter/setter is already there, not ↵Reinier Zwitserloot
generating it" warnings when the getter/setter already there was in fact generated by lombok, and fixed a bug in eclipse where a boolean array's getter method would be called isFoo() instead of getFoo().
2009-07-11'fixed' data up a bit by including only the final fields for the constructor.Reinier Zwitserloot
Also fixed a bug in javac's toString() generation for the @Data constructor. It did not include the transient fields.
2009-07-11The setter/getter handlers now mark themselves as not wanted to be called ↵Reinier Zwitserloot
upon anymore when reporting errors. They were logging 4 or more identical warnings per problem before this change.
2009-07-11Made 'printContent=true' work for types as well as method bodies/initializers.Reinier Zwitserloot
2009-07-06Fixed javadoc problems, and added a javadoc target to the build script.Reinier Zwitserloot
2009-07-06Last massive documentation dump. All basic javadoc is now done, though ↵Reinier Zwitserloot
especially the docs on the lombok annotations in the lombok package need far more massaging. Also added a feature to HandleSynchronized to not auto-generate the locker fields if a specific name is provided (because, imagine you typoed those. You'd never find it!)