mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-04 16:17:08 +00:00
fix: correct typo (#2430)
Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
co-authored by
Ilkka Seppälä
parent
6205f7dd82
commit
acf55c934f
+3
-3
@@ -29,9 +29,9 @@ import lombok.Getter;
|
|||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link UserCreatedEvent} should should be dispatched whenever a user has been created. This
|
* The {@link UserCreatedEvent} should be dispatched whenever a user has been created.
|
||||||
* class can be extended to contain details about the user has been created. In this example, the
|
* This class can be extended to contain details about the user has been created.
|
||||||
* entire {@link User} object is passed on as data with the event.
|
* In this example, the entire {@link User} object is passed on as data with the event.
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Getter
|
@Getter
|
||||||
|
|||||||
+3
-3
@@ -29,9 +29,9 @@ import lombok.Getter;
|
|||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The {@link UserUpdatedEvent} should should be dispatched whenever a user has been updated. This
|
* The {@link UserUpdatedEvent} should be dispatched whenever a user has been updated.
|
||||||
* class can be extended to contain details about the user has been updated. In this example, the
|
* This class can be extended to contain details about the user has been updated.
|
||||||
* entire {@link User} object is passed on as data with the event.
|
* In this example, the entire {@link User} object is passed on as data with the event.
|
||||||
*/
|
*/
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Getter
|
@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
|
* @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
|
* 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.
|
* consumed by other sub systems.
|
||||||
*
|
*
|
||||||
* @param event the {@link Event} object to be handled.
|
* @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.
|
* 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[])}
|
* Solution: Inserted assertion to check whether the execution of the main method in {@link App#main(String[])}
|
||||||
* throws an exception.
|
* throws an exception.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user