Eclipse Version 2022-06 (4.24.0) reports this warning in the following places:
```
Null pointer access: The variable instance can only be null at this location RuleTest.java line 175 /graphics/src/test/java/test/javafx/css
```
This code cannot be right:
@Ignore("JDK-8234154")
@Test
public void testToString() {
System.out.println("toString");
Rule instance = null;
String expResult = "";
String result = instance.toString(); // <---- NPE
assertEquals(expResult, result);
fail("The test case is a prototype.");
}
```
Null pointer access: The variable instance can only be null at this location RuleTest.java line 175 /graphics/src/test/java/test/javafx/css
```
This code cannot be right:
@Ignore("JDK-8234154")
@Test
public void testToString() {
System.out.println("toString");
Rule instance = null;
String expResult = "";
String result = instance.toString(); // <---- NPE
assertEquals(expResult, result);
fail("The test case is a prototype.");
}
- blocks
-
JDK-8289379 ☂ Fix errors and warnings generated by Eclipse
-
- Resolved
-