aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/eclipse/handlers
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-12-22 16:45:05 +0100
committerRoel Spilker <r.spilker@gmail.com>2021-01-14 23:54:48 +0100
commit2e5ea518cc4041f2ef79d5d9cc0f970d805b6e64 (patch)
treed46395a1cf4be1c1fe8141bcee10e91d11586d82 /src/core/lombok/eclipse/handlers
parentb8d49a884ed545176bb491b10b59dde9f481ea95 (diff)
downloadlombok-2e5ea518cc4041f2ef79d5d9cc0f970d805b6e64.tar.gz
lombok-2e5ea518cc4041f2ef79d5d9cc0f970d805b6e64.tar.bz2
lombok-2e5ea518cc4041f2ef79d5d9cc0f970d805b6e64.zip
[fixes #2443] Remove multiline Javadoc tags
Diffstat (limited to 'src/core/lombok/eclipse/handlers')
-rw-r--r--src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
index b58c2996..68ba075b 100644
--- a/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
+++ b/src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
@@ -2688,7 +2688,7 @@ public class EclipseHandlerUtil {
String out = getJavadocSection(javadoc, "GETTER");
final boolean sectionBased = out != null;
if (!sectionBased) {
- out = stripLinesWithTagFromJavadoc(stripSectionsFromJavadoc(javadoc), "@param(?:eter)?\\s+.*");
+ out = stripLinesWithTagFromJavadoc(stripSectionsFromJavadoc(javadoc), JavadocTag.PARAM);
}
return out;
}
@@ -2718,7 +2718,7 @@ public class EclipseHandlerUtil {
String out = getJavadocSection(javadoc, sectionName);
final boolean sectionBased = out != null;
if (!sectionBased) {
- out = stripLinesWithTagFromJavadoc(stripSectionsFromJavadoc(javadoc), "@returns?\\s+.*");
+ out = stripLinesWithTagFromJavadoc(stripSectionsFromJavadoc(javadoc), JavadocTag.RETURN);
}
return shouldReturnThis(node) ? addReturnsThisIfNeeded(out) : out;
}