Update BinaryInspector.java

This commit is contained in:
vshcherb 2015-05-31 16:51:10 +02:00
parent 98ddfe0025
commit 96e789ac5d

View file

@ -1023,8 +1023,18 @@ public class BinaryInspector {
new ResultMatcher<Amenity>() {
@Override
public boolean publish(Amenity object) {
println(object.getType().getKeyName() + " : " + object.getSubType() + " " + object.getName() + " " + object.getLocation() + " id=" + (object.getId() >> 1) + " " +
object.getAdditionalInfo());
Iterator<Entry<String, String>> it = object.getAdditionalInfo().entrySet().iterator();
String s = "";
while(it.hasNext()) {
Entry<String, String> e = it.next();
if(e.getValue().startsWith(" gz ")) {
s += e.getKey() +"=...";
} else {
s += e.getKey() +"=" +e.getValue();
}
}
println(object.getType().getKeyName() + " : " + object.getSubType() + " " + object.getName() + " " + object.getLocation() + " id=" + (object.getId() >> 1) + " " + s);
return false;
}
@Override