/******************************************************************************
 * The MIT License (MIT)                                                      *
 *                                                                            *
 * Copyright (c) 2014 allout58                                                *
 *                                                                            *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell  *
 * copies of the Software, and to permit persons to whom the Software is      *
 * furnished to do so, subject to the following conditions:                   *
 *                                                                            *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.                            *
 *                                                                            *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   *
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE*
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER     *
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.                                                                  *
 ******************************************************************************/

package allout58.mods.techtree.util;

import com.sun.istack.internal.NotNull;

/**
 * Created by James Hollowell on 12/5/2014.
 */
public class Version implements Comparable<Version>
{
    private int major = 0;
    private int minor = 0;
    private int build = 0;
    private int revision = 0;

    public Version(int major, int minor, int build, int revision)
    {
        this.major = major;
        this.minor = minor;
        this.build = build;
        this.revision = revision;
    }

    public int getMajor()
    {
        return major;
    }

    public int getMinor()
    {
        return minor;
    }

    public int getBuild()
    {
        return build;
    }

    public int getRevision()
    {
        return revision;
    }

    @Override
    public String toString()
    {
        return major + "." + minor + "." + build + (revision != 0 ? "-rev" + revision : "");
    }

    public void readFromString(String s)
    {
        String pre = s.contains("-rev") ? s.split("-rev")[0] : s;
        major = Integer.parseInt(pre.split("\\.")[0]);
        minor = Integer.parseInt(pre.split("\\.")[1]);
        build = Integer.parseInt(pre.split("\\.")[2]);
        if (s.contains("-rev"))
        {
            revision = Integer.parseInt(s.split("-rev")[1]);
        }
    }

    @Override
    public boolean equals(Object o)
    {
        if (!(o instanceof Version)) return false;
        Version other = (Version) o;
        return this.compareTo(other) == 0;
    }

    @Override
    public int compareTo(@NotNull Version o)
    {
        final int before = -1;
        final int equal = 0;
        final int after = 1;
        if (this == o) return equal;

        if (this.major < o.major) return before;
        if (this.major > o.major) return after;

        if (this.minor < o.minor) return before;
        if (this.minor > o.minor) return after;

        if (this.build < o.build) return before;
        if (this.build > o.build) return after;

        if (this.revision < o.revision) return before;
        if (this.revision > o.revision) return after;

        return equal;
    }
}

@@ -1882,49 +1882,8 @@
 l;%0A%0A
-import com.sun.istack.internal.NotNull;%0A%0A
 /**%0A
@@ -3327,17 +3327,8 @@
 eTo(
-@NotNull 
 Vers

Update to remove @NotNull annotation I tried