mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 08:58:26 +00:00
fix: typos in documentation files (#3186)
* Update CannotSubtractException.java * Update CachingTest.java * Update App.java * Update caching.urm.puml * Update update-method.urm.puml
This commit is contained in:
@@ -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
|
||||
@enduml
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -68,6 +68,6 @@ class CachingTest {
|
||||
@Test
|
||||
void testCacheAsideStrategy() {
|
||||
assertNotNull(app);
|
||||
app.useCacheAsideStategy();
|
||||
app.useCacheAsideStrategy();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@enduml
|
||||
|
||||
Reference in New Issue
Block a user