Skip to content

Commit a5f2134

Browse files
committed
fixes after rebase
1 parent 23402e4 commit a5f2134

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/ReconciliationDispatcher.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ public boolean isLastAttempt() {
196196
throw e;
197197
}
198198

199-
private Optional<R> updateForErrorHandling(R originalResource, R updatedResource,
200-
ErrorStatusUpdateControl<R> errorStatusUpdateControl) {
199+
private Optional<P> updateForErrorHandling(P originalResource, P updatedResource,
200+
ErrorStatusUpdateControl<P> errorStatusUpdateControl) {
201201
if (errorStatusUpdateControl.isOnlyOnChange()
202202
&& statusEqual(originalResource, updatedResource)) {
203203
return Optional.empty();
@@ -212,7 +212,8 @@ private boolean isErrorStatusHandlerPresent() {
212212
return controller.getReconciler() instanceof ErrorStatusHandler;
213213
}
214214

215-
private R updateStatusGenerationAware(R resource, R originalResource, boolean patch) {
215+
private Optional<P> updateStatusGenerationAware(P resource, P originalResource, boolean patch,
216+
boolean onlyIfChanged) {
216217
updateStatusObservedGenerationIfRequired(resource);
217218
if (onlyIfChanged && statusEqual(resource, originalResource)) {
218219
return Optional.empty();
@@ -359,7 +360,7 @@ public P removeFinalizer(P resource, String finalizer) {
359360
}
360361

361362
@SuppressWarnings("rawtypes")
362-
private boolean statusEqual(R resource, R originalResource) {
363+
private boolean statusEqual(P resource, P originalResource) {
363364
if (!(resource instanceof CustomResource)) {
364365
return false;
365366
}
@@ -368,7 +369,7 @@ private boolean statusEqual(R resource, R originalResource) {
368369
}
369370

370371
@SuppressWarnings("rawtypes")
371-
private boolean specAndMetaEqual(R resource, R originalResource) {
372+
private boolean specAndMetaEqual(P resource, P originalResource) {
372373
if (!(resource instanceof CustomResource)) {
373374
return false;
374375
}

0 commit comments

Comments
 (0)