All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.revapi.ant.FailSeverity Maven / Gradle / Ivy

There is a newer version: 0.13.0
Show newest version
package org.revapi.ant;

import org.revapi.DifferenceSeverity;

/**
 * @author Lukas Krejci
 * @since 0.1
 */
enum FailSeverity {
    nonBreaking, potentiallyBreaking, breaking;

    public DifferenceSeverity asDifferenceSeverity() {
        switch (this) {
        case nonBreaking:
            return DifferenceSeverity.NON_BREAKING;
        case potentiallyBreaking:
            return DifferenceSeverity.POTENTIALLY_BREAKING;
        case breaking:
            return DifferenceSeverity.BREAKING;
        default:
            throw new AssertionError("FailLevel.toChangeSeverity() not exhaustive.");
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy