@Override
    @SuppressWarnings("unchecked")
    // doPrivileged() returns the correct type
    @Deprecated
    public Enumeration<String> getServletNames() {
        if (SecurityUtil.isPackageProtectionEnabled()) {
            return (Enumeration<String>) doPrivileged("getServletNames", null);
        } else {
            return context.getServletNames();
        }
    }
@ Override @ SuppressWarnings ( "unchecked" ) @ Deprecated public Enumeration < String > getServletNames ( ) { if ( SecurityUtil . isPackageProtectionEnabled ( ) ) { return ( Enumeration < String > ) doPrivileged ( "getServletNames" , null ) ; } else { return context . getServletNames ( ) ; } }
@deprecated