reformat code

This commit is contained in:
FalsePattern committed 2022-06-08 16:01:06 +02:00
1 parent c4248f7100
commit 025b47669f
21 files changed
+731 -498

No files matched your search

@@ -4,15 +4,18 @@ import com.falsepattern.lib.StableAPI;
@StableAPI(since = "0.6.0")
public abstract class Version implements Comparable<Version> {
protected Version(){}
public boolean equals(Version other) {
return compareTo(other) == 0;
protected Version() {
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof Version)) return false;
if (!(obj instanceof Version)) {
return false;
}
return equals((Version) obj);
}
public boolean equals(Version other) {
return compareTo(other) == 0;
}
}