<legend id='6mkJc'><style id='6mkJc'><dir id='6mkJc'><q id='6mkJc'></q></dir></style></legend>
    <i id='6mkJc'><tr id='6mkJc'><dt id='6mkJc'><q id='6mkJc'><span id='6mkJc'><b id='6mkJc'><form id='6mkJc'><ins id='6mkJc'></ins><ul id='6mkJc'></ul><sub id='6mkJc'></sub></form><legend id='6mkJc'></legend><bdo id='6mkJc'><pre id='6mkJc'><center id='6mkJc'></center></pre></bdo></b><th id='6mkJc'></th></span></q></dt></tr></i><div id='6mkJc'><tfoot id='6mkJc'></tfoot><dl id='6mkJc'><fieldset id='6mkJc'></fieldset></dl></div>
      • <bdo id='6mkJc'></bdo><ul id='6mkJc'></ul>

      <small id='6mkJc'></small><noframes id='6mkJc'>

    1. <tfoot id='6mkJc'></tfoot>

        在 javax.annotation 中找不到 @Nullable.*

        时间:2023-07-26

          <tbody id='yiOho'></tbody>
        1. <legend id='yiOho'><style id='yiOho'><dir id='yiOho'><q id='yiOho'></q></dir></style></legend>

        2. <small id='yiOho'></small><noframes id='yiOho'>

              <bdo id='yiOho'></bdo><ul id='yiOho'></ul>
            • <i id='yiOho'><tr id='yiOho'><dt id='yiOho'><q id='yiOho'><span id='yiOho'><b id='yiOho'><form id='yiOho'><ins id='yiOho'></ins><ul id='yiOho'></ul><sub id='yiOho'></sub></form><legend id='yiOho'></legend><bdo id='yiOho'><pre id='yiOho'><center id='yiOho'></center></pre></bdo></b><th id='yiOho'></th></span></q></dt></tr></i><div id='yiOho'><tfoot id='yiOho'></tfoot><dl id='yiOho'><fieldset id='yiOho'></fieldset></dl></div>

              • <tfoot id='yiOho'></tfoot>

                  本文介绍了在 javax.annotation 中找不到 @Nullable.*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想使用 @Nullable 注释来消除 NullPointerExceptions.网上找了一些教程,发现这个注解来自包javax.annotation.Nullable;但是当我导入它时会产生编译错误:找不到符号

                  I want use @Nullable annotation to eliminate NullPointerExceptions. I found some tutorials on the net, I noticed that this annotation comes from the package javax.annotation.Nullable; but when I import it a compilation error is generated: cannot find symbol

                  推荐答案

                  你需要包含这个类所在的jar.你可以找到它这里

                  You need to include a jar that this class exists in. You can find it here

                  如果使用Maven,可以添加如下依赖声明:

                  If using Maven, you can add the following dependency declaration:

                  <dependency>
                    <groupId>com.google.code.findbugs</groupId>
                    <artifactId>jsr305</artifactId>
                    <version>3.0.2</version>
                  </dependency>
                  

                  对于 Gradle:

                  dependencies {
                    testImplementation 'com.google.code.findbugs:jsr305:3.0.2'
                  }
                  

                  这篇关于在 javax.annotation 中找不到 @Nullable.*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:自定义注释作为方法记录的拦截器 下一篇:代码风格;将javadoc放在注释之前还是之后?

                  相关文章

                  最新文章

                  • <bdo id='vl5O3'></bdo><ul id='vl5O3'></ul>
                  <i id='vl5O3'><tr id='vl5O3'><dt id='vl5O3'><q id='vl5O3'><span id='vl5O3'><b id='vl5O3'><form id='vl5O3'><ins id='vl5O3'></ins><ul id='vl5O3'></ul><sub id='vl5O3'></sub></form><legend id='vl5O3'></legend><bdo id='vl5O3'><pre id='vl5O3'><center id='vl5O3'></center></pre></bdo></b><th id='vl5O3'></th></span></q></dt></tr></i><div id='vl5O3'><tfoot id='vl5O3'></tfoot><dl id='vl5O3'><fieldset id='vl5O3'></fieldset></dl></div>

                • <small id='vl5O3'></small><noframes id='vl5O3'>

                • <legend id='vl5O3'><style id='vl5O3'><dir id='vl5O3'><q id='vl5O3'></q></dir></style></legend>

                    <tfoot id='vl5O3'></tfoot>