Skip to content

Commit 33f6d5e

Browse files
committed
minor javadoc fixes
1 parent b3f7b28 commit 33f6d5e

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* final String applicationName = "APPNAME";
4242
* final String applicationVersion = "APPVERSION";
4343
* final String userAgent = "USERAGENT";
44-
*
44+
* <p>
4545
* final BrowserVersion browser =
4646
* new BrowserVersion.BrowserVersionBuilder(BrowserVersion.FIREFOX)
4747
* .setApplicationName(applicationName)

src/main/java/com/gargoylesoftware/htmlunit/html/DomNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ public DomElement getNextElementSibling() {
19931993

19941994
/**
19951995
* @param selectorString the selector to test
1996-
* @return true if the element would be selected by the specified selector string; otherwise, returns false.
1996+
* @return the selected {@link DomElement} or null.
19971997
*/
19981998
public DomElement closest(final String selectorString) {
19991999
try {

src/main/java/com/gargoylesoftware/htmlunit/html/FrameWindow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void setPageDenied(final PageDenied pageDenied) {
158158
}
159159

160160
/**
161-
* @return true if the page was denied
161+
* @return PageDenied if the page was denied
162162
*/
163163
public PageDenied getPageDenied() {
164164
return pageDenied_;

src/main/java/com/gargoylesoftware/htmlunit/javascript/background/JavaScriptExecutionJob.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
*
2929
* @author Daniel Gredler
3030
* @author Ronald Brill
31-
* @see MemoryLeakTest
3231
*/
3332
abstract class JavaScriptExecutionJob extends BasicJavaScriptJob {
3433

src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclaration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public CSSStyleDeclaration(final Element element, final AbstractCssStyleDeclarat
269269

270270
/**
271271
* Creates an instance which wraps the specified style declaration.
272-
* @param parentScope the parent scope to use
272+
* @param parentStyleSheet the parent {@link CSSStyleSheet} to use
273273
* @param styleDeclaration the style declaration to wrap
274274
*/
275275
CSSStyleDeclaration(final CSSStyleSheet parentStyleSheet, final WrappedCssStyleDeclaration styleDeclaration) {

src/main/java/com/gargoylesoftware/htmlunit/javascript/host/dom/MutationObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void disconnect() {
124124

125125
/**
126126
* Empties the MutationObserver instance's record queue and returns what was in there.
127-
* @return an Array of {@link MutationRecord}s
127+
* @return an {@link NativeArray} of {@link MutationRecord}s
128128
*/
129129
@JsxFunction
130130
public NativeArray takeRecords() {

src/main/java/com/gargoylesoftware/htmlunit/platform/Platform.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static Map<Integer, List<String>> getAttributesOrderMap(final Document do
103103
}
104104
}
105105

106-
return new HashMap<Integer, List<String>>();
106+
return new HashMap<>();
107107
}
108108

109109
private Platform() {

src/main/java/com/gargoylesoftware/htmlunit/util/EncodingSniffer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ else if (matches(bytes, i, OTHER_START)) {
770770
* attribute algorithm</a>.
771771
*
772772
* @param bytes the byte array to extract an attribute from
773-
* @param from the index to start searching from
773+
* @param startFrom the index to start searching from
774774
* @return the next attribute in the specified byte array, or {@code null} if one is not available
775775
*/
776776
static Attribute getAttribute(final byte[] bytes, final int startFrom) {
@@ -1042,9 +1042,9 @@ static boolean matches(final byte[] bytes, final int i, final byte[][] sought) {
10421042
* starting at the specified index. This method returns <code>-1</code> if none of the targets are found.
10431043
*
10441044
* @param bytes the array to search through
1045-
* @param i the index to start looking at
1045+
* @param startFrom the index to start looking at
10461046
* @param targets the targets to search for
1047-
* @return the index of the first occurrence of any of the specified targets within the specified array
1047+
* @return the index of the first occurrence of the specified targets within the specified array
10481048
*/
10491049
static int skipToAnyOf(final byte[] bytes, final int startFrom, final byte[] targets) {
10501050
int i = startFrom;

0 commit comments

Comments
 (0)