Omit bounded generic warnings when type checking is disabled
@@ -415,6 +415,7 @@ public class Compiler extends AbstractCompiler implements ErrorHandler, SourceFi
options.checkTypes = true;
} else if (options.disables(DiagnosticGroups.CHECK_TYPES)) {
options.checkTypes = false;
+ options.setEnableBoundedGenerics(true);
} else if (!options.checkTypes) {
// If DiagnosticGroups did not override the plain checkTypes
// option, and checkTypes is disabled, then turn off the
