title: "unexpected type" error when comparing enum values
body: <p>Most people I've seen with this problem were using <code>=</code> where they needed <code>==</code>. What's causing my problem here?</p>
  
  <pre>
  com\callmeyer\jopp\FieldCoordinator.java:303: unexpected type
  required: class, package
  found   : variable
                      if (event.getType() == event.Type.INSERT) {
                                             ^
  </pre>
  
  <p>The enum definition and accessor:</p>
  
  <pre><code>public class DataLayoutEvent {
      public static enum Type { INSERT, DELETE, RENAME, MOVE, RESIZE }
  
      private Type type = null;
  
      public Type getType() {
          return type;
      }
  
      ...
  }
  </code></pre>
  
  <p>and the method where the error occurs:</p>
  
  <pre><code>public void layoutChanged(DataLayoutEvent event) {
      if (event.getType() == event.Type.INSERT) {
          fieldAdded(event.getField(), event.getToIndex());
      }
  
      ...
  </code></pre>