Skip to content

Commit c522dce

Browse files
committed
1 parent f0c4ed8 commit c522dce

28 files changed

Lines changed: 277 additions & 277 deletions

src/main/java/org/htmlunit/DefaultPageCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static PageType determinePageType(final String contentType) {
150150
/**
151151
* Determines the kind of page to create from the content type.
152152
* @param webResponse the response to investigate
153-
* @exception IOException if an IO problem occurs
153+
* @throws IOException if an IO problem occurs
154154
* @return "xml", "html", "javascript", "text" or "unknown"
155155
*/
156156
public static PageType determinePageType(final WebResponse webResponse) throws IOException {
@@ -207,7 +207,7 @@ public static PageType determinePageType(final WebResponse webResponse) throws I
207207
*
208208
* @param webResponse the response from the server
209209
* @param webWindow the window that this page will be loaded into
210-
* @exception IOException if an IO problem occurs
210+
* @throws IOException if an IO problem occurs
211211
* @return the new page object
212212
*/
213213
@Override

src/main/java/org/htmlunit/PageCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface PageCreator {
3535
*
3636
* @param webResponse the response from the server
3737
* @param webWindow the window that this page will be loaded into
38-
* @exception IOException If an io problem occurs
38+
* @throws IOException If an io problem occurs
3939
* @return the new page
4040
*/
4141
Page createPage(WebResponse webResponse, WebWindow webWindow) throws IOException;

src/main/java/org/htmlunit/SgmlPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public Comment createComment(final String data) {
362362
* @param entityReferenceExpansion The value of this flag determines
363363
* whether entity reference nodes are expanded.
364364
* @return The newly created <code>NodeIterator</code>.
365-
* @exception DOMException
365+
* @throws DOMException
366366
* NOT_SUPPORTED_ERR: Raised if the specified <code>root</code> is <code>null</code>.
367367
*/
368368
public DomNodeIterator createNodeIterator(final Node root, final int whatToShow, final NodeFilter filter,

src/main/java/org/htmlunit/WebConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface WebConnection extends AutoCloseable {
3131
* Submits a request and retrieves a response.
3232
* @param request the request
3333
* @return the response to the request defined by the specified request
34-
* @exception IOException if an IO error occurs
34+
* @throws IOException if an IO error occurs
3535
*/
3636
WebResponse getResponse(WebRequest request) throws IOException;
3737

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ public String toString() {
940940
*
941941
* @param <P> the page type
942942
* @return the page contained in the current window as returned by {@link WebClient#getCurrentWindow()}
943-
* @exception IOException if an IO error occurs
943+
* @throws IOException if an IO error occurs
944944
*/
945945
public <P extends Page> P click() throws IOException {
946946
return click(false, false, false);
@@ -961,7 +961,7 @@ public <P extends Page> P click() throws IOException {
961961
* @param altKey {@code true} if ALT is pressed during the click
962962
* @param <P> the page type
963963
* @return the page contained in the current window as returned by {@link WebClient#getCurrentWindow()}
964-
* @exception IOException if an IO error occurs
964+
* @throws IOException if an IO error occurs
965965
*/
966966
public <P extends Page> P click(final boolean shiftKey, final boolean ctrlKey, final boolean altKey)
967967
throws IOException {
@@ -985,7 +985,7 @@ public <P extends Page> P click(final boolean shiftKey, final boolean ctrlKey, f
985985
* @param triggerMouseEvents if true trigger the mouse events also
986986
* @param <P> the page type
987987
* @return the page contained in the current window as returned by {@link WebClient#getCurrentWindow()}
988-
* @exception IOException if an IO error occurs
988+
* @throws IOException if an IO error occurs
989989
*/
990990
public <P extends Page> P click(final boolean shiftKey, final boolean ctrlKey, final boolean altKey,
991991
final boolean triggerMouseEvents) throws IOException {
@@ -1018,7 +1018,7 @@ protected boolean isDisabledElementAndDisabled() {
10181018
* @param disableProcessLabelAfterBubbling ignore label processing
10191019
* @param <P> the page type
10201020
* @return the page contained in the current window as returned by {@link WebClient#getCurrentWindow()}
1021-
* @exception IOException if an IO error occurs
1021+
* @throws IOException if an IO error occurs
10221022
*/
10231023
@SuppressWarnings("unchecked")
10241024
public <P extends Page> P click(final boolean shiftKey, final boolean ctrlKey, final boolean altKey,
@@ -1134,7 +1134,7 @@ protected DomNode getEventTargetElement() {
11341134
* @param ignoreVisibility whether to ignore visibility or not
11351135
* @param <P> the page type
11361136
* @return the page contained in the current window as returned by {@link WebClient#getCurrentWindow()}
1137-
* @exception IOException if an IO error occurs
1137+
* @throws IOException if an IO error occurs
11381138
*/
11391139
@SuppressWarnings("unchecked")
11401140
public <P extends Page> P click(final Event event,
@@ -1240,7 +1240,7 @@ protected ScriptResult doClickFireClickEvent(final Event event) {
12401240
*
12411241
* @param <P> the page type
12421242
* @return the page that occupies this element's window after the element has been double-clicked
1243-
* @exception IOException if an IO error occurs
1243+
* @throws IOException if an IO error occurs
12441244
*/
12451245
public <P extends Page> P dblClick() throws IOException {
12461246
return dblClick(false, false, false);
@@ -1258,7 +1258,7 @@ public <P extends Page> P dblClick() throws IOException {
12581258
* @param altKey {@code true} if ALT is pressed during the double click
12591259
* @param <P> the page type
12601260
* @return the page that occupies this element's window after the element has been double-clicked
1261-
* @exception IOException if an IO error occurs
1261+
* @throws IOException if an IO error occurs
12621262
*/
12631263
@SuppressWarnings("unchecked")
12641264
public <P extends Page> P dblClick(final boolean shiftKey, final boolean ctrlKey, final boolean altKey)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public HtmlForm getEnclosingFormOrDie() {
523523
* Simulates typing the specified text while this element has focus.
524524
* Note that for some elements, typing '\n' submits the enclosed form.
525525
* @param text the text you with to simulate typing
526-
* @exception IOException If an IO error occurs
526+
* @throws IOException If an IO error occurs
527527
*/
528528
public void type(final String text) throws IOException {
529529
for (final char ch : text.toCharArray()) {
@@ -539,7 +539,7 @@ public void type(final String text) throws IOException {
539539
*
540540
* @param c the character you wish to simulate typing
541541
* @return the page that occupies this window after typing
542-
* @exception IOException if an IO error occurs
542+
* @throws IOException if an IO error occurs
543543
*/
544544
public Page type(final char c) throws IOException {
545545
return type(c, true);
@@ -554,7 +554,7 @@ public Page type(final char c) throws IOException {
554554
* @param c the character you wish to simulate typing
555555
* @param lastType is this the last character to type
556556
* @return the page contained in the current window as returned by {@link WebClient#getCurrentWindow()}
557-
* @exception IOException if an IO error occurs
557+
* @throws IOException if an IO error occurs
558558
*/
559559
private Page type(final char c, final boolean lastType)
560560
throws IOException {
@@ -667,7 +667,7 @@ public Page type(final int keyCode) {
667667
*
668668
* @param keyboard the keyboard
669669
* @return the page that occupies this window after typing
670-
* @exception IOException if an IO error occurs
670+
* @throws IOException if an IO error occurs
671671
*/
672672
public Page type(final Keyboard keyboard) throws IOException {
673673
Page page = null;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ private void readImageIfNeeded() throws IOException {
740740
* @param x the x position of the click
741741
* @param y the y position of the click
742742
* @return the page contained by this image's window after the click
743-
* @exception IOException if an IO error occurs
743+
* @throws IOException if an IO error occurs
744744
*/
745745
public Page click(final int x, final int y) throws IOException {
746746
lastClickX_ = x;
@@ -760,7 +760,7 @@ public Page click(final int x, final int y) throws IOException {
760760
* same as the original page, depending on JavaScript event handlers, etc.
761761
*
762762
* @return the page contained by this image's window after the click
763-
* @exception IOException if an IO error occurs
763+
* @throws IOException if an IO error occurs
764764
*/
765765
@Override
766766
@SuppressWarnings("unchecked")

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public NameValuePair[] getSubmitNameValuePairs() {
9696
* that wish to expose it will override and make it public.
9797
*
9898
* @return the Page that is the result of submitting this page to the server
99-
* @exception IOException If an IO error occurs
99+
* @throws IOException If an IO error occurs
100100
*/
101101
@Override
102102
@SuppressWarnings("unchecked")
@@ -127,8 +127,8 @@ protected boolean doClickStateUpdate(final boolean shiftKey, final boolean ctrlK
127127
* @param x the x coordinate of the pointing device at the time of clicking
128128
* @param y the y coordinate of the pointing device at the time of clicking
129129
* @return the page that is loaded after the click has taken place
130-
* @exception IOException If an IO error occurs
131-
* @exception ElementNotFoundException If a particular XML element could not be found in the DOM model
130+
* @throws IOException If an IO error occurs
131+
* @throws ElementNotFoundException If a particular XML element could not be found in the DOM model
132132
*/
133133
public <P extends Page> P click(final int x, final int y) throws IOException, ElementNotFoundException {
134134
wasPositionSpecified_ = true;
@@ -149,7 +149,7 @@ public <P extends Page> P click(final int x, final int y) throws IOException, El
149149
* @param <P> the page type
150150
* @return the page contained in the current window as returned by
151151
* {@link org.htmlunit.WebClient#getCurrentWindow()}
152-
* @exception IOException if an IO error occurs
152+
* @throws IOException if an IO error occurs
153153
*/
154154
@Override
155155
public <P extends Page> P click(final Event event,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ public HtmlAnchor getAnchorByText(final String text) throws ElementNotFoundExcep
699699
* Returns the first form that matches the specified name.
700700
* @param name the name to search for
701701
* @return the first form
702-
* @exception ElementNotFoundException If no forms match the specified result.
702+
* @throws ElementNotFoundException If no forms match the specified result.
703703
*/
704704
public HtmlForm getFormByName(final String name) throws ElementNotFoundException {
705705
final List<HtmlForm> forms = getDocumentElement()
@@ -724,7 +724,7 @@ public List<HtmlForm> getForms() {
724724
*
725725
* @param relativeUrl the relative URL
726726
* @return the fully-qualified URL for the specified relative URL
727-
* @exception MalformedURLException if an error occurred when creating a URL object
727+
* @throws MalformedURLException if an error occurred when creating a URL object
728728
*/
729729
public URL getFullyQualifiedUrl(String relativeUrl) throws MalformedURLException {
730730
// to handle http: and http:/ in FF (Bug #474)
@@ -1588,7 +1588,7 @@ public List<FrameWindow> getFrames() {
15881588
* Returns the first frame contained in this page with the specified name.
15891589
* @param name the name to search for
15901590
* @return the first frame found
1591-
* @exception ElementNotFoundException If no frame exist in this page with the specified name.
1591+
* @throws ElementNotFoundException If no frame exist in this page with the specified name.
15921592
*/
15931593
public FrameWindow getFrameByName(final String name) throws ElementNotFoundException {
15941594
for (final BaseFrameElement frameElement : frameElements_) {

0 commit comments

Comments
 (0)