Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What the fuck Eclipse? IT'S PRIVATE!

Name: Anonymous 2009-06-30 20:06

I don't understand why the fuck is this fucking IDE bitching.
This is the proverbial Node for a LinkedList ADT:

private static class Node<E> {

    private final E element;

    private Node<E> next;

    private Node(final E dataElement, final Node<E> nextNode) {
      this.element = dataElement;
      this.next = nextNode;
    }

    @Override public String toString() {
      return this.element.toString();
    }
  }


Access to enclosing constructor LinkedList<E>.Node<E>(E, LinkedList.Node<E>) is emulated by a synthetic accessor method. Increasing its visibility will improve your performance.

Read access to enclosing field LinkedList<E>.Node<E>.element is emulated by a synthetic accessor method. Increasing its visibility will improve your performance.

Read access to enclosing field LinkedList<E>.Node<E>.next is emulated by a synthetic accessor method. Increasing its visibility will improve your performance.

What the fuck? It's supposed to be private!

Name: Anonymous 2009-06-30 22:45

A. Private members are a stupid idea.
B. In what way is this Node proverbial?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List