package com.redhat.ceylon.common;

public enum Backend {
    None("", BackendSupport.HEADER),
    Java("java", BackendSupport.JAVA),
    JavaScript("js", BackendSupport.JAVASCRIPT);
    
    public final String nativeAnnotation;
    public final BackendSupport backendSupport;
    
    Backend(String nativeAnnotation, BackendSupport backendSupport) {
        this.nativeAnnotation = nativeAnnotation;
        this.backendSupport = backendSupport;
    }
    
    public static boolean validAnnotation(String backend) {
        return fromAnnotation(backend) != null;
    }
    
    public static Backend fromAnnotation(String backend) {
        for (Backend b : Backend.values()) {
            if (b.nativeAnnotation.equals(backend)) {
                return b;
            }
        }
        return null;
    }
    
}
package com.redhat.ceylon.common;

public enum Backend {
    None("", BackendSupport.HEADER),
    Java("jvm", BackendSupport.JAVA),
    JavaScript("js", BackendSupport.JAVASCRIPT);
    
    public final String nativeAnnotation;
    public final BackendSupport backendSupport;
    
    Backend(String nativeAnnotation, BackendSupport backendSupport) {
        this.nativeAnnotation = nativeAnnotation;
        this.backendSupport = backendSupport;
    }
    
    public static boolean validAnnotation(String backend) {
        return fromAnnotation(backend) != null;
    }
    
    public static Backend fromAnnotation(String backend) {
        for (Backend b : Backend.values()) {
            if (b.nativeAnnotation.equals(backend)) {
                return b;
            }
        }
        return null;
    }
    
}
Revert "Annotation for Java backend renamed from "jvm" to "java""
Revert "Annotation for Java backend renamed from "jvm" to "java""

This reverts commit d965d39bd33cbb8efde7c815537bdf02d4c287c8.
