Commit dd58e897 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Simplify comparison of Tor versions.

parent e27191a0
......@@ -114,8 +114,8 @@ public class TorVersion implements Comparable<TorVersion> {
}
for (int position = 0; position < this.versionNumbers.size()
&& position < other.versionNumbers.size(); position++) {
if ((Integer.compare(this.versionNumbers.get(position),
other.versionNumbers.get(position))) != 0) {
if (!this.versionNumbers.get(position).equals(
other.versionNumbers.get(position))) {
return false;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment