Clean up warnings and polishing

This commit is contained in:
Sam Brannen
2022-07-31 14:14:56 +03:00
parent 9d1e9703ae
commit e4395f2f8b
55 changed files with 412 additions and 396 deletions

View File

@@ -33,11 +33,14 @@ import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
/**
* Java method that is instrumented by the {@link RuntimeHintsAgent}.
* <p>All their {@link RecordedInvocation invocations are recorded} by the agent at runtime.
* We can then verify that the {@link RuntimeHints} configuration
* {@link #matcher(RecordedInvocation) is matching} the runtime behavior of the codebase.
*
* <p>All {@linkplain RecordedInvocation invocations are recorded} by the agent
* at runtime. We can then verify that the {@link RuntimeHints} configuration
* {@linkplain #matcher(RecordedInvocation) matches} the runtime behavior of the
* codebase.
*
* @author Brian Clozel
* @since 6.0
* @see RuntimeHintsPredicates
*/
enum InstrumentedMethod {
@@ -390,8 +393,4 @@ enum InstrumentedMethod {
return this.hintsMatcherGenerator.apply(invocation);
}
private static Predicate<RuntimeHints> hasReturnValue(RecordedInvocation invocation) {
return runtimeHints -> invocation.getReturnValue() != null;
}
}