mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 04:16:19 +00:00
Added changelog entry for #133: Outer.Inner instead of just Inner in toString().
This commit is contained in:
1 parent
42107d6a8e
commit
4d6fa80c9e
3 files changed
+3
-2
No files matched your search
@@ -19,6 +19,7 @@ Lombok Changelog
|
||||
* BUGFIX: When `@Getter` or `@Setter` is applied to a multiple field declaration, such as `@Getter int x, y;`, the annotation now applies to all fields, not just the first. [Issue #54](http://code.google.com/p/projectlombok/issues/detail?id=54)
|
||||
* ENHANCEMENT: generated `toString`, `equals` and `hashCode` methods will now use `this.getX()` and `other.getX()` instead of `this.x` and `other.x` if a suitable getter is available. This behaviour is useful for proxied classes, such as the POJOs that hibernate makes. Usage of the getters can be suppressed with `@ToString/@EqualsAndHashCode(doNotUseGetters = true)`. [Issue #110](http://code.google.com/p/projectlombok/issues/detail?id=110)
|
||||
* BUGFIX: delombok on most javacs would quit with a NoSuchFieldError if it contains <?> style wildcards anywhere in the source, as well as at least 1 lombok annotation. No longer. [Issue #134](http://code.google.com/p/projectlombok/issues/detail?id=134)
|
||||
* ENHANCEMENT: toString() on inner classes now lists the class name as `Outer.Inner` instead of just `Inner`. Addresses issue #133(http://code.google.com/p/projectlombok/issues/detail?id=133)
|
||||
|
||||
### v0.9.2 "Hailbunny" (December 15th, 2009)
|
||||
* preliminary support for lombok on NetBeans! - thanks go to Jan Lahoda from NetBeans. [Issue #20](http://code.google.com/p/projectlombok/issues/detail?id=20)
|
||||
|
||||
@@ -287,7 +287,7 @@ public class HandleToString implements EclipseAnnotationHandler<ToString> {
|
||||
String typeName = getSingleTypeName(type);
|
||||
EclipseNode upType = type.up();
|
||||
while (upType.getKind() == Kind.TYPE) {
|
||||
typeName = getSingleTypeName(upType) + "." + typeName;
|
||||
typeName = getSingleTypeName(upType) + "." + typeName;
|
||||
upType = upType.up();
|
||||
}
|
||||
return typeName;
|
||||
|
||||
@@ -242,7 +242,7 @@ public class HandleToString implements JavacAnnotationHandler<ToString> {
|
||||
String typeName = ((JCClassDecl) typeNode.get()).name.toString();
|
||||
JavacNode upType = typeNode.up();
|
||||
while (upType.getKind() == Kind.TYPE) {
|
||||
typeName = ((JCClassDecl) upType.get()).name.toString() + "." + typeName;
|
||||
typeName = ((JCClassDecl) upType.get()).name.toString() + "." + typeName;
|
||||
upType = upType.up();
|
||||
}
|
||||
return typeName;
|
||||
|
||||
Reference in new issue
Block a user