From 0a17f4926766e9af26c0ed52b49cb3d23de63bb9 Mon Sep 17 00:00:00 2001 From: Jeongmin Yu Date: Sat, 10 Aug 2024 10:29:03 +0900 Subject: [PATCH] Fix typos in comments and error messages Signed-off-by: Jeongmin Yu --- .../operator/api/config/ConfigurationService.java | 2 +- .../operator/config/runtime/TypeParameterResolver.java | 4 ++-- .../StandaloneDependentTestReconciler.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java b/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java index 92859421eb..2deef93e2e 100644 --- a/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java +++ b/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ConfigurationService.java @@ -392,7 +392,7 @@ default boolean previousAnnotationForDependentResourcesEventFiltering() { *

* Disabled by default as Kubernetes does not support, and discourages, this interpretation of * resourceVersions. Enable only if your api server event processing seems to lag the operator - * logic and you want to further minimize the the amount of work done / updates issued by the + * logic and you want to further minimize the amount of work done / updates issued by the * operator. * * @since 4.5.0 diff --git a/operator-framework/src/main/java/io/javaoperatorsdk/operator/config/runtime/TypeParameterResolver.java b/operator-framework/src/main/java/io/javaoperatorsdk/operator/config/runtime/TypeParameterResolver.java index 82f46dcdf6..1ecf8ffb81 100644 --- a/operator-framework/src/main/java/io/javaoperatorsdk/operator/config/runtime/TypeParameterResolver.java +++ b/operator-framework/src/main/java/io/javaoperatorsdk/operator/config/runtime/TypeParameterResolver.java @@ -33,8 +33,8 @@ public TypeParameterResolver(DeclaredType interestedClass, int interestedTypeArg * can be passed. * @param declaredType Class or Interface which extends or implements the interestedClass, and the * interest is getting the actual declared type is used. - * @return the type of the parameter if it can be resolved from the the given declareType, - * otherwise it returns null + * @return the type of the parameter if it can be resolved from the given declareType, otherwise + * it returns null */ public TypeMirror resolve(Types typeUtils, DeclaredType declaredType) { final var chain = findChain(typeUtils, declaredType); diff --git a/operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/standalonedependent/StandaloneDependentTestReconciler.java b/operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/standalonedependent/StandaloneDependentTestReconciler.java index 77fcf0b85d..3798fdbcbb 100644 --- a/operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/standalonedependent/StandaloneDependentTestReconciler.java +++ b/operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/standalonedependent/StandaloneDependentTestReconciler.java @@ -43,7 +43,7 @@ public UpdateControl reconcile( if (deployment.get().getSpec().getReplicas() != primary.getSpec().getReplicaCount()) { // see https://github.com/operator-framework/java-operator-sdk/issues/924 - throw new IllegalStateException("Something went wrong withe the cache mechanism."); + throw new IllegalStateException("Something went wrong with the cache mechanism."); } return UpdateControl.noUpdate(); }