@@ -58,7 +58,7 @@ public void start() {
5858 * Registers the specified controller with this operator.
5959 *
6060 * @param controller the controller to register
61- * @param <R> the {@code CustomResource} type associated with the controller
61+ * @param <R> the {@code CustomResource} type associated with the controller
6262 * @throws OperatorException if a problem occurred during the registration process
6363 */
6464 public <R extends CustomResource > void register (ResourceController <R > controller )
@@ -68,13 +68,14 @@ public <R extends CustomResource> void register(ResourceController<R> controller
6868
6969 /**
7070 * Registers the specified controller with this operator, overriding its default configuration by
71- * the specified one (usually created via {@link io.javaoperatorsdk.operator.api.config.ControllerConfigurationOverrider#override(ControllerConfiguration)},
71+ * the specified one (usually created via {@link
72+ * io.javaoperatorsdk.operator.api.config.ControllerConfigurationOverrider#override(ControllerConfiguration)},
7273 * passing it the controller's original configuration.
7374 *
74- * @param controller the controller to register
75+ * @param controller the controller to register
7576 * @param configuration the configuration with which we want to register the controller, if {@code
76- * null}, the controller's original configuration is used
77- * @param <R> the {@code CustomResource} type associated with the controller
77+ * null}, the controller's original configuration is used
78+ * @param <R> the {@code CustomResource} type associated with the controller
7879 * @throws OperatorException if a problem occurred during the registration process
7980 */
8081 public <R extends CustomResource > void register (
@@ -96,11 +97,10 @@ public <R extends CustomResource> void register(
9697 final var retry = GenericRetry .fromConfiguration (configuration .getRetryConfiguration ());
9798
9899 // check if we only want to watch the current namespace
99- var targetNamespaces = configuration .getNamespaces ().toArray (new String []{});
100+ var targetNamespaces = configuration .getNamespaces ().toArray (new String [] {});
100101 if (configuration .watchCurrentNamespace ()) {
101- targetNamespaces = new String []{
102- configurationService .getClientConfiguration ().getNamespace ()
103- };
102+ targetNamespaces =
103+ new String [] {configurationService .getClientConfiguration ().getNamespace ()};
104104 }
105105
106106 Class <R > resClass = configuration .getCustomResourceClass ();
@@ -171,7 +171,7 @@ private CustomResourceEventSource createCustomResourceEventSource(
171171 CustomResourceEventSource customResourceEventSource =
172172 watchAllNamespaces
173173 ? CustomResourceEventSource .customResourceEventSourceForAllNamespaces (
174- customResourceCache , client , generationAware , finalizer )
174+ customResourceCache , client , generationAware , finalizer )
175175 : CustomResourceEventSource .customResourceEventSourceForTargetNamespaces (
176176 customResourceCache , client , targetNamespaces , generationAware , finalizer );
177177
0 commit comments