File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
operator-framework/src/main/java/io/javaoperatorsdk/operator Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1616public class ControllerUtils {
1717
1818 private final static double JAVA_VERSION = Double .parseDouble (System .getProperty ("java.specification.version" ));
19-
20- private final static Logger log = LoggerFactory .getLogger (ControllerUtils .class );
19+ private static final String FINALIZER_NAME_SUFFIX = "/finalizer" ;
2120
2221 // this is just to support testing, this way we don't try to create class multiple times in memory with same name.
2322 // note that other solution is to add a random string to doneable class name
@@ -29,7 +28,7 @@ static String getFinalizer(ResourceController controller) {
2928 if (!Controller .NULL .equals (annotationFinalizerName )) {
3029 return annotationFinalizerName ;
3130 }
32- final String crdName = getAnnotation (controller ).crdName () + "/finalizer" ;
31+ final String crdName = getAnnotation (controller ).crdName () + FINALIZER_NAME_SUFFIX ;
3332 return crdName ;
3433 }
3534
You can’t perform that action at this time.
0 commit comments