久久久久久久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?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

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

                  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編譯.

                  推薦答案

                  在實現接口聲明的方法的方法上使用 @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 項目設置為使用 Java 6 JRE,并且源兼容性"設置為 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. 在那里,將編譯器合規級別"設置為 1.6.

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

                  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.

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

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

                  相關文檔推薦

                  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 操作數的三元表達式的類型是什么?)
                  Read a text file and store every single character occurrence(讀取文本文件并存儲出現的每個字符)
                  Why do I need to explicitly cast char primitives on byte and short?(為什么我需要在 byte 和 short 上顯式轉換 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'>

                            主站蜘蛛池模板: av网站观看| 国产精品视频导航 | 亚洲综合在 | 午夜电影网 | 一区影视 | 久久久精品一区二区 | 中文字幕免费在线 | 超碰在线免费av | 成人99 | 请别相信他免费喜剧电影在线观看 | 午夜欧美 | 婷婷福利视频导航 | 欧美中文字幕一区二区三区亚洲 | 精彩视频一区二区三区 | 国产视频一区二区三区四区五区 | 久久久久久99 | a级免费黄色片 | 亚洲国产精品成人无久久精品 | 亚洲天堂免费在线 | 国产成人a亚洲精品 | 精品久久久久久久人人人人传媒 | 精品一区二区三区在线观看 | 日本福利视频免费观看 | 亚洲免费一区二区 | 久久不卡| 免费av在线网站 | 天天草夜夜骑 | 91国在线观看 | 伊人色综合久久天天五月婷 | 视频一区在线观看 | 久热中文字幕 | 亚洲一区中文字幕在线观看 | 久久精品色欧美aⅴ一区二区 | 黄色在线| 中文字幕乱码一区二区三区 | 国产成人精品在线 | 国产精品日日摸夜夜添夜夜av | 日韩欧美精品在线 | 久久久欧洲| 久久久国产精品一区 | 日韩在线观看中文字幕 |