Commit 20c8f7f7 authored by Daniel Le Berre's avatar Daniel Le Berre

Check field type: important when code weaving is performed (with JaCoCo

for instance).
parent 72c87c9f
Pipeline #3652 passed with stages
in 42 minutes and 55 seconds
......@@ -128,7 +128,10 @@ public class SolverStats implements Serializable {
Map<String, Number> map = new HashMap<String, Number>();
for (Field f : this.getClass().getDeclaredFields()) {
try {
map.put(f.getName(), (Number) f.get(this));
Object value = f.get(this);
if (value instanceof Number) {
map.put(f.getName(), (Number) value);
}
} catch (IllegalArgumentException e) {
// ignores silently
} catch (IllegalAccessException e) {
......
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