Skip to content

Commit a64b097

Browse files
committed
naming fixes
1 parent c4647a1 commit a64b097

File tree

15 files changed

+13
-12
lines changed

15 files changed

+13
-12
lines changed

caffein-bounded-cache-support/pom.xml renamed to caffeine-bounded-cache-support/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

12-
<artifactId>caffein-bounded-cache-support</artifactId>
13-
<name>Operator SDK - Caffein Bounded Cache Support</name>
12+
<artifactId>caffeine-bounded-cache-support</artifactId>
13+
<name>Operator SDK - Caffeine Bounded Cache Support</name>
1414

1515
<properties>
1616
<maven.compiler.source>11</maven.compiler.source>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
/**
66
* Caffein cache wrapper to be used in a {@link BoundedItemStore}
77
*/
8-
public class CaffeinBoundedCache<K, R> implements BoundedCache<K, R> {
8+
public class CaffeineBoundedCache<K, R> implements BoundedCache<K, R> {
99

1010
private Cache<K, R> cache;
1111

12-
public CaffeinBoundedCache(Cache<K, R> cache) {
12+
public CaffeineBoundedCache(Cache<K, R> cache) {
1313
this.cache = cache;
1414
}
1515

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
* fetched and populated to the cache, and will remain there for some time, for a subsequent
2020
* reconciliations.
2121
*/
22-
public class CaffeinBoundedItemStores {
22+
public class CaffeineBoundedItemStores {
2323

24-
private CaffeinBoundedItemStores() {}
24+
private CaffeineBoundedItemStores() {}
2525

2626
/**
2727
* @param client Kubernetes Client
@@ -41,7 +41,7 @@ public static <R extends HasMetadata> BoundedItemStore<R> boundedItemStore(
4141

4242
public static <R extends HasMetadata> BoundedItemStore<R> boundedItemStore(
4343
KubernetesClient client, Class<R> rClass, Cache<String, R> cache) {
44-
return new BoundedItemStore<>(new CaffeinBoundedCache<>(cache), rClass, client);
44+
return new BoundedItemStore<>(new CaffeineBoundedCache<>(cache), rClass, client);
4545
}
4646

4747
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import static io.javaoperatorsdk.operator.processing.event.source.cache.sample.AbstractTestReconciler.boundedItemStore;
1515

16-
public class CaffeinBoundedCacheClusterScopeIT
16+
public class CaffeineBoundedCacheClusterScopeIT
1717
extends BoundedCacheTestBase<BoundedCacheClusterScopeTestCustomResource> {
1818

1919
@RegisterExtension
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
import static io.javaoperatorsdk.operator.processing.event.source.cache.sample.AbstractTestReconciler.boundedItemStore;
1515

16-
class CaffeinBoundedCacheNamespacedIT extends BoundedCacheTestBase<BoundedCacheTestCustomResource> {
16+
class CaffeineBoundedCacheNamespacedIT
17+
extends BoundedCacheTestBase<BoundedCacheTestCustomResource> {
1718

1819
@RegisterExtension
1920
LocallyRunOperatorExtension extension =
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import io.javaoperatorsdk.operator.junit.KubernetesClientAware;
1717
import io.javaoperatorsdk.operator.processing.event.source.EventSource;
1818
import io.javaoperatorsdk.operator.processing.event.source.cache.BoundedItemStore;
19-
import io.javaoperatorsdk.operator.processing.event.source.cache.CaffeinBoundedItemStores;
19+
import io.javaoperatorsdk.operator.processing.event.source.cache.CaffeineBoundedItemStores;
2020
import io.javaoperatorsdk.operator.processing.event.source.cache.sample.clusterscope.BoundedCacheClusterScopeTestReconciler;
2121
import io.javaoperatorsdk.operator.processing.event.source.cache.sample.namespacescope.BoundedCacheTestSpec;
2222
import io.javaoperatorsdk.operator.processing.event.source.cache.sample.namespacescope.BoundedCacheTestStatus;
@@ -112,6 +112,6 @@ public static <R extends HasMetadata> BoundedItemStore<R> boundedItemStore(
112112
.expireAfterAccess(accessExpireDuration)
113113
.maximumSize(cacheMaxSize)
114114
.build();
115-
return CaffeinBoundedItemStores.boundedItemStore(client, rClass, cache);
115+
return CaffeineBoundedItemStores.boundedItemStore(client, rClass, cache);
116116
}
117117
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<module>operator-framework</module>
8383
<module>micrometer-support</module>
8484
<module>sample-operators</module>
85-
<module>caffein-bounded-cache-support</module>
85+
<module>caffeine-bounded-cache-support</module>
8686
</modules>
8787

8888

0 commit comments

Comments
 (0)