Community
Participate
Working Groups
Build Identifier: I have a question from a translator with regard to the JDT core. Clarification would be appreciated: Hello, Please, look at the following part of segment in eclipse\plugins\org.eclipse.jdt.core\org\eclipse\jdt\internal\compiler\batch\messages.properties: unusedAllocation allocating an object that is not used\n \ unusedArgument unread method parameter\n \ unusedImport + unused import declaration\n \ unusedLabel + unused label\n \ unusedLocal + unread local variable\n \ unusedPrivate + unused private member declaration\n \ unusedThrown unused declared thrown exception\ As you can notice, there seems to be two mismatches between the option tag and the explanation: unusedArgument and unusedLocal. The description is UNREAD. Is that ok? Thank you in advance. Reproducible: Always
yes, this is ok. unread means that the local is never used. You could assign a value to a local variable, but if you never read it, it is useless. So "unused local variable" could be misleading if the local variable is used in write access, but never is read access. Same applies for arguments. Hope this clarifies the documentation. Closing as INVALID as nothing needs to be done. Reopen if you want more details.
Verified