You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "negora (via GitHub)" <gi...@apache.org> on 2024/02/19 10:14:16 UTC
Re: [I] Warning about unused variable disappears when adding private nested record [netbeans]
negora commented on issue #4709:
URL: https://github.com/apache/netbeans/issues/4709#issuecomment-1952120238
Just a little update about the first case that I presented in this report. If I remove all the fields of the `record` and leave it empty, the warning the appears again. Example:
```java
public class MyClass {
public void myMethod () {
int x = 1;
// ^^^ Unused variable.
}
private record MyRecord () {
// ^^^ Empty record.
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists