class TaintLocation {

    private final MethodDescriptor methodDescriptor;
    private final int position;

    /**
     * Constructs a location from the specified method and position inside
     * 
     * @param methodDescriptor method of the location
     * @param position position in the method
     * @throws NullPointerException if method is null
     * @throws IllegalArgumentException if position is negative
     */
    public TaintLocation(MethodDescriptor methodDescriptor, int position) {
        if (methodDescriptor == null) {
            throw new NullPointerException("method not specified");
        }
        if (position < 0) {
            throw new IllegalArgumentException("postition is negative");
        }
        this.methodDescriptor = methodDescriptor;
        this.position = position;
    }

    /**
     * Returns the method of this location
     * 
     * @return descriptor of the method
     */
    public MethodDescriptor getMethodDescriptor() {
        return methodDescriptor;
    }

    /**
     * Returns the position in the method of this location
     * 
     * @return index of the position
     */
    public int getPosition() {
        return position;
    }

    @Override
    public boolean equals(Object obj) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        return methodDescriptor.hashCode() + 11 * position;
    }

    @Override
    public String toString() {
        return methodDescriptor.toString() + " " + position;
    }

}

        if (obj == null) {
            return false;
        }
        if (!(obj instanceof TaintLocation)) {
            return false;
        }
        final TaintLocation other = (TaintLocation) obj;
        return methodDescriptor.equals(other.methodDescriptor) && position == other.position;
    
<no_super_class>