public String getRealPath(String path) { if (SecurityUtil.isPackageProtectionEnabled()) { return (String) doPrivileged("getRealPath", new Object[] {path}); } else { return context.getRealPath(path); } }
@Override @SuppressWarnings("unchecked") // doPrivileged() returns the correct type public String getRealPath(String path) { if (SecurityUtil.isPackageProtectionEnabled()) { return (String) doPrivileged("getRealPath", new Object[] {path}); } else { return context.getRealPath(path); } }