<分区>
Possible Duplicate:
@SuppressWarnings for “extends String”
为什么 T extends String
被允许但给出警告?
The type parameter T should not be bounded by the final type String. Final types cannot be further extended
public class Car<T extends String>
我知道什么是 final 我知道它是有效的,因为 T 的唯一可能值可以是 String
我想知道警告。