mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
generate toString: javadoc detection (IDEA-150016)
This commit is contained in:
+3
-2
@@ -122,7 +122,7 @@ public class TemplateResource implements Serializable {
|
||||
*/
|
||||
@Nullable
|
||||
public String getJavaDoc() {
|
||||
int i = template.indexOf("*/");
|
||||
int i = template.trim().startsWith("/*") ? template.indexOf("*/") : -1;
|
||||
if (i == -1) {
|
||||
return null;
|
||||
}
|
||||
@@ -163,7 +163,8 @@ public class TemplateResource implements Serializable {
|
||||
}
|
||||
|
||||
private static String getMethodSignature(String template) {
|
||||
String s = after(template, "*/").trim();
|
||||
final String trimmed = template.trim();
|
||||
String s = trimmed.startsWith("/*") ? after(trimmed, "*/") : trimmed;
|
||||
|
||||
StringBuffer signature = new StringBuffer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user