久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <tfoot id='hK0la'></tfoot>

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

        <bdo id='hK0la'></bdo><ul id='hK0la'></ul>
    1. <legend id='hK0la'><style id='hK0la'><dir id='hK0la'><q id='hK0la'></q></dir></style></legend>
    2. <i id='hK0la'><tr id='hK0la'><dt id='hK0la'><q id='hK0la'><span id='hK0la'><b id='hK0la'><form id='hK0la'><ins id='hK0la'></ins><ul id='hK0la'></ul><sub id='hK0la'></sub></form><legend id='hK0la'></legend><bdo id='hK0la'><pre id='hK0la'><center id='hK0la'></center></pre></bdo></b><th id='hK0la'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hK0la'><tfoot id='hK0la'></tfoot><dl id='hK0la'><fieldset id='hK0la'></fieldset></dl></div>
      1. 為什么 Eclipse 在接口方法上抱怨 @Override?

        Why does Eclipse complain about @Override on interface methods?(為什么 Eclipse 在接口方法上抱怨 @Override?)

          <tbody id='ggct1'></tbody>

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

              <legend id='ggct1'><style id='ggct1'><dir id='ggct1'><q id='ggct1'></q></dir></style></legend>
                • <bdo id='ggct1'></bdo><ul id='ggct1'></ul>

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

                  <tfoot id='ggct1'></tfoot>
                  本文介紹了為什么 Eclipse 在接口方法上抱怨 @Override?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個現(xiàn)有項目在覆蓋 interface 方法而不是超類方法的方法上使用 @Override.我無法在代碼中更改它,但我希望 Eclpse 停止抱怨注釋,因為我仍然可以使用 Maven 構(gòu)建.

                  I have an existing project that uses @Override on methods that override interface methods, rather than superclass methods. I cannot alter this in code, but I would like Eclpse to stop complaining about the annotation, as I can still build with Maven.

                  我將如何禁用此錯誤?

                  注意:由于項目需要,我需要為Java 1.5編譯.

                  推薦答案

                  在實現(xiàn)接口聲明的方法的方法上使用 @Override 注釋僅從 Java 6 開始有效.這是 Java 5 中的錯誤.

                  Using the @Override annotation on methods that implement those declared by an interface is only valid from Java 6 onward. It's an error in Java 5.

                  確保您的 IDE 項目設(shè)置為使用 Java 6 JRE,并且源兼容性"設(shè)置為 1.6 或更高版本:

                  Make sure that your IDE projects are setup to use a Java 6 JRE, and that the "source compatibility" is set to 1.6 or greater:

                  1. 打開窗口 > 首選項對話框
                  2. 瀏覽到 Java > 編譯器.
                  3. 在那里,將編譯器合規(guī)級別"設(shè)置為 1.6.

                  請記住,Eclipse 可以覆蓋特定項目的這些全局設(shè)置,因此也請檢查這些設(shè)置.

                  Remember that Eclipse can override these global settings for a specific project, so check those too.

                  更新:

                  Java 5 下的錯誤不僅僅是 Eclipse;直接從命令行使用 javac 會給你同樣的錯誤.它不是有效的 Java 5 源代碼.

                  The error under Java 5 isn't just with Eclipse; using javac directly from the command line will give you the same error. It is not valid Java 5 source code.

                  但是,您可以為 JDK 6 的 javac 指定 -target 1.5 選項,這將從 Java 6 源代碼生成 Java 5 版本的類文件.

                  However, you can specify the -target 1.5 option to JDK 6's javac, which will produce a Java 5 version class file from the Java 6 source code.

                  這篇關(guān)于為什么 Eclipse 在接口方法上抱怨 @Override?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  quot;Char cannot be dereferencedquot; error(“Char 不能被取消引用錯誤)
                  Java Switch Statement - Is quot;orquot;/quot;andquot; possible?(Java Switch 語句 - 是“或/“和可能的?)
                  Java Replace Character At Specific Position Of String?(Java替換字符串特定位置的字符?)
                  What is the type of a ternary expression with int and char operands?(具有 int 和 char 操作數(shù)的三元表達式的類型是什么?)
                  Read a text file and store every single character occurrence(讀取文本文件并存儲出現(xiàn)的每個字符)
                  Why do I need to explicitly cast char primitives on byte and short?(為什么我需要在 byte 和 short 上顯式轉(zhuǎn)換 char 原語?)
                • <tfoot id='GfY0Q'></tfoot>
                    <bdo id='GfY0Q'></bdo><ul id='GfY0Q'></ul>
                        <tbody id='GfY0Q'></tbody>
                      <i id='GfY0Q'><tr id='GfY0Q'><dt id='GfY0Q'><q id='GfY0Q'><span id='GfY0Q'><b id='GfY0Q'><form id='GfY0Q'><ins id='GfY0Q'></ins><ul id='GfY0Q'></ul><sub id='GfY0Q'></sub></form><legend id='GfY0Q'></legend><bdo id='GfY0Q'><pre id='GfY0Q'><center id='GfY0Q'></center></pre></bdo></b><th id='GfY0Q'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GfY0Q'><tfoot id='GfY0Q'></tfoot><dl id='GfY0Q'><fieldset id='GfY0Q'></fieldset></dl></div>
                    • <legend id='GfY0Q'><style id='GfY0Q'><dir id='GfY0Q'><q id='GfY0Q'></q></dir></style></legend>

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

                            主站蜘蛛池模板: 操bbbbb | 国产成人在线视频 | av一区二区在线观看 | av在线精品| 欧美日韩在线看 | 黄色小视频免费看 | 国产日韩中文字幕 | 久久精品av | 亚洲国产91 | 欧美在线免费 | 夜夜嗨av一区二区三区 | 亚洲区一区二 | 99久久精品国产一区二区成人 | 秋霞午夜伦理 | 九九热只有精品 | 久久精品99国产国产精 | 欧美二三区 | 香蕉成人网 | 国产成人小视频 | 国产精品国产精品国产专区不片 | 免费黄色一级视频 | 特级丰满少妇一级aaaa爱毛片 | 日本在线视频一区二区 | 国产在线观看一区 | 新香蕉视频 | 在线a| 天天色天天色 | 伊人干综合 | 一级片欧美 | wwww黄色| 成人激情在线观看 | 欧美极品视频 | 一区二区免费在线观看 | 国产精品高潮呻吟av | 国产在线一区二区 | 亚洲福利在线观看 | 激情五月激情综合网 | 中日韩毛片 | 国产做爰视频免费播放 | 午夜在线| 可以看av的网站 |