Skip to main content

Posts

Showing posts from December, 2009

Funny Programming Mistake

I thought you might find this programming mistake I made to be somewhat humorous.
public MyJSplitPane getMyJSplitPane() { MyListener myListener; MyArray[] myArray; myArray = source1.getMyArray(); if (myJSplitPane == null) { myListener = getMyListener(); myJSplitPane = new MyJSplitPane(myArray, myListener); } return myJSplitPane; } /** * @return Returns the myListener. */ private MyListener getMyListener() { MyJSplitPane myJSplitPane; if (myListener == null) { myJSplitPane = getMyJSplitPane(); myListener = new MyListener(source2, myJSplitPane, this); } return myListener; }