mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 06:58:54 +00:00
fix: correct typo (#2430)
Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
+3
-3
@@ -29,9 +29,9 @@ import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* The {@link UserCreatedEvent} should should be dispatched whenever a user has been created. This
|
||||
* class can be extended to contain details about the user has been created. In this example, the
|
||||
* entire {@link User} object is passed on as data with the event.
|
||||
* The {@link UserCreatedEvent} should be dispatched whenever a user has been created.
|
||||
* This class can be extended to contain details about the user has been created.
|
||||
* In this example, the entire {@link User} object is passed on as data with the event.
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Getter
|
||||
|
||||
+3
-3
@@ -29,9 +29,9 @@ import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* The {@link UserUpdatedEvent} should should be dispatched whenever a user has been updated. This
|
||||
* class can be extended to contain details about the user has been updated. In this example, the
|
||||
* entire {@link User} object is passed on as data with the event.
|
||||
* The {@link UserUpdatedEvent} should be dispatched whenever a user has been updated.
|
||||
* This class can be extended to contain details about the user has been updated.
|
||||
* In this example, the entire {@link User} object is passed on as data with the event.
|
||||
*/
|
||||
@RequiredArgsConstructor
|
||||
@Getter
|
||||
|
||||
+2
-2
@@ -53,7 +53,7 @@ public class EventDispatcher {
|
||||
}
|
||||
|
||||
/**
|
||||
* Dispatches an {@link Event} depending on it's type.
|
||||
* Dispatches an {@link Event} depending on its type.
|
||||
*
|
||||
* @param event The {@link Event} to be dispatched
|
||||
*/
|
||||
@@ -65,4 +65,4 @@ public class EventDispatcher {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public interface Handler<E extends Event> {
|
||||
|
||||
/**
|
||||
* The onEvent method should implement and handle behavior related to the event. This can be as
|
||||
* simple as calling another service to handle the event on publishing the event on a queue to be
|
||||
* simple as calling another service to handle the event on publishing the event in a queue to be
|
||||
* consumed by other sub systems.
|
||||
*
|
||||
* @param event the {@link Event} object to be handled.
|
||||
|
||||
@@ -35,7 +35,7 @@ class AppTest {
|
||||
|
||||
/**
|
||||
* Issue: Add at least one assertion to this test case.
|
||||
*
|
||||
* <p>
|
||||
* Solution: Inserted assertion to check whether the execution of the main method in {@link App#main(String[])}
|
||||
* throws an exception.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user