exporting non_public type through public API

Posted by user329820 on Stack Overflow See other posts from Stack Overflow or by user329820
Published on 2010-05-30T04:49:59Z Indexed on 2010/05/30 4:52 UTC
Read the original article Hit count: 197

Filed under:
|

Hi I have written this code in Netbeans but it will show this warning for the name of this method ,would you please help me for what it shows this warning? thanks

  public Node returnNode(int index) throws IndexOutOfBoundsException {

    if (index < 0 || index > size) {
        throw new IndexOutOfBoundsException();
    } else {

        for (int i = 0; i < index; i++) {
            pointer = pointer.getNext();
        }
    }
    return pointer;
}

© Stack Overflow or respective owner

Related posts about java

Related posts about netbeans