Skip to content

Commit 45abac0

Browse files
committed
jdoc fixes
1 parent 988eb29 commit 45abac0

38 files changed

Lines changed: 71 additions & 72 deletions

src/main/java/org/htmlunit/BrowserVersionFeatures.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public enum BrowserVersionFeatures {
106106
@BrowserFeature({CHROME, EDGE})
107107
EVENT_TYPE_WHEELEVENT,
108108

109-
/** Form elements are able to refer to the for by using the from attribute. */
109+
/** Form elements are able to refer to the for by using the form attribute. */
110110
@BrowserFeature({CHROME, EDGE})
111111
FORM_IGNORE_REL_NOREFERRER,
112112

@@ -302,7 +302,7 @@ public enum BrowserVersionFeatures {
302302
@BrowserFeature({FF, FF_ESR})
303303
JS_CSSRULELIST_ENUM_ITEM_LENGTH,
304304

305-
/** Javascript document.evaluate creates a new result object even if provided as param. */
305+
/** Javascript document.evaluate() creates a new result object even if provided as param. */
306306
@BrowserFeature({CHROME, EDGE})
307307
JS_DOCUMENT_EVALUATE_RECREATES_RESULT,
308308

@@ -330,7 +330,7 @@ public enum BrowserVersionFeatures {
330330
@BrowserFeature({FF, FF_ESR})
331331
JS_FORM_DISPATCHEVENT_SUBMITS,
332332

333-
/** Executes the {@code onload} handler, regardless of the whether the element was already attached to the page. */
333+
/** Executes the {@code onload} handler, regardless of the element was already attached to the page. */
334334
@BrowserFeature({FF, FF_ESR})
335335
JS_IFRAME_ALWAYS_EXECUTE_ONLOAD,
336336

@@ -352,7 +352,7 @@ public enum BrowserVersionFeatures {
352352
@BrowserFeature({CHROME, EDGE})
353353
JS_INNER_TEXT_SVG_NL,
354354

355-
/** The value is ignored when the type of an week/month input is changed. */
355+
/** The value is ignored when the type of the week/month input is changed. */
356356
@BrowserFeature({CHROME, EDGE})
357357
JS_INPUT_CHANGE_TYPE_DROPS_VALUE_WEEK_MONTH,
358358

@@ -408,7 +408,7 @@ public enum BrowserVersionFeatures {
408408
@BrowserFeature({FF, FF_ESR})
409409
JS_PROPERTY_DESCRIPTOR_NAME,
410410

411-
/** script tags created from js as child of templates are processed if added to the dom. */
411+
/** script tags created from js as child of templates is processed if added to the dom. */
412412
@BrowserFeature({CHROME, EDGE})
413413
JS_SCRIPT_IN_TEMPLATE_EXECUTED_ON_ATTACH,
414414

src/main/java/org/htmlunit/DefaultCredentialsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class DefaultCredentialsProvider implements CredentialsProvider, Serializ
5959
private static SocksProxyAuthenticator SocksAuthenticator_;
6060
private final Map<AuthScopeProxy, Credentials> credentialsMap_ = new HashMap<>();
6161

62-
// Because this is used for the whole JVM i try to make it as less invasive as possible.
62+
// Because this is used for the whole JVM I try to make it as less invasive as possible.
6363
// But in general this might disturb other application running on the same JVM.
6464
private static final class SocksProxyAuthenticator extends Authenticator {
6565
private CredentialsProvider credentialsProvider_;

src/main/java/org/htmlunit/HttpWebConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ public static DownloadedContent downloadContent(final InputStream is, final int
825825
/**
826826
* Constructs an appropriate WebResponse.
827827
* May be overridden by subclasses to return a specialized WebResponse.
828-
* @param responseData Data that was send back
828+
* @param responseData Data that was sent back
829829
* @param webRequest the request used to get this response
830830
* @param loadTime How long the response took to be sent
831831
* @return the new WebResponse

src/main/java/org/htmlunit/MockWebConnection.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,19 +485,19 @@ public void setDefaultResponse(final String content, final int statusCode,
485485
}
486486

487487
/**
488-
* Returns the additional headers that were used in the in the last call
488+
* Returns the additional headers that were used in the last call
489489
* to {@link #getResponse(WebRequest)}.
490-
* @return the additional headers that were used in the in the last call
490+
* @return the additional headers that were used in the last call
491491
* to {@link #getResponse(WebRequest)}
492492
*/
493493
public Map<String, String> getLastAdditionalHeaders() {
494494
return lastRequest_.getAdditionalHeaders();
495495
}
496496

497497
/**
498-
* Returns the {@link WebRequest} that was used in the in the last call
498+
* Returns the {@link WebRequest} that was used in the last call
499499
* to {@link #getResponse(WebRequest)}.
500-
* @return the {@link WebRequest} that was used in the in the last call
500+
* @return the {@link WebRequest} that was used in the last call
501501
* to {@link #getResponse(WebRequest)}
502502
*/
503503
public WebRequest getLastWebRequest() {

src/main/java/org/htmlunit/attachment/AttachmentHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* {@code Content-Disposition=attachment} headers. Normally pages are loaded inline: clicking on
2828
* a link, for example, loads the linked page in the current window. Attached pages are different
2929
* in that they are intended to be loaded outside of this flow: clicking on a link prompts the
30-
* user to either save the linked page, or open it outside of the current window, but does not
30+
* user to either save the linked page, or open it outside the current window, but does not
3131
* load the page in the current window.</p>
3232
*
3333
* <p>HtmlUnit complies with the semantics described above when an <code>AttachmentHandler</code> has

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected DomNode getDomNode() {
7777
* @return the nodes in this node list
7878
*/
7979
private List<E> getNodes() {
80-
// a bit of a hack but I like to avoid synchronization
80+
// a bit of a hack, but I like to avoid synchronization
8181
// see https://github.com/HtmlUnit/htmlunit/issues/882
8282
//
8383
// there is a small chance that the cachedElements_ are

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,9 @@ public <P extends Page> P dblClick() throws IOException {
12541254
* action listeners, etc. Note also that {@link #click(boolean, boolean, boolean)} is automatically
12551255
* called first.
12561256
*
1257-
* @param shiftKey {@code true} if SHIFT is pressed during the double-click
1258-
* @param ctrlKey {@code true} if CTRL is pressed during the double-click
1259-
* @param altKey {@code true} if ALT is pressed during the double-click
1257+
* @param shiftKey {@code true} if SHIFT is pressed during the double click
1258+
* @param ctrlKey {@code true} if CTRL is pressed during the double click
1259+
* @param altKey {@code true} if ALT is pressed during the double click
12601260
* @param <P> the page type
12611261
* @return the page that occupies this element's window after the element has been double-clicked
12621262
* @exception IOException if an IO error occurs
@@ -1736,12 +1736,12 @@ class NamedAttrNodeMapImpl implements Map<String, DomAttr>, NamedNodeMap, Serial
17361736

17371737
if (attributes instanceof OrderedFastHashMapWithLowercaseKeys) {
17381738
// no need to rework the map at all, we are case sensitive, so
1739-
// we keep all attributes and we got the right map from outside too
1739+
// we keep all attributes, and we got the right map from outside too
17401740
map_ = (OrderedFastHashMap) attributes;
17411741
}
17421742
else if (caseSensitive && attributes instanceof OrderedFastHashMap) {
17431743
// no need to rework the map at all, we are case sensitive, so
1744-
// we keep all attributes and we got the right map from outside too
1744+
// we keep all attributes, and we got the right map from outside too
17451745
map_ = (OrderedFastHashMap) attributes;
17461746
}
17471747
else {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public abstract class DomNode implements Cloneable, Serializable, Node {
126126
*/
127127
private HtmlUnitScriptable scriptObject_;
128128

129-
/** The ready state is an value that is available to a large number of elements. */
129+
/** The ready state is a value that is available to a large number of elements. */
130130
private String readyState_;
131131

132132
/**
@@ -879,7 +879,7 @@ public DomNode cloneNode(final boolean deep) {
879879
*
880880
* <p>Returns the JavaScript object that corresponds to this node, lazily initializing a new one if necessary.</p>
881881
*
882-
* <p>The logic of when and where the JavaScript object is created needs a clean up: functions using
882+
* <p>The logic of when and where the JavaScript object is created needs a cleanup: functions using
883883
* a DOM node's JavaScript object should not have to check if they should create it first.</p>
884884
*
885885
* @param <T> the object type

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public String getNodeName() {
437437
}
438438

439439
/**
440-
* Returns this element's tab index, if it has one. If the tab index is outside of the
440+
* Returns this element's tab index, if it has one. If the tab index is outside the
441441
* valid range (less than <code>0</code> or greater than <code>32767</code>), this method
442442
* returns {@link #TAB_INDEX_OUT_OF_BOUNDS}. If this element does not have
443443
* a tab index, or its tab index is otherwise invalid, this method returns {@code null}.
@@ -480,7 +480,7 @@ public HtmlElement getEnclosingElement(final String tagName) {
480480

481481
/**
482482
* Returns the form which contains this element, or {@code null} if this element is not inside
483-
* of a form.
483+
* a form.
484484
* @return the form which contains this element
485485
*/
486486
public HtmlForm getEnclosingForm() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ public List<HtmlElement> getElements(final Predicate<HtmlElement> filter) {
631631
* @param name the input name to search for
632632
* @param <I> the input type
633633
* @return the first input element which is a member of this form and has the specified name
634-
* @throws ElementNotFoundException if there is not input in this form with the specified name
634+
* @throws ElementNotFoundException if there is no input in this form with the specified name
635635
*/
636636
@SuppressWarnings("unchecked")
637637
public final <I extends HtmlInput> I getInputByName(final String name) throws ElementNotFoundException {

0 commit comments

Comments
 (0)