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 16
16
public class ControllerUtils {
17
17
18
18
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" ;
21
20
22
21
// this is just to support testing, this way we don't try to create class multiple times in memory with same name.
23
22
// note that other solution is to add a random string to doneable class name
@@ -29,7 +28,7 @@ static String getFinalizer(ResourceController controller) {
29
28
if (!Controller .NULL .equals (annotationFinalizerName )) {
30
29
return annotationFinalizerName ;
31
30
}
32
- final String crdName = getAnnotation (controller ).crdName () + "/finalizer" ;
31
+ final String crdName = getAnnotation (controller ).crdName () + FINALIZER_NAME_SUFFIX ;
33
32
return crdName ;
34
33
}
35
34
You can’t perform that action at this time.
0 commit comments