Bug 38189 - Java: set but not used local variable in tight loop
Summary: Java: set but not used local variable in tight loop
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: xml (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 09:26 UTC by David Binderman
Modified: 2017-08-02 11:47 UTC (History)
4 users (show)

See Also:
Host: suse-linux-x86_64
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2008-11-20 09:26:29 UTC
I just had a look at some of the source code of the Java package in
the GNU gcc version 4.4.0 snapshot 20081114

gcc-4.4-20081114/libjava/classpath/gnu/xml/aelfred2/XmlParser.java:3205   Avoid unused local variables such as 'ampRead'.

I have checked the source code and I agree.
Suggest remove set but not used local variable, especially since it is written
to for each character read.
Comment 1 David Binderman 2017-07-26 07:17:03 UTC
Source code gone.
Comment 2 Andrew John Hughes 2017-08-02 11:47:47 UTC
No, this is a Classpath bug. Stop closing them!

http://git.savannah.gnu.org/cgit/classpath.git/log/