Bug 302888

Summary: Translation Question - WSW36#002
Product: [Eclipse Project] JDT Reporter: Nicko Guyer <nguyer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.6   
Target Milestone: 3.6 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Nicko Guyer CLA 2010-02-15 15:09:27 EST
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
Comment 1 Olivier Thomann CLA 2010-02-15 15:57:45 EST
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.
Comment 2 Frederic Fusier CLA 2010-03-08 13:33:16 EST
Verified