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:
Maxim Evtush
2025-02-16 08:16:52 +01:00
committed by GitHub
parent be0815680b
commit 2e7eef136a
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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);
}
}
}
+2 -2
View File
@@ -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