Skip to content

Commit 1a59e0b

Browse files
authored
fix: use class name to ensure we always get a non-null name (#1489)
1 parent 6cca81e commit 1a59e0b

File tree

1 file changed

+1
-1
lines changed
  • operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/reconciler/dependent/DependentResource.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public interface DependentResource<R, P extends HasMetadata> extends ResourceOwn
3030
*/
3131
@SuppressWarnings("rawtypes")
3232
static String defaultNameFor(Class<? extends DependentResource> dependentResourceClass) {
33-
return dependentResourceClass.getCanonicalName();
33+
return dependentResourceClass.getName();
3434
}
3535
}

0 commit comments

Comments
 (0)