src/main/java/org/tinyradius/packet/RadiusPacket.java
public void removeLastAttribute(int type) {
        List<RadiusAttribute> attrs = getAttributes(type);
        if (attrs == null || attrs.size() == 0) {
            return;
        }

        RadiusAttribute lastAttribute = attrs.get(attrs.size() - 1);
        removeAttribute(lastAttribute);
    }
/**
     * Removes the last occurence of the attribute of the given
     * type from the packet.
     *
     * @param type attribute type code
     */
Removes the last occurence of the attribute of the given
type from the packet.

@param type attribute type code
Removes the last occurence of the attribute of the given type from the packet . @param type attribute type code
public void removeLastAttribute(int type) {
        List<RadiusAttribute> attrs = getAttributes(type);
        if (attrs == null || attrs.size() == 0) {
            return;
        }
        RadiusAttribute lastAttribute = attrs.get(attrs.size() - 1);
        removeAttribute(lastAttribute);
    }
public void removeLastAttribute ( int type ) { List < RadiusAttribute > attrs = getAttributes ( type ) ; if ( attrs == null || attrs . size ( ) == 0 ) { return ; } RadiusAttribute lastAttribute = attrs . get ( attrs . size ( ) - 1 ) ; removeAttribute ( lastAttribute ) ; }
Removes the last occurence of the attribute of the given
 type from the packet.
Removes the last occurence of the attribute of the given type from the packet .