Skip to content

Commit 5ae2ce6

Browse files
anuragagarwal561994iluwatar
authored andcommitted
Resolves checkstyle errors for event-* (iluwatar#1070)
* Reduces checkstyle errors in event-aggregator * Reduces checkstyle errors in event-asynchronous * Reduces checkstyle errors in event-driven-architecture * Reduces checkstyle errors in event-queue * Reduces checkstyle errors in event-sourcing
1 parent 7c888e8 commit 5ae2ce6

File tree

38 files changed

+208
-229
lines changed

38 files changed

+208
-229
lines changed

event-aggregator/src/main/java/com/iluwatar/event/aggregator/App.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,22 @@
2727
import java.util.List;
2828

2929
/**
30-
*
3130
* A system with lots of objects can lead to complexities when a client wants to subscribe to
3231
* events. The client has to find and register for each object individually, if each object has
3332
* multiple events then each event requires a separate subscription.
34-
* <p>
35-
* An Event Aggregator acts as a single source of events for many objects. It registers for all the
36-
* events of the many objects allowing clients to register with just the aggregator.
37-
* <p>
38-
* In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
39-
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events to
40-
* {@link KingJoffrey}.
4133
*
34+
* <p>An Event Aggregator acts as a single source of events for many objects. It registers for all
35+
* the events of the many objects allowing clients to register with just the aggregator.
36+
*
37+
* <p>In the example {@link LordBaelish}, {@link LordVarys} and {@link Scout} deliver events to
38+
* {@link KingsHand}. {@link KingsHand}, the event aggregator, then delivers the events to {@link
39+
* KingJoffrey}.
4240
*/
4341
public class App {
4442

4543
/**
46-
* Program entry point
47-
*
44+
* Program entry point.
45+
*
4846
* @param args command line args
4947
*/
5048
public static void main(String[] args) {

event-aggregator/src/main/java/com/iluwatar/event/aggregator/Event.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* Event enumeration.
29-
*
3028
*/
3129
public enum Event {
3230

event-aggregator/src/main/java/com/iluwatar/event/aggregator/EventEmitter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import java.util.List;
2828

2929
/**
30-
*
3130
* EventEmitter is the base class for event producers that can be observed.
32-
*
3331
*/
3432
public abstract class EventEmitter {
3533

event-aggregator/src/main/java/com/iluwatar/event/aggregator/EventObserver.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* Observers of events implement this interface.
29-
*
3028
*/
3129
public interface EventObserver {
3230

event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingJoffrey.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import org.slf4j.LoggerFactory;
2828

2929
/**
30-
*
3130
* KingJoffrey observes events from {@link KingsHand}.
32-
*
3331
*/
3432
public class KingJoffrey implements EventObserver {
3533

event-aggregator/src/main/java/com/iluwatar/event/aggregator/KingsHand.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* KingsHand observes events from multiple sources and delivers them to listeners.
29-
*
3028
*/
3129
public class KingsHand extends EventEmitter implements EventObserver {
3230

event-aggregator/src/main/java/com/iluwatar/event/aggregator/LordBaelish.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* LordBaelish produces events.
29-
*
3028
*/
3129
public class LordBaelish extends EventEmitter {
3230

event-aggregator/src/main/java/com/iluwatar/event/aggregator/LordVarys.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* LordVarys produces events.
29-
*
3028
*/
3129
public class LordVarys extends EventEmitter {
3230

event-aggregator/src/main/java/com/iluwatar/event/aggregator/Scout.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
2827
* Scout produces events.
29-
*
3028
*/
3129
public class Scout extends EventEmitter {
3230

event-aggregator/src/main/java/com/iluwatar/event/aggregator/Weekday.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
package com.iluwatar.event.aggregator;
2525

2626
/**
27-
*
28-
* Weekday enumeration
29-
*
27+
* Weekday enumeration.
3028
*/
3129
public enum Weekday {
3230

0 commit comments

Comments
 (0)