From 01e3d9dc4b5a88ca013f27ea212cfb9a8a22f87b Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Sat, 23 Mar 2024 11:39:30 +0100 Subject: [PATCH] fix: Fix typos (#2834) * fix typos * fix typo * fix typo * fix typos * fix typo --- README.md | 2 +- .../java/com/iluwatar/featuretoggle/pattern/Service.java | 2 +- .../src/main/java/com/iluwatar/halfsynchalfasync/App.java | 2 +- .../java/com/iluwatar/lockableobject/SwordOfAragorn.java | 4 ++-- partial-response/README.md | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6376cf30f..b9269a440 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ solve common problems when designing an application or system. Design patterns can speed up the development process by providing tested, proven development paradigms. -Reusing design patterns help prevent subtle issues that cause major +Reusing design patterns helps prevent subtle issues that cause major problems, and it also improves code readability for coders and architects who are familiar with the patterns. diff --git a/feature-toggle/src/main/java/com/iluwatar/featuretoggle/pattern/Service.java b/feature-toggle/src/main/java/com/iluwatar/featuretoggle/pattern/Service.java index 0cfaa061c..4dcc45b13 100644 --- a/feature-toggle/src/main/java/com/iluwatar/featuretoggle/pattern/Service.java +++ b/feature-toggle/src/main/java/com/iluwatar/featuretoggle/pattern/Service.java @@ -28,7 +28,7 @@ import com.iluwatar.featuretoggle.user.User; /** * Simple interfaces to allow the calling of the method to generate the welcome message for a given - * user. While there is a helper method to gather the the status of the feature toggle. In some + * user. While there is a helper method to gather the status of the feature toggle. In some * cases there is no need for the {@link Service#isEnhanced()} in {@link * com.iluwatar.featuretoggle.pattern.tieredversion.TieredFeatureToggleVersion} where the toggle is * determined by the actual {@link User}. diff --git a/half-sync-half-async/src/main/java/com/iluwatar/halfsynchalfasync/App.java b/half-sync-half-async/src/main/java/com/iluwatar/halfsynchalfasync/App.java index 7d3b401be..e9074b728 100644 --- a/half-sync-half-async/src/main/java/com/iluwatar/halfsynchalfasync/App.java +++ b/half-sync-half-async/src/main/java/com/iluwatar/halfsynchalfasync/App.java @@ -37,7 +37,7 @@ import lombok.extern.slf4j.Slf4j; * requirements. * *
INTENT
- * The intent of this pattern is to separate the the synchronous and asynchronous processing in the
+ * The intent of this pattern is to separate the synchronous and asynchronous processing in the
* concurrent application by introducing two intercommunicating layers - one for sync and one for
* async. This simplifies the programming without unduly affecting the performance.
*
diff --git a/lockable-object/src/main/java/com/iluwatar/lockableobject/SwordOfAragorn.java b/lockable-object/src/main/java/com/iluwatar/lockableobject/SwordOfAragorn.java
index a0a69f333..85a5d7df5 100644
--- a/lockable-object/src/main/java/com/iluwatar/lockableobject/SwordOfAragorn.java
+++ b/lockable-object/src/main/java/com/iluwatar/lockableobject/SwordOfAragorn.java
@@ -29,8 +29,8 @@ import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;
/**
- * An implementation of a Lockable object. This is the the Sword of Aragorn and every creature wants
- * to posses it!
+ * An implementation of a Lockable object. This is the Sword of Aragorn and every creature wants
+ * to possess it!
*/
@Slf4j
public class SwordOfAragorn implements Lockable {
diff --git a/partial-response/README.md b/partial-response/README.md
index 870fe6ff7..2729fe1b8 100644
--- a/partial-response/README.md
+++ b/partial-response/README.md
@@ -7,8 +7,8 @@ tag:
---
## Intent
-Send partial response from server to client on need basis. Client will specify the the fields
-that it need to server, instead of serving all details for resource.
+Send partial response from server to client on need basis. Client will specify the fields
+that it needs to server, instead of serving all details for resource.
## Class diagram

@@ -16,7 +16,7 @@ that it need to server, instead of serving all details for resource.
## Applicability
Use the Partial Response pattern when
-* Client need only subset of data from resource.
+* Client needs only subset of data from resource.
* To avoid too much data transfer over wire
## Credits