package org.basinmc.faucet.event;

import org.basinmc.faucet.internal.warn.Volatile;

/**
 * Marks the annotated type as an event which may be passed to the local event bus.
 *
 * @author <a href="mailto:johannesd@torchmind.com">Johannes Donath</a>
 */
public interface Event<STATE extends Enum<STATE>> {

  /**
   * Retrieves the default state for this event's execution context.
   *
   * @return an arbitrary state.
   */
  @Volatile
  default STATE getDefaultState() {
    return null;
  }
}

@@ -39,47 +39,31 @@
 ort 
-org.basinmc.faucet.internal.warn.Volati
+javax.annotation.Nullab
 le;%0A
@@ -409,14 +409,14 @@
 %0A  @
-Volati
+Nullab
 le%0A 

Mark the default state getter nullable in case no state is desired.