Skip to content

Commit

Permalink
fix: typos in documentation files (#3186)
Browse files Browse the repository at this point in the history
* Update CannotSubtractException.java

* Update CachingTest.java

* Update App.java

* Update caching.urm.puml

* Update update-method.urm.puml
  • Loading branch information
maximevtush authored Feb 16, 2025
1 parent be08156 commit 2e7eef1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions caching/etc/caching.urm.puml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package com.iluwatar.caching {
- LOGGER : Logger {static}
+ App()
+ main(args : String[]) {static}
+ useCacheAsideStategy()
+ useCacheAsideStrategy()
+ useReadAndWriteThroughStrategy()
+ useReadThroughAndWriteAroundStrategy()
+ useReadThroughAndWriteBehindStrategy()
Expand Down Expand Up @@ -116,4 +116,4 @@ Node --> "-previous" Node
AppManager --> "-cachingPolicy" CachingPolicy
Node --> "-userAccount" UserAccount
CacheStore --> "-cache" LruCache
@enduml
@enduml
4 changes: 2 additions & 2 deletions caching/src/main/java/com/iluwatar/caching/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ void testReadThroughAndWriteBehindStrategy() {
@Test
void testCacheAsideStrategy() {
assertNotNull(app);
app.useCacheAsideStategy();
app.useCacheAsideStrategy();
}
}
4 changes: 2 additions & 2 deletions money/src/main/java/com/iluwatar/CannotSubtractException.java
Original file line number Diff line number Diff line change
@@ -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 {
/**
Expand All @@ -12,4 +12,4 @@ public CannotSubtractException(String message) {
super(message);
}

}
}
4 changes: 2 additions & 2 deletions update-method/etc/update-method.urm.puml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -48,4 +48,4 @@ package com.iluwatar.updatemethod {
World --> "-entities" Entity
Skeleton --|> Entity
Statue --|> Entity
@enduml
@enduml

0 comments on commit 2e7eef1

Please sign in to comment.