Eliminate unnecessary dependency from assets->common

This commit is contained in:
Chris Beams 2018-11-04 10:16:59 +01:00
parent c257590424
commit cc5ed491be
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
2 changed files with 18 additions and 6 deletions

View file

@ -32,7 +32,11 @@ repositories {
}
dependencies {
compile project(':common')
compile('network.bisq.libdohj:libdohj-core:d4ace7bc') {
exclude(module: 'protobuf-java')
}
compile 'commons-codec:commons-codec:1.9'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'org.bouncycastle:bcpg-jdk15on:1.56'
testCompile 'junit:junit:4.12'
}

View file

@ -17,8 +17,6 @@
package bisq.asset;
import bisq.common.util.Tuple2;
import java.util.Comparator;
public class PrintTool {
@ -31,14 +29,24 @@ public class PrintTool {
.sorted(Comparator.comparing(o -> o.getName().toLowerCase()))
.filter(e -> !e.getTickerSymbol().equals("BSQ")) // BSQ is not out yet...
.filter(e -> !e.getTickerSymbol().equals("BTC"))
.map(e -> new Tuple2(e.getName(), e.getTickerSymbol())) // We want to get rid of duplicated entries for regtest/testnet...
.map(e -> new Pair(e.getName(), e.getTickerSymbol())) // We want to get rid of duplicated entries for regtest/testnet...
.distinct()
.forEach(e -> sb.append("<li>&#8220;")
.append(e.second)
.append(e.right)
.append("&#8221;, &#8220;")
.append(e.first)
.append(e.left)
.append("&#8221;</li>")
.append("\n"));
System.out.println(sb.toString());
}
private static class Pair {
String left;
String right;
Pair(String left, String right) {
this.left = left;
this.right = right;
}
}
}