@@ -139,6 +139,7 @@ interface EventService {
139139 * <p>
140140 * Due to generic type erasure, the type must be supplied by the caller. You can get a declared object's
141141 * type by using the {@link org.scijava.event.bushe.TypeReference} class. For Example:
142+ * </p>
142143 * <pre>
143144 * TypeReference<List<Trade>> subscribingTypeReference = new TypeReference<List<Trade>>(){};
144145 * EventBus.subscribe(subscribingTypeReference.getType(), mySubscriber);
@@ -151,7 +152,6 @@ interface EventService {
151152 * trades.add(trade);
152153 * EventBus.publish(publishingTypeReference.getType(), trades);
153154 * </pre>
154- * </p>
155155 * @param genericType the generified type of the published object.
156156 * @param event The event that occurred
157157 */
@@ -169,7 +169,6 @@ interface EventService {
169169 /**
170170 * Subscribes an EventSubscriber to the publication of objects matching a type. Only a <b>WeakReference</b> to
171171 * the subscriber is held by the EventService.
172- * </p>
173172 * <p>
174173 * Subscribing to a class means the subscriber will be called when objects of that class are published, when
175174 * objects of subclasses of the class are published, when objects implementing any of the interfaces of the
@@ -202,6 +201,7 @@ interface EventService {
202201 * <p>
203202 * Due to generic type erasure, the type must be supplied by the publisher. You can get a declared object's
204203 * type by using the {@link org.scijava.event.bushe.TypeReference} class. For Example:
204+ * </p>
205205 * <pre>
206206 * TypeReference<List<Trade>> subscribingTypeReference = new TypeReference<List<Trade>>(){};
207207 * EventBus.subscribe(subscribingTypeReference.getType(), mySubscriber);
@@ -214,7 +214,6 @@ interface EventService {
214214 * trades.add(trade);
215215 * EventBus.publish(publishingTypeReference.getType(), trades);
216216 * </pre>
217- * </p>
218217 * @param type the generic type to subscribe to
219218 * @param subscriber the subscriber to the type
220219 * @return true if a new subscription is made, false if it already existed
0 commit comments