[Httpunit-commit] SF.net SVN: httpunit:[1076] trunk/httpunit/src/com/meterware/httpunit/ ParsedHTML
Brought to you by:
russgold
|
From: <wol...@us...> - 2011-01-29 08:17:23
|
Revision: 1076
http://httpunit.svn.sourceforge.net/httpunit/?rev=1076&view=rev
Author: wolfgang_fahl
Date: 2011-01-29 08:17:17 +0000 (Sat, 29 Jan 2011)
Log Message:
-----------
removed superfluous call - added comment
Modified Paths:
--------------
trunk/httpunit/src/com/meterware/httpunit/ParsedHTML.java
Modified: trunk/httpunit/src/com/meterware/httpunit/ParsedHTML.java
===================================================================
--- trunk/httpunit/src/com/meterware/httpunit/ParsedHTML.java 2011-01-11 15:30:21 UTC (rev 1075)
+++ trunk/httpunit/src/com/meterware/httpunit/ParsedHTML.java 2011-01-29 08:17:17 UTC (rev 1076)
@@ -30,6 +30,8 @@
import java.util.*;
import java.io.IOException;
+import javax.management.RuntimeErrorException;
+
import com.meterware.httpunit.scripting.ScriptableDelegate;
import com.meterware.httpunit.dom.HTMLContainerElement;
import com.meterware.httpunit.dom.HTMLDocumentImpl;
@@ -215,16 +217,16 @@
**/
public WebTable[] getTables() {
loadElements();
- if (_tables == null) {
- loadElements();
- _tables = (WebTable[]) _tableList.toArray( new WebTable[ _tableList.size() ] );
- }
- return _tables;
+ if (_tables == null) {
+ _tables = (WebTable[]) _tableList.toArray( new WebTable[ _tableList.size() ] );
+ }
+ return _tables;
}
-
/**
* Returns the HTMLElement with the specified ID.
+ * @param id - the id of the element to return
+ * @return the element looked for
*/
public HTMLElement getElementWithID( String id ) {
return (HTMLElement) getElementWithID( id, HTMLElement.class );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|