Skip to content

Commit f79782b

Browse files
fix: Fix minor typos (#2619)
Signed-off-by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io> Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
1 parent be0d5e5 commit f79782b

File tree

30 files changed

+43
-42
lines changed

30 files changed

+43
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- the line below needs to be an empty line C: (its because kramdown isnt
1+
<!-- the line below needs to be an empty line C: (its because kramdown isn't
22
that smart and dearly wants an empty line before a heading to be able to
33
display it as such, e.g. website) -->
44

aggregator-microservices/information-microservice/src/main/java/com/iluwatar/information/microservice/InformationController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public class InformationController {
3535

3636
/**
37-
* Endpoint to retrieve a product's informations.
37+
* Endpoint to retrieve a product's information.
3838
*
3939
* @return product inventory.
4040
*/

caching/src/main/java/com/iluwatar/caching/database/DbManagerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
package com.iluwatar.caching.database;
2626

2727
/**
28-
* Creates the database connection accroding the input parameter.
28+
* Creates the database connection according the input parameter.
2929
*/
3030
public final class DbManagerFactory {
3131
/**

circuit-breaker/src/main/java/com/iluwatar/circuitbreaker/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
/**
3030
* <p>
3131
* The intention of the Circuit Builder pattern is to handle remote failures robustly, which is to
32-
* mean that if a service is dependant on n number of other services, and m of them fail, we should
32+
* mean that if a service is dependent on n number of other services, and m of them fail, we should
3333
* be able to recover from that failure by ensuring that the user can still use the services that
3434
* are actually functional, and resources are not tied up by uselessly by the services which are not
3535
* working. However, we should also be able to detect when any of the m failing services become

circuit-breaker/src/test/java/com/iluwatar/circuitbreaker/DefaultCircuitBreakerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public String call() throws RemoteServiceException {
7474
}
7575
};
7676
var circuitBreaker = new DefaultCircuitBreaker(mockService, 1, 1, 100);
77-
//Call with the paramater start_time set to huge amount of time in past so that service
77+
//Call with the parameter start_time set to huge amount of time in past so that service
7878
//replies with "Ok". Also, state is CLOSED in start
7979
var serviceStartTime = System.nanoTime() - 60 * 1000 * 1000 * 1000;
8080
var response = circuitBreaker.attemptRequest();

commander/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This pattern can be used when we need to make commits into 2 (or more) databases
1818

1919
## Explanation
2020
Handling distributed transactions can be tricky, but if we choose to not handle it carefully, there could be unwanted consequences. Say, we have an e-commerce website which has a Payment microservice and a Shipping microservice. If the shipping is available currently but payment service is not up, or vice versa, how would we deal with it after having already received the order from the user?
21-
We need a mechanism in place which can handle these kinds of situations. We have to direct the order to either one of the services (in this example, shipping) and then add the order into the database of the other service (in this example, payment), since two databses cannot be updated atomically. If currently unable to do it, there should be a queue where this request can be queued, and there has to be a mechanism which allows for a failure in the queueing as well. All this needs to be done by constant retries while ensuring idempotence (even if the request is made several times, the change should only be applied once) by a commander class, to reach a state of eventual consistency.
21+
We need a mechanism in place which can handle these kinds of situations. We have to direct the order to either one of the services (in this example, shipping) and then add the order into the database of the other service (in this example, payment), since two databases cannot be updated atomically. If currently unable to do it, there should be a queue where this request can be queued, and there has to be a mechanism which allows for a failure in the queueing as well. All this needs to be done by constant retries while ensuring idempotence (even if the request is made several times, the change should only be applied once) by a commander class, to reach a state of eventual consistency.
2222

2323
## Credits
2424

currying/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Cons
183183
* As shown in the programmatic example above, curried functions with several parameters have a cumbersome type signature (in Java).
184184

185185
## Related patterns
186-
* [Builder patter](https://java-design-patterns.com/patterns/builder/)
186+
* [Builder pattern](https://java-design-patterns.com/patterns/builder/)
187187

188188
## Credits
189189
* [Currying in Java](https://www.baeldung.com/java-currying)

data-mapper/src/main/java/com/iluwatar/datamapper/DataMapperException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
package com.iluwatar.datamapper;
2626

2727
/**
28-
* Using Runtime Exception for avoiding dependancy on implementation exceptions. This helps in
28+
* Using Runtime Exception for avoiding dependency on implementation exceptions. This helps in
2929
* decoupling.
3030
*
3131
* @author amit.dixit

embedded-value/src/main/java/com/iluwatar/embedded/value/App.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static void main(String[] args) throws Exception {
6262

6363
// Create table for orders - Orders(id, name, orderedBy, city, state, pincode).
6464
// We can see that table is different from the Order object we have.
65-
// We're mapping ShippingAddress into city, state, pincode colummns of the database and not creating a separate table.
65+
// We're mapping ShippingAddress into city, state, pincode columns of the database and not creating a separate table.
6666
if (dataSource.createSchema()) {
6767
LOGGER.info("TABLE CREATED");
6868
LOGGER.info("Table \"Orders\" schema:\n" + dataSource.getSchema());
@@ -95,7 +95,7 @@ public static void main(String[] args) throws Exception {
9595
dataSource.removeOrder(1);
9696
LOGGER.info("\nOrders Query: {}", dataSource.queryOrders().collect(Collectors.toList()) + "\n");
9797

98-
//After successfull demonstration of the pattern, drop the table
98+
//After successful demonstration of the pattern, drop the table
9999
if (dataSource.deleteSchema()) {
100100
LOGGER.info("TABLE DROPPED");
101101
} else {

event-queue/src/main/java/com/iluwatar/event/queue/Audio.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private void update() {
144144
clip.open(audioStream);
145145
clip.start();
146146
} catch (LineUnavailableException e) {
147-
LOGGER.trace("Error occoured while loading the audio: The line is unavailable", e);
147+
LOGGER.trace("Error occurred while loading the audio: The line is unavailable", e);
148148
} catch (IOException e) {
149149
LOGGER.trace("Input/Output error while loading the audio", e);
150150
} catch (IllegalArgumentException e) {

0 commit comments

Comments
 (0)