ComponentNameConstructor compName =
getVerifierContext().getComponentNameConstructor();
Result result = getInitializedResult();
result.setStatus(Result.PASSED);
ClosureCompilerImpl cc = ClosureCompilerImpl.class.cast(
getVerifierContext().getClosureCompiler());
Collection<String> nativeMethods = cc.getNativeMethods();
if(!nativeMethods.isEmpty()) {
addWarningDetails(result, compName);
result.warning(smh.getLocalString(getClass().getName() + ".warning",
"Supplied below is the list of method names " +
"(in the format <package.classname>.<methodName>) " +
"that are defined as native methods and used by the application:\n"));
for(String m : nativeMethods) {
result.warning("\n\t" + m);
}
result.warning(smh.getLocalString(getClass().getName() + ".suggestion",
"Please make sure that they are implemented on all operating systems."));
}
return result;