diff options
author | Roel Spilker <r.spilker@gmail.com> | 2009-07-18 01:52:56 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2009-07-18 01:52:56 +0200 |
commit | 55dd52942e11dae5510a5a4b261b296151532e1e (patch) | |
tree | 724a11cdb8eb715847de805713dc0f7e03fde04a /src/lombok/eclipse | |
parent | de15a9d760d215b285d74a47184ca4e49c6c9268 (diff) | |
parent | a61efb8db4904a848ba69f3e87747db5883693c1 (diff) | |
download | lombok-55dd52942e11dae5510a5a4b261b296151532e1e.tar.gz lombok-55dd52942e11dae5510a5a4b261b296151532e1e.tar.bz2 lombok-55dd52942e11dae5510a5a4b261b296151532e1e.zip |
Merge branch 'master' of git@github.com:rzwitserloot/lombok
Diffstat (limited to 'src/lombok/eclipse')
-rw-r--r-- | src/lombok/eclipse/handlers/HandleCleanup.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lombok/eclipse/handlers/HandleCleanup.java b/src/lombok/eclipse/handlers/HandleCleanup.java index 29f1ec7c..a256b8e3 100644 --- a/src/lombok/eclipse/handlers/HandleCleanup.java +++ b/src/lombok/eclipse/handlers/HandleCleanup.java @@ -51,7 +51,7 @@ import org.mangosdk.spi.ProviderFor; @ProviderFor(EclipseAnnotationHandler.class) public class HandleCleanup implements EclipseAnnotationHandler<Cleanup> { public boolean handle(AnnotationValues<Cleanup> annotation, Annotation ast, Node annotationNode) { - String cleanupName = annotation.getInstance().cleanupMethod(); + String cleanupName = annotation.getInstance().value(); if ( cleanupName.length() == 0 ) { annotationNode.addError("cleanupName cannot be the empty string."); return true; @@ -146,7 +146,7 @@ public class HandleCleanup implements EclipseAnnotationHandler<Cleanup> { unsafeClose.receiver = receiver; long nameSourcePosition = (long)ast.sourceStart << 32 | ast.sourceEnd; if ( ast.memberValuePairs() != null ) for ( MemberValuePair pair : ast.memberValuePairs() ) { - if ( pair.name != null && new String(pair.name).equals("cleanupMethod") ) { + if ( pair.name != null && new String(pair.name).equals("value") ) { nameSourcePosition = (long)pair.value.sourceStart << 32 | pair.value.sourceEnd; break; } |