Skip to content

Commit 704baa3

Browse files
8289396: Fix warnings: Null pointer access: The variable instance can only be null at this location
Reviewed-by: kcr
1 parent b9f3907 commit 704baa3

File tree

1 file changed

+1
-12
lines changed
  • modules/javafx.graphics/src/test/java/test/javafx/css

1 file changed

+1
-12
lines changed

modules/javafx.graphics/src/test/java/test/javafx/css/RuleTest.java

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -166,17 +166,6 @@ public void testApplies() {
166166
fail("The test case is a prototype.");
167167
}
168168

169-
@Ignore("JDK-8234154")
170-
@Test
171-
public void testToString() {
172-
System.out.println("toString");
173-
Rule instance = null;
174-
String expResult = "";
175-
String result = instance.toString();
176-
assertEquals(expResult, result);
177-
fail("The test case is a prototype.");
178-
}
179-
180169
@Ignore("JDK-8234154")
181170
@Test
182171
public void testWriteBinary() throws Exception {

0 commit comments

Comments
 (0)