title: Classes cannot directly extend java.lang.Enum
body: <p>I am getting the error classes cannot directly extends <code>java.lang.enum</code> in my following code</p>
  
  <pre><code>public final class ConversionMode extends Enum
  {
  
  public static final ConversionMode TO_XLIFF;
  public static final ConversionMode FROM_XLIFF;
  private static final ConversionMode $VALUES[];
  
  public static final ConversionMode[] values()
  {
      return (ConversionMode[])$VALUES.clone();
  }
  
  public static ConversionMode valueOf(String s)
  {
      return (ConversionMode)Enum.valueOf(file2xliff4j/ConversionMode, s);
  }
  
  private ConversionMode(String s, int i)
  {
      super(s, i);
  }
  
  static 
  {
      TO_XLIFF = new ConversionMode("TO_XLIFF", 0);
      FROM_XLIFF = new ConversionMode("FROM_XLIFF", 1);
      $VALUES = (new ConversionMode[] {
          TO_XLIFF, FROM_XLIFF
      });
  }
  }
  </code></pre>
  
  <p>I also refer this link, but I am getting it properly so please give me the solution what I need to do? </p>