Skip to content

Commit 2a69238

Browse files
committed
Improve comments
1 parent 9eba969 commit 2a69238

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/engineering/swat/watch/WatchEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public String toString() {
135135
* <p>
136136
* Note: This method applies different logic to compare events than (the
137137
* default implementation of) method {@link #equals(Object)}, which
138-
* shouldn't be overridden. This is because events should norminally be
138+
* shouldn't be overridden. This is because events should normally be
139139
* compared in terms of their identities (e.g., two successive modifications
140140
* of the same file result in events that are equivalent, but not equal;
141141
* they need to be distinguishable in collections).

src/test/java/engineering/swat/watch/TestHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public static <T> Stream<T> streamOf(T[] values, int repetitions, boolean sortBy
7979
}
8080
}
8181

82+
/**
83+
* Helper class to keep track of a list of events and query it (on a
84+
* slightly higher level of abstraction than manipulation of event streams).
85+
*/
8286
public static class Bookkeeper implements Consumer<WatchEvent> {
8387
private final Queue<WatchEvent> events = new ConcurrentLinkedQueue<>();
8488

0 commit comments

Comments
 (0)