Replaced assert to if-check to avoid when dramatically changing root.
This commit is contained in:
+3
-1
@@ -53,7 +53,9 @@ public class KotlinSignatureInJavaMarkerProvider implements LineMarkerProvider {
|
||||
@Override
|
||||
public String fun(PsiElement element) {
|
||||
PsiAnnotation annotation = findKotlinSignatureAnnotation(element);
|
||||
assert annotation != null;
|
||||
|
||||
if (annotation == null) return null;
|
||||
|
||||
String signature = getKotlinSignature(annotation);
|
||||
return "Alternative Kotlin signature is available for this method:\n"
|
||||
+ StringUtil.escapeXml(signature);
|
||||
|
||||
Reference in New Issue
Block a user