aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac/handlers/JavacHandlerUtil.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-07-28 03:10:34 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-07-28 03:10:34 +0200
commit4dbe3802fda3b317bb82bca80d7c69f58b239cfd (patch)
tree03ee93afc636ae82ed922a9150b6438dead0ee5b /src/core/lombok/javac/handlers/JavacHandlerUtil.java
parente2af5ed0c7786e01bec861f21f2e5ec3bc5ea33f (diff)
downloadlombok-4dbe3802fda3b317bb82bca80d7c69f58b239cfd.tar.gz
lombok-4dbe3802fda3b317bb82bca80d7c69f58b239cfd.tar.bz2
lombok-4dbe3802fda3b317bb82bca80d7c69f58b239cfd.zip
more progress. This one is less JDK8 compatible, but
it has major refactorings to make JDK6-8 support possibly with much prettier code.
Diffstat (limited to 'src/core/lombok/javac/handlers/JavacHandlerUtil.java')
-rw-r--r--src/core/lombok/javac/handlers/JavacHandlerUtil.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
index 630cc31a..d0673c57 100644
--- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java
+++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
@@ -1277,17 +1277,17 @@ public class JavacHandlerUtil {
*/
public static void copyJavadoc(JavacNode from, JCTree to, CopyJavadoc copyMode) {
if (copyMode == null) copyMode = CopyJavadoc.VERBATIM;
-// try {
-// JCCompilationUnit cu = ((JCCompilationUnit) from.top().get());
-// if (cu.docComments != null) {
-// String javadoc = cu.docComments.get(from.get());
-//
-// if (javadoc != null) {
-// String[] filtered = copyMode.split(javadoc);
-// cu.docComments.put(to, filtered[0]);
-// cu.docComments.put(from.get(), filtered[1]);
-// }
-// }
-// } catch (Exception ignore) {}
+ try {
+ JCCompilationUnit cu = ((JCCompilationUnit) from.top().get());
+ if (cu.docComments != null) {
+ String javadoc = cu.docComments.get(from.get());
+
+ if (javadoc != null) {
+ String[] filtered = copyMode.split(javadoc);
+ cu.docComments.put(to, filtered[0]);
+ cu.docComments.put(from.get(), filtered[1]);
+ }
+ }
+ } catch (Exception ignore) {}
}
}