Skip to content

Commit

Permalink
javadoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Oct 20, 2024
1 parent 15862b8 commit 0d25822
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/htmlunit/html/HtmlDomTreeWalker.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public DomNode getCurrentNode() {
/**
* @see org.w3c.dom.traversal.TreeWalker#setCurrentNode(Node)
* @param currentNode the current node
* @throws DOMException
* @throws DOMException if the current node provides is null
*/
public void setCurrentNode(final Node currentNode) throws DOMException {
if (currentNode == null) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/htmlunit/html/XmlSerializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ private static String getFileExtension(final Page enclosedPage) {
/**
* @param link the link to get the attributes from
* @return the attribute map
* @throws IOException in case of error
*/
protected Map<String, DomAttr> getAttributesFor(final HtmlLink link) throws IOException {
final Map<String, DomAttr> map = createAttributesCopyWithClonedAttribute(link, "href");
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/htmlunit/html/impl/SimpleRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ else if (endContainer_.getChildNodes().getLength() > endOffset_) {
* Moves the contents of a Range from the containing document or document
* fragment to a new DocumentFragment.
* @return DocumentFragment containing the extracted contents
* @throws DOMException
* @throws DOMException in case of error
*/
public DomDocumentFragment extractContents() throws DOMException {
final DomDocumentFragment fragment = cloneContents();
Expand All @@ -292,7 +292,7 @@ public DomDocumentFragment extractContents() throws DOMException {
/**
* @return true if startContainer equals endContainer and
* startOffset equals endOffset
* @throws DOMException
* @throws DOMException in case of error
*/
public boolean isCollapsed() throws DOMException {
return startContainer_ == endContainer_ && startOffset_ == endOffset_;
Expand All @@ -301,7 +301,7 @@ public boolean isCollapsed() throws DOMException {
/**
* @return the deepest common ancestor container of this range's two
* boundary-points.
* @throws DOMException
* @throws DOMException in case of error
*/
public DomNode getCommonAncestorContainer() throws DOMException {
if (startContainer_ != null && endContainer_ != null) {
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/org/htmlunit/javascript/JavaScriptEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ private void init(final WebWindow webWindow, final Page page, final Context cont
* @param browserVersion the {@link BrowserVersion}
* @param prototypes map of prototypes
* @param prototypesPerJSName map of prototypes with the class name as key
* @throws Exception in case of error
*/
public static void configureScope(final HtmlUnitScriptable jsScope,
final ClassConfiguration scopeConfig,
Expand Down Expand Up @@ -529,10 +530,7 @@ private static void removePrototypeProperties(final Scriptable scope, final Stri
* @throws InstantiationException if the new class cannot be instantiated
* @throws IllegalAccessException if we don't have access to create the new instance
* @return the created prototype
* @throws SecurityException
* @throws NoSuchMethodException
* @throws InvocationTargetException
* @throws IllegalArgumentException
* @throws Exception in case of errors
*/
public static HtmlUnitScriptable configureClass(final ClassConfiguration config, final Scriptable window)
throws Exception {
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/htmlunit/javascript/host/file/Blob.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,13 @@ protected abstract static class Backend implements Serializable {

/**
* @return the text
* @throws IOException in case of error
*/
abstract String getText() throws IOException;

/**
* @param start the start position
* @param end the end position
* @return the bytes
*/
abstract byte[] getBytes(int start, int end);
Expand Down

0 comments on commit 0d25822

Please sign in to comment.