cdm/src/main/java/ucar/nc2/CDMNode.java
@Deprecated
    public String getName()
    {
        switch (sort) {
        case ATTRIBUTE:
        case DIMENSION:
        case ENUMERATION:
            // for these cases, getName is getShortName
            return getShortName();

        case VARIABLE: // Atomic
        case SEQUENCE:
        case STRUCTURE:
        case GROUP:
            // for these cases, getName is getFullName
            return getFullName();
        default:
            break;
        }
        return getShortName(); // default
    }
@Deprecated
    public String getName()
    {
        switch (sort) {
        case ATTRIBUTE:
        case DIMENSION:
        case ENUMERATION:
            // for these cases, getName is getShortName
            return getShortName();

        case VARIABLE: // Atomic
        case SEQUENCE:
        case STRUCTURE:
        case GROUP:
            // for these cases, getName is getFullName
            return getFullName();
        default:
            break;
        }
        return getShortName(); // default
    }
@ Deprecated public String getName ( ) { switch ( sort ) { case ATTRIBUTE : case DIMENSION : case ENUMERATION : // for these cases, getName is getShortName return getShortName ( ) ; case VARIABLE : // Atomic case SEQUENCE : case STRUCTURE : case GROUP : // for these cases, getName is getFullName return getFullName ( ) ; default : break ; } return getShortName ( ) ; // default }
getName is deprecated because, as the code below shows,
it has no consistent meaning. Sometimes it returns
the short name, sometimes it returns the full name.

@deprecated Replaced by {@link #getShortName()} and {@link #getFullName()}
getName is deprecated because as the code below shows it has no consistent meaning . Sometimes it returns the short name sometimes it returns the full name .