@Deprecated
    @SuppressWarnings("unchecked")
    public List<String> getAliases() {
        if (extraElements != null && extraElements.containsKey("aliases")) {
            return (List<String>) extraElements.get("aliases");
        } else {
            throw new MongoGridFSException("No aliases data for this GridFS file");
        }
    }
@Deprecated
    @SuppressWarnings("unchecked")
    public List<String> getAliases() {
        if (extraElements != null && extraElements.containsKey("aliases")) {
            return (List<String>) extraElements.get("aliases");
        } else {
            throw new MongoGridFSException("No aliases data for this GridFS file");
        }
    }
@ Deprecated @ SuppressWarnings ( "unchecked" ) public List < String > getAliases ( ) { if ( extraElements != null && extraElements . containsKey ( "aliases" ) ) { return ( List < String > ) extraElements . get ( "aliases" ) ; } else { throw new MongoGridFSException ( "No aliases data for this GridFS file" ) ; } }
The aliases for the file

@return the aliases of the file
@deprecated any aliases should be stored in the metadata document instead.
The aliases for the file