aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2011-08-16 02:46:22 +0200
committerRoel Spilker <r.spilker@gmail.com>2011-08-16 02:46:22 +0200
commit14efdb09ad5ab153d2c1a1019d5f5a97c25f8249 (patch)
treeececa0cadbe76b101f081d62576c62bfe070c04c /src/core/lombok/eclipse/handlers
parent85c90ca606869d42be64d513b2a6f829712dbe27 (diff)
downloadlombok-14efdb09ad5ab153d2c1a1019d5f5a97c25f8249.tar.gz
lombok-14efdb09ad5ab153d2c1a1019d5f5a97c25f8249.tar.bz2
lombok-14efdb09ad5ab153d2c1a1019d5f5a97c25f8249.zip
Improve Extract method refactoring: you can extract method for code that also contains @SneakyThrows
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleSneakyThrows.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java b/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
index 10e92106..6c00258e 100644
--- a/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
+++ b/src/core/lombok/eclipse/handlers/HandleSneakyThrows.java
@@ -231,8 +231,10 @@ public class HandleSneakyThrows extends EclipseAnnotationHandler<SneakyThrows> {
tryStatement.catchBlocks = new Block[] { block };
// Positions for in-method generated nodes are special
- tryStatement.sourceStart = method.bodyStart;
- tryStatement.sourceEnd = method.bodyEnd;
+// tryStatement.sourceStart = method.bodyStart;
+// tryStatement.sourceEnd = method.bodyEnd;
+ tryStatement.sourceStart = pS;
+ tryStatement.sourceEnd = pE;
return tryStatement;
}