我得到错误类不能直接java.lang.enum
在我的以下代码中扩展
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
});
}
}
我也参考了这个链接,但我得到了正确的,所以请给我解决方案,我需要做什么?