@@ -46,7 +46,7 @@ public void start() {
4646 * Registers the specified controller with this operator.
4747 *
4848 * @param controller the controller to register
49- * @param <R> the {@code CustomResource} type associated with the controller
49+ * @param <R> the {@code CustomResource} type associated with the controller
5050 * @throws OperatorException if a problem occurred during the registration process
5151 */
5252 public <R extends CustomResource > void register (ResourceController <R > controller )
@@ -56,13 +56,14 @@ public <R extends CustomResource> void register(ResourceController<R> controller
5656
5757 /**
5858 * Registers the specified controller with this operator, overriding its default configuration by
59- * the specified one (usually created via {@link io.javaoperatorsdk.operator.api.config.ControllerConfigurationOverrider#override(ControllerConfiguration)},
59+ * the specified one (usually created via {@link
60+ * io.javaoperatorsdk.operator.api.config.ControllerConfigurationOverrider#override(ControllerConfiguration)},
6061 * passing it the controller's original configuration.
6162 *
62- * @param controller the controller to register
63+ * @param controller the controller to register
6364 * @param configuration the configuration with which we want to register the controller, if {@code
64- * null}, the controller's orginal configuration is used
65- * @param <R> the {@code CustomResource} type associated with the controller
65+ * null}, the controller's orginal configuration is used
66+ * @param <R> the {@code CustomResource} type associated with the controller
6667 * @throws OperatorException if a problem occurred during the registration process
6768 */
6869 public <R extends CustomResource > void register (
@@ -82,7 +83,7 @@ public <R extends CustomResource> void register(
8283 }
8384
8485 final var retry = GenericRetry .fromConfiguration (configuration .getRetryConfiguration ());
85- final var targetNamespaces = configuration .getNamespaces ().toArray (new String []{});
86+ final var targetNamespaces = configuration .getNamespaces ().toArray (new String [] {});
8687 Class <R > resClass = configuration .getCustomResourceClass ();
8788 String finalizer = configuration .getFinalizer ();
8889 final var client = k8sClient .customResources (resClass );
@@ -97,8 +98,11 @@ public <R extends CustomResource> void register(
9798 final var controllerName = configuration .getName ();
9899 if (crd == null ) {
99100 throw new OperatorException (
100- "'" + crdName + "' CRD was not found on the cluster, controller "
101- + controllerName + " cannot be registered" );
101+ "'"
102+ + crdName
103+ + "' CRD was not found on the cluster, controller "
104+ + controllerName
105+ + " cannot be registered" );
102106 }
103107
104108 CustomResourceCache customResourceCache = new CustomResourceCache ();
@@ -141,7 +145,7 @@ private CustomResourceEventSource createCustomResourceEventSource(
141145 CustomResourceEventSource customResourceEventSource =
142146 watchAllNamespaces
143147 ? CustomResourceEventSource .customResourceEventSourceForAllNamespaces (
144- customResourceCache , client , generationAware , finalizer )
148+ customResourceCache , client , generationAware , finalizer )
145149 : CustomResourceEventSource .customResourceEventSourceForTargetNamespaces (
146150 customResourceCache , client , targetNamespaces , generationAware , finalizer );
147151
0 commit comments