The compiler will simply emit an unchecked conversion warning, because it doesn't know if the cast is safe or not.
编译器仅仅发出一个类型未检查转换警告,因为它不知道这种转换是否安全。
Unchecked generic type operation The compiler will issue an error or warning whenever it encounters an unchecked generic type operation.
Uncheckedgenerictypeoperation编译器每当遇到未经检查的泛型类型操作,就将发出一个错误或者警告。
Similarly, instanceof checks on naked type parameters will result in an "unchecked" warning at compile time and the check will not occur as expected at runtime.
同样,对“外露”类型参数的instance of检查将在编译时产生“unchecked”警告,而且检查将不会如期在运行时进行。
Just locate the type of warning (appearing in Figure 3 as "unchecked"), and pass it in to SuppressWarnings.
仅需要找到警告类型(图3中显示为“unchecked”),并将其传送到SuppressWarnings中。
The weakly typed API, however, cannot return correct generically typed expressions, thereby generating a compiler warning for an unchecked cast.
不过,弱类型API不能够返回正确的泛型表达式,因此生成一个编辑器来警告未检查的转换。
One Canadian hospital is warning patients about a potentially deadly problem that went unchecked for nearly two years.
加拿大一家医院提醒病人注意个潜在的致命问题,接近两年来,该问题一直没有进行检查。
One Canadian hospital is warning patients about a potentially deadly problem that went unchecked for nearly two years.
加拿大一家医院提醒病人注意个潜在的致命问题,接近两年来,该问题一直没有进行检查。
应用推荐