Skip to content

Commit 0d25822

Browse files
committed
javadoc fixes
1 parent 15862b8 commit 0d25822

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public DomNode getCurrentNode() {
108108
/**
109109
* @see org.w3c.dom.traversal.TreeWalker#setCurrentNode(Node)
110110
* @param currentNode the current node
111-
* @throws DOMException
111+
* @throws DOMException if the current node provides is null
112112
*/
113113
public void setCurrentNode(final Node currentNode) throws DOMException {
114114
if (currentNode == null) {

src/main/java/org/htmlunit/html/XmlSerializer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ private static String getFileExtension(final Page enclosedPage) {
270270
/**
271271
* @param link the link to get the attributes from
272272
* @return the attribute map
273+
* @throws IOException in case of error
273274
*/
274275
protected Map<String, DomAttr> getAttributesFor(final HtmlLink link) throws IOException {
275276
final Map<String, DomAttr> map = createAttributesCopyWithClonedAttribute(link, "href");

src/main/java/org/htmlunit/html/impl/SimpleRange.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ else if (endContainer_.getChildNodes().getLength() > endOffset_) {
277277
* Moves the contents of a Range from the containing document or document
278278
* fragment to a new DocumentFragment.
279279
* @return DocumentFragment containing the extracted contents
280-
* @throws DOMException
280+
* @throws DOMException in case of error
281281
*/
282282
public DomDocumentFragment extractContents() throws DOMException {
283283
final DomDocumentFragment fragment = cloneContents();
@@ -292,7 +292,7 @@ public DomDocumentFragment extractContents() throws DOMException {
292292
/**
293293
* @return true if startContainer equals endContainer and
294294
* startOffset equals endOffset
295-
* @throws DOMException
295+
* @throws DOMException in case of error
296296
*/
297297
public boolean isCollapsed() throws DOMException {
298298
return startContainer_ == endContainer_ && startOffset_ == endOffset_;
@@ -301,7 +301,7 @@ public boolean isCollapsed() throws DOMException {
301301
/**
302302
* @return the deepest common ancestor container of this range's two
303303
* boundary-points.
304-
* @throws DOMException
304+
* @throws DOMException in case of error
305305
*/
306306
public DomNode getCommonAncestorContainer() throws DOMException {
307307
if (startContainer_ != null && endContainer_ != null) {

src/main/java/org/htmlunit/javascript/JavaScriptEngine.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ private void init(final WebWindow webWindow, final Page page, final Context cont
275275
* @param browserVersion the {@link BrowserVersion}
276276
* @param prototypes map of prototypes
277277
* @param prototypesPerJSName map of prototypes with the class name as key
278+
* @throws Exception in case of error
278279
*/
279280
public static void configureScope(final HtmlUnitScriptable jsScope,
280281
final ClassConfiguration scopeConfig,
@@ -529,10 +530,7 @@ private static void removePrototypeProperties(final Scriptable scope, final Stri
529530
* @throws InstantiationException if the new class cannot be instantiated
530531
* @throws IllegalAccessException if we don't have access to create the new instance
531532
* @return the created prototype
532-
* @throws SecurityException
533-
* @throws NoSuchMethodException
534-
* @throws InvocationTargetException
535-
* @throws IllegalArgumentException
533+
* @throws Exception in case of errors
536534
*/
537535
public static HtmlUnitScriptable configureClass(final ClassConfiguration config, final Scriptable window)
538536
throws Exception {

src/main/java/org/htmlunit/javascript/host/file/Blob.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,13 @@ protected abstract static class Backend implements Serializable {
8484

8585
/**
8686
* @return the text
87+
* @throws IOException in case of error
8788
*/
8889
abstract String getText() throws IOException;
8990

9091
/**
92+
* @param start the start position
93+
* @param end the end position
9194
* @return the bytes
9295
*/
9396
abstract byte[] getBytes(int start, int end);

0 commit comments

Comments
 (0)