<small id='0C5MR'></small><noframes id='0C5MR'>

      <legend id='0C5MR'><style id='0C5MR'><dir id='0C5MR'><q id='0C5MR'></q></dir></style></legend>

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

        Sonar 想要关闭 Stream

        Sonar wants to close the Stream(Sonar 想要关闭 Stream)

        <small id='tyksk'></small><noframes id='tyksk'>

            <tbody id='tyksk'></tbody>

              <bdo id='tyksk'></bdo><ul id='tyksk'></ul>
              <i id='tyksk'><tr id='tyksk'><dt id='tyksk'><q id='tyksk'><span id='tyksk'><b id='tyksk'><form id='tyksk'><ins id='tyksk'></ins><ul id='tyksk'></ul><sub id='tyksk'></sub></form><legend id='tyksk'></legend><bdo id='tyksk'><pre id='tyksk'><center id='tyksk'></center></pre></bdo></b><th id='tyksk'></th></span></q></dt></tr></i><div id='tyksk'><tfoot id='tyksk'></tfoot><dl id='tyksk'><fieldset id='tyksk'></fieldset></dl></div>
            • <legend id='tyksk'><style id='tyksk'><dir id='tyksk'><q id='tyksk'></q></dir></style></legend><tfoot id='tyksk'></tfoot>
                  本文介绍了Sonar 想要关闭 Stream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有下一个代码:

                  private Stream<Field> getStreamWithAccessibleFields(final Object object) {
                      return Arrays.stream(object.getClass()
                              .getDeclaredFields()).peek(field -> field.setAccessible(true));
                  }
                  

                  Sonar 向我抛出了一个问题:[MINOR] 关闭此流".鱿鱼:S2095.谁能给个建议,我该如何处理这个问题?

                  Sonar throws me an issue: [MINOR] Close this "Stream". squid:S2095. Can anybody give an advice, how I can handle this problem?

                  推荐答案

                  这是一个误报,已经修复,很快将与 SonarQube Java 3.14 一起发布.

                  This is a false positive that is already fixed and soon to be released with SonarQube Java 3.14.

                  如需进一步参考,请查看SONARJAVA-1478.

                  For further reference, please check SONARJAVA-1478.

                  这篇关于Sonar 想要关闭 Stream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Slf4j LoggerFactory.getLogger and sonarqube(Slf4j LoggerFactory.getLogger 和 sonarqube)
                  Security - Array is stored directly(安全性 - 数组直接存储)
                  SonarQube quot;Class Not Foundquot; during Main AST Scan(SonarQube“找不到类在主 AST 扫描期间)
                  Integrate Spock#39;s test with Sonar(将 Spock 的测试与声纳集成)
                  How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)
                  automatically add curly brackets to all if/else/for/while etc. in a java code-base(自动将大括号添加到 java 代码库中的所有 if/else/for/while 等)

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

                          <tbody id='3FIr6'></tbody>

                          <legend id='3FIr6'><style id='3FIr6'><dir id='3FIr6'><q id='3FIr6'></q></dir></style></legend>
                          • <bdo id='3FIr6'></bdo><ul id='3FIr6'></ul>
                            <tfoot id='3FIr6'></tfoot>

                            <small id='3FIr6'></small><noframes id='3FIr6'>