Skip to content

Commit

Permalink
Internal changes
Browse files Browse the repository at this point in the history
RELNOTES=N/A
PiperOrigin-RevId: 431458810
  • Loading branch information
bcorso authored and Dagger Team committed Feb 28, 2022
1 parent 8450995 commit 83119ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Expand Up @@ -76,7 +76,6 @@
*/
@Reusable
public final class DaggerSuperficialValidation {

/**
* Returns the type element with the given class name or throws {@link ValidationException} if it
* is not accessible in the current compilation.
Expand All @@ -101,11 +100,7 @@ public static XTypeElement requireTypeElement(XProcessingEnv processingEnv, Stri

@Inject
DaggerSuperficialValidation(CompilerOptions compilerOptions) {
this(compilerOptions.strictSuperficialValidation());
}

private DaggerSuperficialValidation(boolean isStrictValidationEnabled) {
this.isStrictValidationEnabled = isStrictValidationEnabled;
this.isStrictValidationEnabled = compilerOptions.strictSuperficialValidation();
}

/**
Expand Down
Expand Up @@ -284,10 +284,7 @@ && hasInjectAnnotation(element)
}

// Fully validate each qualifier to ensure its values are also valid.
qualifiers.forEach(
qualifier -> {
superficialValidation.validateAnnotationOf(element, qualifier);
});
qualifiers.forEach(qualifier -> superficialValidation.validateAnnotationOf(element, qualifier));

return qualifiers.asList();
}
Expand Down

0 comments on commit 83119ea

Please sign in to comment.