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>() { new ResultMatcher<Amenity>() {
@Override @Override
public boolean publish(Amenity object) { public boolean publish(Amenity object) {
println(object.getType().getKeyName() + " : " + object.getSubType() + " " + object.getName() + " " + object.getLocation() + " id=" + (object.getId() >> 1) + " " + Iterator<Entry<String, String>> it = object.getAdditionalInfo().entrySet().iterator();
object.getAdditionalInfo()); 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; return false;
} }
@Override @Override