Skip to content

Commit

Permalink
fix: prepare for stricter types in Fabric8 6.9.2
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Laprun <claprun@redhat.com>
  • Loading branch information
metacosm committed Nov 9, 2023
1 parent 4456a0e commit 409e4ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ boolean scheduleForGenerationIfNeeded(CustomResourceAugmentedClassInfo crInfo,
return scheduleCurrent;
}

@SuppressWarnings("rawtypes")
public void withCustomResource(Class<? extends CustomResource> crClass, String crdName, String associatedControllerName) {
public void withCustomResource(Class<? extends CustomResource<?, ?>> crClass, String crdName,
String associatedControllerName) {
// first check if the CR is not filtered out
if (crdConfiguration.excludeResources.map(excluded -> excluded.contains(crClass.getName())).orElse(false)) {
log.infov("CRD generation was skipped for ''{0}'' because it was excluded from generation", crClass.getName());
Expand Down

0 comments on commit 409e4ee

Please sign in to comment.