mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
some diagnostics for renaming light methods (EA-32858)
This commit is contained in:
@@ -125,7 +125,11 @@ public class LightMethodBuilder extends LightElement implements PsiMethod {
|
||||
|
||||
@Override
|
||||
public PsiElement setName(@NotNull String name) throws IncorrectOperationException {
|
||||
throw new UnsupportedOperationException("Please don't rename light methods");
|
||||
final String className = myContainingClass == null ? "null" : myContainingClass.getQualifiedName();
|
||||
throw new UnsupportedOperationException("Please don't rename light methods: writable=" + isWritable() +
|
||||
"; class=" + getClass() +
|
||||
"; name=" + getName() +
|
||||
"; inClass=" + className);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user