File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
main/java/com/iluwatar/caching
test/java/com/iluwatar/caching
money/src/main/java/com/iluwatar Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ package com.iluwatar.caching {
1313 - LOGGER : Logger {static}
1414 + App ()
1515 + main(args : String[]) {static}
16- + useCacheAsideStategy ()
16+ + useCacheAsideStrategy ()
1717 + useReadAndWriteThroughStrategy ()
1818 + useReadThroughAndWriteAroundStrategy ()
1919 + useReadThroughAndWriteBehindStrategy ()
@@ -116,4 +116,4 @@ Node --> "-previous" Node
116116AppManager --> "- cachingPolicy " CachingPolicy
117117Node --> "- userAccount " UserAccount
118118CacheStore --> "- cache " LruCache
119- @enduml
119+ @enduml
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public static void main(final String[] args) {
133133 LOGGER .info (splitLine );
134134 app .useReadThroughAndWriteBehindStrategy ();
135135 LOGGER .info (splitLine );
136- app .useCacheAsideStategy ();
136+ app .useCacheAsideStrategy ();
137137 LOGGER .info (splitLine );
138138 }
139139
@@ -224,7 +224,7 @@ public void useReadThroughAndWriteBehindStrategy() {
224224 /**
225225 * Cache-Aside.
226226 */
227- public void useCacheAsideStategy () {
227+ public void useCacheAsideStrategy () {
228228 LOGGER .info ("# CachingPolicy.ASIDE" );
229229 appManager .initCachingPolicy (CachingPolicy .ASIDE );
230230 LOGGER .info (appManager .printCacheContent ());
Original file line number Diff line number Diff line change @@ -68,6 +68,6 @@ void testReadThroughAndWriteBehindStrategy() {
6868 @ Test
6969 void testCacheAsideStrategy () {
7070 assertNotNull (app );
71- app .useCacheAsideStategy ();
71+ app .useCacheAsideStrategy ();
7272 }
7373}
Original file line number Diff line number Diff line change 11package com .iluwatar ;
22/**
3- * An exception for when the user tries to subtract two diffrent currencies or subtract an amount he doesn't have.
3+ * An exception for when the user tries to subtract two different currencies or subtract an amount he doesn't have.
44 */
55public class CannotSubtractException extends Exception {
66 /**
@@ -12,4 +12,4 @@ public CannotSubtractException(String message) {
1212 super (message );
1313 }
1414
15- }
15+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ package com.iluwatar.updatemethod {
2020 - PATROLLING_RIGHT_BOUNDING : int {static}
2121 # patrollingLeft : boolean
2222 + Skeleton(id : int)
23- + Skeleton(id : int, postition : int)
23+ + Skeleton(id : int, position : int)
2424 + update ()
2525 }
2626 class Statue {
@@ -48,4 +48,4 @@ package com.iluwatar.updatemethod {
4848World --> "- entities " Entity
4949Skeleton --|> Entity
5050Statue --|> Entity
51- @enduml
51+ @enduml
You can’t perform that action at this time.
0 commit comments