aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-25 02:22:04 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-25 02:27:35 +0200
commit4d6fa80c9e332a40fa259cfb6bf6e8e791f66023 (patch)
treee33a2bf8161a4ba04a62fa4debcbe2e9b6005598
parent42107d6a8ef41ed13565b041f00a3d9e6b6c1989 (diff)
downloadlombok-4d6fa80c9e332a40fa259cfb6bf6e8e791f66023.tar.gz
lombok-4d6fa80c9e332a40fa259cfb6bf6e8e791f66023.tar.bz2
lombok-4d6fa80c9e332a40fa259cfb6bf6e8e791f66023.zip
Added changelog entry for #133: Outer.Inner instead of just Inner in toString().
-rw-r--r--doc/changelog.markdown1
-rw-r--r--src/core/lombok/eclipse/handlers/HandleToString.java2
-rw-r--r--src/core/lombok/javac/handlers/HandleToString.java2
3 files changed, 3 insertions, 2 deletions
diff --git a/doc/changelog.markdown b/doc/changelog.markdown
index 6afe1156..1d083f52 100644
--- a/doc/changelog.markdown
+++ b/doc/changelog.markdown
@@ -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)
diff --git a/src/core/lombok/eclipse/handlers/HandleToString.java b/src/core/lombok/eclipse/handlers/HandleToString.java
index 93821412..b3f4abaa 100644
--- a/src/core/lombok/eclipse/handlers/HandleToString.java
+++ b/src/core/lombok/eclipse/handlers/HandleToString.java
@@ -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;
diff --git a/src/core/lombok/javac/handlers/HandleToString.java b/src/core/lombok/javac/handlers/HandleToString.java
index 4dce4b9f..e3cb0294 100644
--- a/src/core/lombok/javac/handlers/HandleToString.java
+++ b/src/core/lombok/javac/handlers/HandleToString.java
@@ -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;