久久久久久久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'>

                            主站蜘蛛池模板: 成人福利影院 | 欧美精品一区二区三区四区五区 | 亚洲精品电影在线观看 | 国产精品久久久久久久久久三级 | 一级欧美| 国产主播第一页 | 精品一区二区不卡 | a视频在线 | 国产精品国产三级国产aⅴ无密码 | 国产精品高潮呻吟久久 | 男人的天堂在线视频 | 久久国产一区二区三区 | 自拍 亚洲 欧美 老师 丝袜 | 99爱视频 | 亚洲视频在线播放 | 日日干夜夜干 | 伊人无码高清 | 国产亚洲精品久久久久动 | 欧美做暖暖视频 | 欧美日韩一卡 | 天堂男人av | 日韩中文字幕一区 | 久久国产精品久久久久久 | 久久不卡日韩美女 | 国产综合精品一区二区三区 | 亚洲精品福利在线 | 99精品一区二区三区 | 国产精品久久久久久福利一牛影视 | 国产精品成人久久久久 | 中文字幕在线播放不卡 | 视频在线亚洲 | 国产视频二区 | 欧美黑人一区 | 国产精品视频一区二区三区不卡 | 成人自拍视频网站 | av日日操| 亚洲日本国产 | 欧美成人精品欧美一级 | 91在线观看免费 | 欧美又大粗又爽又黄大片视频 | 精品成人一区二区 |