Remove support of boxed Boolean in isXxx method since that is not proper java-bean style.
If boxed Boolean needed, should be defined with getXxx pattern instead.
@@ -817,10 +817,7 @@ public class JsInteropRestrictionsChecker {
case GETTER:
TypeDescriptor returnTypeDescriptor = methodDescriptor.getReturnTypeDescriptor();
if (methodDescriptor.getName().startsWith("is")
- && !(TypeDescriptors.isPrimitiveBoolean(returnTypeDescriptor)
- // TODO(b/35880539): boxed booleans should not be allowed as return of
- // properties of the form isXXX();
- || TypeDescriptors.isJavaLangBoolean(returnTypeDescriptor))) {
+ && !TypeDescriptors.isPrimitiveBoolean(returnTypeDescriptor)) {
problems.error(
method.getSourcePosition(),
"JsProperty '%s' cannot have a non-boolean return.",
