Skip to content

Commit 2e7eef1

Browse files
authored
fix: typos in documentation files (#3186)
* Update CannotSubtractException.java * Update CachingTest.java * Update App.java * Update caching.urm.puml * Update update-method.urm.puml
1 parent be08156 commit 2e7eef1

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Diff for: caching/etc/caching.urm.puml

+2-2
Original file line numberDiff line numberDiff 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
116116
AppManager --> "-cachingPolicy" CachingPolicy
117117
Node --> "-userAccount" UserAccount
118118
CacheStore --> "-cache" LruCache
119-
@enduml
119+
@enduml

Diff for: caching/src/main/java/com/iluwatar/caching/App.java

+2-2
Original file line numberDiff line numberDiff 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());

Diff for: caching/src/test/java/com/iluwatar/caching/CachingTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ void testReadThroughAndWriteBehindStrategy() {
6868
@Test
6969
void testCacheAsideStrategy() {
7070
assertNotNull(app);
71-
app.useCacheAsideStategy();
71+
app.useCacheAsideStrategy();
7272
}
7373
}

Diff for: money/src/main/java/com/iluwatar/CannotSubtractException.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package 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
*/
55
public class CannotSubtractException extends Exception {
66
/**
@@ -12,4 +12,4 @@ public CannotSubtractException(String message) {
1212
super(message);
1313
}
1414

15-
}
15+
}

Diff for: update-method/etc/update-method.urm.puml

+2-2
Original file line numberDiff line numberDiff 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 {
4848
World --> "-entities" Entity
4949
Skeleton --|> Entity
5050
Statue --|> Entity
51-
@enduml
51+
@enduml

0 commit comments

Comments
 (0)