From 2e7eef136adfc81f4797bc67039f9e8e9269bbbc Mon Sep 17 00:00:00 2001 From: Maxim Evtush <154841002+maximevtush@users.noreply.github.com> Date: Sun, 16 Feb 2025 08:16:52 +0100 Subject: [PATCH] fix: typos in documentation files (#3186) * Update CannotSubtractException.java * Update CachingTest.java * Update App.java * Update caching.urm.puml * Update update-method.urm.puml --- caching/etc/caching.urm.puml | 4 ++-- caching/src/main/java/com/iluwatar/caching/App.java | 4 ++-- caching/src/test/java/com/iluwatar/caching/CachingTest.java | 2 +- money/src/main/java/com/iluwatar/CannotSubtractException.java | 4 ++-- update-method/etc/update-method.urm.puml | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/caching/etc/caching.urm.puml b/caching/etc/caching.urm.puml index a9dae801e..f6f2e4732 100644 --- a/caching/etc/caching.urm.puml +++ b/caching/etc/caching.urm.puml @@ -13,7 +13,7 @@ package com.iluwatar.caching { - LOGGER : Logger {static} + App() + main(args : String[]) {static} - + useCacheAsideStategy() + + useCacheAsideStrategy() + useReadAndWriteThroughStrategy() + useReadThroughAndWriteAroundStrategy() + useReadThroughAndWriteBehindStrategy() @@ -116,4 +116,4 @@ Node --> "-previous" Node AppManager --> "-cachingPolicy" CachingPolicy Node --> "-userAccount" UserAccount CacheStore --> "-cache" LruCache -@enduml \ No newline at end of file +@enduml diff --git a/caching/src/main/java/com/iluwatar/caching/App.java b/caching/src/main/java/com/iluwatar/caching/App.java index 3adf7e681..563b41afc 100644 --- a/caching/src/main/java/com/iluwatar/caching/App.java +++ b/caching/src/main/java/com/iluwatar/caching/App.java @@ -133,7 +133,7 @@ public class App { LOGGER.info(splitLine); app.useReadThroughAndWriteBehindStrategy(); LOGGER.info(splitLine); - app.useCacheAsideStategy(); + app.useCacheAsideStrategy(); LOGGER.info(splitLine); } @@ -224,7 +224,7 @@ public class App { /** * Cache-Aside. */ - public void useCacheAsideStategy() { + public void useCacheAsideStrategy() { LOGGER.info("# CachingPolicy.ASIDE"); appManager.initCachingPolicy(CachingPolicy.ASIDE); LOGGER.info(appManager.printCacheContent()); diff --git a/caching/src/test/java/com/iluwatar/caching/CachingTest.java b/caching/src/test/java/com/iluwatar/caching/CachingTest.java index 0bcb83897..89c447dc1 100644 --- a/caching/src/test/java/com/iluwatar/caching/CachingTest.java +++ b/caching/src/test/java/com/iluwatar/caching/CachingTest.java @@ -68,6 +68,6 @@ class CachingTest { @Test void testCacheAsideStrategy() { assertNotNull(app); - app.useCacheAsideStategy(); + app.useCacheAsideStrategy(); } } diff --git a/money/src/main/java/com/iluwatar/CannotSubtractException.java b/money/src/main/java/com/iluwatar/CannotSubtractException.java index 881b458c0..bd83f1376 100644 --- a/money/src/main/java/com/iluwatar/CannotSubtractException.java +++ b/money/src/main/java/com/iluwatar/CannotSubtractException.java @@ -1,6 +1,6 @@ package com.iluwatar; /** - * An exception for when the user tries to subtract two diffrent currencies or subtract an amount he doesn't have. + * An exception for when the user tries to subtract two different currencies or subtract an amount he doesn't have. */ public class CannotSubtractException extends Exception { /** @@ -12,4 +12,4 @@ public class CannotSubtractException extends Exception { super(message); } -} \ No newline at end of file +} diff --git a/update-method/etc/update-method.urm.puml b/update-method/etc/update-method.urm.puml index 53d2a6eb6..7be0440f7 100644 --- a/update-method/etc/update-method.urm.puml +++ b/update-method/etc/update-method.urm.puml @@ -20,7 +20,7 @@ package com.iluwatar.updatemethod { - PATROLLING_RIGHT_BOUNDING : int {static} # patrollingLeft : boolean + Skeleton(id : int) - + Skeleton(id : int, postition : int) + + Skeleton(id : int, position : int) + update() } class Statue { @@ -48,4 +48,4 @@ package com.iluwatar.updatemethod { World --> "-entities" Entity Skeleton --|> Entity Statue --|> Entity -@enduml \ No newline at end of file +@enduml