Описание тега unchecked
An option "unchecked" used to turn off a javac compiler warnings about failing to use generics because it does not have enough type information to perform all type checks necessary to ensure type safety.
The term "unchecked"
means that the javac
compiler does not have enough type information to perform all type checks necessary to ensure type safety. The "unchecked"
warning is disabled, by default, though the compiler gives a hint. To see all "unchecked"
warnings, recompile with -Xlint:unchecked
.
In JDK 1.5 an annotation was introduced called SuppressWarnings
.
It could be used to insert the annotation prior to a class or method telling which sort of warning you want suppressed.
A @SuppressWarning
option unchecked
used to turn off a javac compiler warnings about failing to use generics.