for (SimpleSymbolData symbol : symbolTable.values()) {
if (symbol.getClassName().endsWith("[]")) {
// Arrays aren't stored, because they are not entities, ie definable piece of code
continue;
}
ClassDescriptor classDescriptor = clsMap.get(symbol.getClassName());
if (classDescriptor == null) {
// Few classes in symbol maps are not presented in the new report. This is because, they
// don't contribute to fragment size nor appear in the dependency graph.
continue;
}
if (symbol.isClass()) {
assertTrue(classDescriptor.getObfuscatedNames().contains(symbol.getSymbolName()));
} else if (symbol.isField()) {
assertTrue(classDescriptor.getField(symbol.getMemberName()).getObfuscatedNames()
.contains(symbol.getSymbolName()));
} else {
// method
MethodDescriptor mth = classDescriptor.getMethod(
unSynthMethodSignature(symbol.getJsniIdent().split("::")[1]));
assertTrue(mth.getObfuscatedNames().contains(symbol.getSymbolName()));
}
}
}