Skip to content

Commit

Permalink
fix last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Nov 19, 2023
1 parent 053eff6 commit d510aa2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 118 deletions.
113 changes: 0 additions & 113 deletions src/main/java/org/htmlunit/javascript/MethodWrapper.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected CSSFontFaceRule(final CSSStyleSheet stylesheet, final CSSFontFaceRuleI
* {@inheritDoc}
*/
@Override
public short getType() {
public int getType() {
return FONT_FACE_RULE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* @author Marc Guillemot
* @author Frank Danek
* @author Ahmed Ashour
* @author Ronald Brill
*/
@JsxClass
public class DOMException extends HtmlUnitScriptable {
Expand Down Expand Up @@ -120,7 +121,7 @@ public class DOMException extends HtmlUnitScriptable {
@JsxConstant(IE)
public static final int SERIALIZE_ERR = 82;

private final short code_;
private final int code_;
private final String message_;
private int lineNumber_;
private String fileName_;
Expand All @@ -139,7 +140,7 @@ public DOMException() {
* @param message the exception message
* @param errorCode the error code
*/
public DOMException(final String message, final short errorCode) {
public DOMException(final String message, final int errorCode) {
code_ = errorCode;
message_ = message;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/htmlunit/javascript/host/event/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public class Event extends HtmlUnitScriptable {
* The current event phase. This is a W3C standard attribute. One of {@link #NONE},
* {@link #CAPTURING_PHASE}, {@link #AT_TARGET} or {@link #BUBBLING_PHASE}.
*/
private short eventPhase_;
private int eventPhase_;

/**
* Whether or not the event bubbles. The value of this attribute depends on the event type. To
Expand Down Expand Up @@ -886,7 +886,7 @@ public int getEventPhase() {
*
* @param phase the phase the event is in
*/
public void setEventPhase(final short phase) {
public void setEventPhase(final int phase) {
if (phase != CAPTURING_PHASE && phase != AT_TARGET && phase != BUBBLING_PHASE) {
throw new IllegalArgumentException("Illegal phase specified: " + phase);
}
Expand Down

0 comments on commit d510aa2

Please sign in to comment.