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