protected int getFlags(String code) { int flags = 0; if (code.indexOf("native") >= 0) { flags |= FLAG_NATIVE; } if (code.toLowerCase().indexOf("jnode") >= 0) { flags |= FLAG_JNODE; } if (code.indexOf(vmSpecificTag) >= 0) { flags |= FLAG_VM_SPECIFIC; } if (code.indexOf(classpathBugfixTag) >= 0) { flags |= FLAG_CLASSPATH_BUGFIX; }
protected Flags getFlags(String code) { final Flags flags = new Flags(); getFlags(code, flags);
    protected int getFlags(String code) {        int flags = 0;        if (code.indexOf("native") >= 0) {            flags |= FLAG_NATIVE;        }        if (code.toLowerCase().indexOf("jnode") >= 0) {            flags |= FLAG_JNODE;        }        if (code.indexOf(vmSpecificTag) >= 0) {            flags |= FLAG_VM_SPECIFIC;        }        if (code.indexOf(classpathBugfixTag) >= 0) {            flags |= FLAG_CLASSPATH_BUGFIX;        }        return flags;    }