Skip to content

Commit

Permalink
Remove obsolete TODOs in DaggerSuperficialValidationTest.
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 677901374
  • Loading branch information
bcorso authored and Dagger Team committed Sep 23, 2024
1 parent 843a18e commit b2eb30f
Showing 1 changed file with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void missingTypeParameter() {
"class TestClass<T : MissingType>"),
(processingEnv, superficialValidation) -> {
if (isKAPT(processingEnv)) {
// TODO(b/268536260): Figure out why XProcessing Testing infra fails when using KAPT.
// The KAPT java stub doesn't reference the MissingType symbol (b/268536260#comment2).
return;
}
XTypeElement testClassElement = processingEnv.findTypeElement("test.TestClass");
Expand Down Expand Up @@ -402,7 +402,7 @@ public void missingIntersection() {
"class TestClass<T> where T: Number, T: Missing"),
(processingEnv, superficialValidation) -> {
if (isKAPT(processingEnv)) {
// TODO(b/268536260): Figure out why XProcessing Testing infra fails when using KAPT.
// The KAPT java stub doesn't reference the MissingType symbol (b/268536260#comment2).
return;
}
XTypeElement testClassElement = processingEnv.findTypeElement("test.TestClass");
Expand Down Expand Up @@ -454,13 +454,6 @@ public void invalidAnnotationValue() {
"}"),
(processingEnv, superficialValidation) -> {
XTypeElement testClassElement = processingEnv.findTypeElement("test.Outer.TestClass");
if (processingEnv.getBackend() == XProcessingEnv.Backend.KSP
&& sourceKind == SourceKind.KOTLIN) {
// TODO(b/269364338): When using kotlin source with KSP the MissingType annotation value
// appears to be missing so validating this element does not cause the expected failure.
superficialValidation.validateElement(testClassElement);
return;
}
ValidationException exception =
assertThrows(
ValidationException.KnownErrorType.class,
Expand Down Expand Up @@ -512,10 +505,8 @@ public void invalidAnnotationValueOnParameter() {
" )",
"}"),
(processingEnv, superficialValidation) -> {
if (sourceKind == SourceKind.KOTLIN) {
// TODO(b/268536260): Figure out why XProcessing Testing infra fails when using KAPT.
// TODO(b/269364338): When using kotlin source the MissingType annotation value appears
// to be missing so validating this element does not cause the expected failure.
if (isKAPT(processingEnv)) {
// The KAPT java stub doesn't reference the MissingType symbol (b/268536260#comment2).
return;
}
XTypeElement testClassElement = processingEnv.findTypeElement("test.Outer.TestClass");
Expand Down

0 comments on commit b2eb30f

Please sign in to comment.