191: Making MockExternalAnnotationsManager not throwing exceptions in non action-required cases

This commit is contained in:
Nicolay Mitropolsky
2018-12-28 11:56:08 +03:00
parent 5d2002c742
commit 55404ea00d
@@ -51,19 +51,11 @@ class MockExternalAnnotationsManager : ExternalAnnotationsManager() {
throw UnsupportedOperationException("not implemented") throw UnsupportedOperationException("not implemented")
} }
override fun hasAnnotationRootsForFile(file: VirtualFile): Boolean { override fun hasAnnotationRootsForFile(file: VirtualFile): Boolean = false
throw UnsupportedOperationException("not implemented")
}
override fun findDefaultConstructorExternalAnnotations(aClass: PsiClass, annotationFQN: String): MutableList<PsiAnnotation> { override fun findDefaultConstructorExternalAnnotations(aClass: PsiClass, annotationFQN: String): List<PsiAnnotation> = emptyList()
throw UnsupportedOperationException("not implemented")
}
override fun findDefaultConstructorExternalAnnotations(aClass: PsiClass): MutableList<PsiAnnotation> { override fun findDefaultConstructorExternalAnnotations(aClass: PsiClass): List<PsiAnnotation> = emptyList()
throw UnsupportedOperationException("not implemented")
}
override fun findExternalAnnotations(listOwner: PsiModifierListOwner, annotationFQN: String): MutableList<PsiAnnotation> { override fun findExternalAnnotations(listOwner: PsiModifierListOwner, annotationFQN: String): List<PsiAnnotation> = emptyList()
throw UnsupportedOperationException("not implemented")
}
} }