/** * Returns true if casting to the given type will elicit an unchecked warning from the * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}. */ static boolean isCastingUnchecked(TypeMirror type) { return CASTING_UNCHECKED_VISITOR.visit(type, false); }
/** * Returns true if casting to the given type will elicit an unchecked warning from the * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}. */ static boolean isCastingUnchecked(TypeMirror type) { return CASTING_UNCHECKED_VISITOR.visit(type, false); }
/** * Returns true if casting to the given type will elicit an unchecked warning from the * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}. */ static boolean isCastingUnchecked(TypeMirror type) { return CASTING_UNCHECKED_VISITOR.visit(type, false); }
/** * Returns true if casting to the given type will elicit an unchecked warning from the * compiler. Only generic types such as {@code List<String>} produce such warnings. There will be * no warning if the type's only generic parameters are simple wildcards, as in {@code Map<?, ?>}. */ static boolean isCastingUnchecked(TypeMirror type) { return CASTING_UNCHECKED_VISITOR.visit(type, false); }