diff options
author | Roel Spilker <r.spilker@gmail.com> | 2011-08-16 02:46:22 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2011-08-16 02:46:22 +0200 |
commit | 14efdb09ad5ab153d2c1a1019d5f5a97c25f8249 (patch) | |
tree | ececa0cadbe76b101f081d62576c62bfe070c04c /src/core/lombok/eclipse/handlers | |
parent | 85c90ca606869d42be64d513b2a6f829712dbe27 (diff) | |
download | lombok-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.java | 6 |
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; } |