JDK-8289381 : Fix warnings: The assignment to variable has no effect
  • Type: Bug
  • Component: javafx
  • Sub-Component: build
  • Affected Version: openjfx19
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-28
  • Updated: 2022-09-10
  • Resolved: 2022-07-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx19Fixed
Related Reports
Blocks :  
Relates :  
Description
Eclipse Version 2022-06 (4.24.0) reports this warning in the following places:

```
Description	Resource	Location	Path
The assignment to variable b has no effect	ClassWithCollection.java	line 46	/fxml/src/test/java/test/com/sun/javafx/fxml/builder
The assignment to variable mode has no effect	Shape.java	line 406	/graphics/src/main/java/javafx/scene/shape (see JDK-8279297)
The assignment to variable value has no effect	BooleanTypeTest.java	line 56	/graphics/src/test/java/test/com/sun/javafx/css
```

Comments
Changeset: 187fbe1e Author: Andy Goryachev <andy.goryachev@oracle.com> Committer: Nir Lisker <nlisker@openjdk.org> Date: 2022-07-08 21:09:45 +0000 URL: https://git.openjdk.org/jfx/commit/187fbe1e4f41de023fdff245f48370d146d671aa
08-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/822 Date: 2022-07-08 20:11:22 +0000
08-07-2022