简体   繁体   中英

Set warning as error in eclipse juno IDE

I want to set warning as error in my Eclipse Juno IDE.

public class Main {

    public static void main(String[] args) {
        TryRefactoring try1 = new TryRefactoring();//warning shown here
    } 
}

but I want to set this warning show me as error in my IDE ?

In eclipse if you right click on your Project in the Package Explorer, then go to properties -> Java Compiler -> Errors/Warnings. You can then manually change which compiler findings appear as warnings/errors/ignored etc...

I will update @Matthew Ertel's answer to April, 2021.

Menu Window > Preferences > Java > Compiler > Error/Warnings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM