类必须声明为抽象或实现convertToLegacyCheckingEqualizer [英] class must either be declared abstract or implement convertToLegacyCheckingEqualizer

查看:107
本文介绍了类必须声明为抽象或实现convertToLegacyCheckingEqualizer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IntelliJ 2017.1 Ultimate中编写了一个简单的测试用例.而且我在IntelliJ中看到一个绝对虚假的错误消息

I wrote a simple Test case in IntelliJ 2017.1 Ultimate. And I see an absolutely bogus error message in IntelliJ

class must either be declared abstract or implement convertToLegacyCheckingEqualizer

我的代码可以编译并运行得很好,但是IntelliJ版始终为每个测试类显示此消息.

My code compiles and runs absolutely fine but IntelliJ edition always shows this message for each and every test class.

我在Google上搜索后发现完全不令人满意的答案,例如

I googled and found totally unsatisfactory answers like

* I restarted my IDE to solve the problem
* I deleted my idea project and recreated it to solve the problem
* I cleared ivy cache to solve the problem.

此解决方案只是错误的,不能真正解决问题.

This solutions are just wrong and don't really address the problem.

推荐答案

尝试一下:在 IntelliJ 中,转到 File 菜单,然后选择使缓存无效/重新启动... 选项.在出现的对话框中,点击无效并重新启动按钮.

Give this a try: in IntelliJ, go to the File menu, then select the Invalidate Caches / Restart... option. On the resulting dialog, click the Invalidate and Restart button.

IntelliJ 重新启动后,检查是否仍然存在相同的问题.

After IntelliJ has restarted, check whether you still have the same problem.

这篇关于类必须声明为抽象或实现convertToLegacyCheckingEqualizer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆