Skip to content

Commit 0b8c569

Browse files
committed
fix warnings
1 parent ed49eca commit 0b8c569

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/main/java/org/htmlunit/cyberneko/xerces/dom/CharacterDataImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public abstract class CharacterDataImpl extends ChildNode {
3636
protected String data_;
3737

3838
/** Empty child nodes. */
39-
private static final NodeList singletonNodeList = new NodeList() {
39+
private static final NodeList EMPTY_NODE_LIST_SINGLETON = new NodeList() {
4040
@Override
4141
public Node item(final int index) {
4242
return null;
@@ -64,7 +64,7 @@ protected CharacterDataImpl(final CoreDocumentImpl ownerDocument, final String d
6464
*/
6565
@Override
6666
public NodeList getChildNodes() {
67-
return singletonNodeList;
67+
return EMPTY_NODE_LIST_SINGLETON;
6868
}
6969

7070
/*

src/test/java/org/htmlunit/cyberneko/AbstractCanonicalTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ public abstract class AbstractCanonicalTest {
6767
= new File("target/data/output");
6868

6969
protected static Stream<Arguments> testFiles() {
70-
// System.out.println(canonicalDir.getAbsolutePath());
7170
OUTOUT_DIR.mkdirs();
7271

7372
final List<File> dataFiles = new ArrayList<>();

src/test/java/org/htmlunit/cyberneko/util/FastHashMapTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ public void growFromSmall_InfiniteLoopIsssue() {
289289
* Test serialization, should work out of the box, just to
290290
* ensure nobody removes that.
291291
*
292-
* @throws IOException
293-
* @throws ClassNotFoundException
292+
* @throws IOException in case of error
293+
* @throws ClassNotFoundException in case of error
294294
*/
295295
@Test
296296
public void serializable() throws IOException, ClassNotFoundException {

0 commit comments

Comments
 (0)