mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +01:00
Eliminate unnecessary dependency from assets->common
This commit is contained in:
parent
c257590424
commit
cc5ed491be
2 changed files with 18 additions and 6 deletions
|
@ -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'
|
||||
}
|
||||
|
|
|
@ -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>“")
|
||||
.append(e.second)
|
||||
.append(e.right)
|
||||
.append("”, “")
|
||||
.append(e.first)
|
||||
.append(e.left)
|
||||
.append("”</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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue