mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
copyright: check empty files (IDEA-51279)
This commit is contained in:
@@ -92,6 +92,10 @@ public abstract class UpdatePsiFileCopyright extends AbstractUpdateCopyright {
|
||||
}
|
||||
|
||||
protected void collectComments(PsiElement first, PsiElement last, List<PsiComment> comments) {
|
||||
if (first == last && first instanceof PsiComment) {
|
||||
comments.add((PsiComment)first);
|
||||
return;
|
||||
}
|
||||
PsiElement elem = first;
|
||||
while (elem != last && elem != null) {
|
||||
if (elem instanceof PsiComment) {
|
||||
|
||||
Reference in New Issue
Block a user