Skip to content

Commit fc6963b

Browse files
committed
empty line code style
1 parent e4e3076 commit fc6963b

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

checkstyle.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@
114114

115115
<property name="tabWidth" value="4"/>
116116

117+
<module name="EmptyLineSeparator">
118+
<property name="allowMultipleEmptyLines" value="false"/>
119+
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
120+
<property name="tokens" value="IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, RECORD_DEF, COMPACT_CTOR_DEF"/>
121+
</module>
122+
117123
<module name="AnnotationUseStyle"/>
118124

119125
<module name="LeftCurly">

src/main/java/org/htmlunit/BrowserVersion.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ public final class BrowserVersion implements Serializable {
296296
private final HashSet<MediaResourceType> maybeMediaResource_;
297297
private final HashSet<MediaResourceType> probablyMediaResources_;
298298

299-
300299
/**
301300
* Creates a new browser version instance.
302301
*
@@ -920,7 +919,6 @@ public int getPixelsPerChar() {
920919
return 10;
921920
}
922921

923-
924922
/**
925923
* Performs this operation.
926924
*

src/main/java/org/htmlunit/javascript/JavaScriptEngine.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,7 @@ public Object doRun(final Context cx) {
875875
}
876876
return ScriptRuntime.doTopCall(function, cx, scope, thisObject, args, cx.isStrictMode());
877877
}
878+
878879
@Override
879880
protected String getSourceCode(final Context cx) {
880881
return cx.decompileFunction(function, 2);

src/main/java/org/htmlunit/util/EncodingSniffer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,17 +684,21 @@ static class Attribute {
684684
private final String name_;
685685
private final String value_;
686686
private final int updatedIndex_;
687+
687688
Attribute(final String name, final String value, final int updatedIndex) {
688689
name_ = name;
689690
value_ = value;
690691
updatedIndex_ = updatedIndex;
691692
}
693+
692694
String getName() {
693695
return name_;
694696
}
697+
695698
String getValue() {
696699
return value_;
697700
}
701+
698702
int getUpdatedIndex() {
699703
return updatedIndex_;
700704
}

0 commit comments

Comments
 (0)