Warning Suppression for JDK1.4 Project

Can I suppress warnings in an Eclipse project for JDK1.4?

EDIT: Longer version. There is a project that requires JDK1.4 (no annotations). Only the way to suppress warnings that I know - using the @SuppressWarnings annotation - cannot be done in JDK1.4. Is there a way to remove some warnings in a particular method / class (not the whole project)?

+3
source share
2 answers

If you mean that you are writing Java 1.4 code and you get warnings because you are not using generics, set the Java Compiler to 1.4. You can do this for each project or for the entire workspace.

- > - > Java- > - > = 1.4

, , .., Compiler- > Errors/Warnings. , , , , .

, , .

+5

1.4 . "" , "".

+2

Source: https://habr.com/ru/post/1697949/


All Articles