diff --git a/caching/etc/caching.urm.puml b/caching/etc/caching.urm.puml index a9dae801eb20..f6f2e4732005 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 3adf7e681f9a..563b41afcb70 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 static void main(final String[] args) { LOGGER.info(splitLine); app.useReadThroughAndWriteBehindStrategy(); LOGGER.info(splitLine); - app.useCacheAsideStategy(); + app.useCacheAsideStrategy(); LOGGER.info(splitLine); } @@ -224,7 +224,7 @@ public void useReadThroughAndWriteBehindStrategy() { /** * 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 0bcb83897d59..89c447dc1fb7 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 @@ void testReadThroughAndWriteBehindStrategy() { @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 881b458c0481..bd83f1376ec6 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 CannotSubtractException(String message) { 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 53d2a6eb6a2e..7be0440f74bc 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