【问题标题】:Can't avoid Intellij throwing IllegalArgumentException with @NotNull无法避免 Intellij 使用 @NotNull 抛出 IllegalArgumentException
【发布时间】:2017-11-09 13:09:21
【问题描述】:

unchecking "Add runtime assertions for not-null annotated methods and parameters" 不起作用时,我还能做些什么吗?它一直在抛出IllegalArgumentException。我还尝试禁用@NotNull/@Nullable problemsConstant conditions & exceptions 的检查。我已经重新启动并重新启动并使缓存无效,并在Configure annotations 中切换注释。

我正在使用:

IntelliJ IDEA 2017.2.5
Build #IC-172.4343.14, built on September 26, 2017
JRE: 1.8.0_152-release-915-b12 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.4.0-98-generic

在 Ubuntu 16 上。

有什么想法吗?

【问题讨论】:

标签: java intellij-idea notnull non-nullable


【解决方案1】:

这是Java build 1.8.0_15X的功能/错误

我已经通过降级到Java build 1.8.0_25 解决了这个问题。

【讨论】:

    猜你喜欢
    • 2014-03-22
    • 1970-01-01
    • 2015-07-14
    • 1970-01-01
    • 2014-09-18
    • 2014-11-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多