mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
copyright: artificial blank lines added in groovy (IDEA-135228)
This commit is contained in:
@@ -159,8 +159,11 @@ public abstract class UpdatePsiFileCopyright extends AbstractUpdateCopyright {
|
||||
return; // Nothing to do since the comment is the same
|
||||
}
|
||||
PsiElement next = getNextSibling(range.getLast());
|
||||
if (next instanceof PsiWhiteSpace && countNewline(next.getText()) > 1) {
|
||||
return;
|
||||
if (next != null) {
|
||||
final String text = next.getText();
|
||||
if (StringUtil.isEmptyOrSpaces(text) && countNewline(text) > 1) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
point = range.getFirst();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user