United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4989244 SwingSet2 demo code needs cleanup
JDK-4989244 : SwingSet2 demo code needs cleanup

Details
Type:
Enhancement
Submit Date:
2004-02-05
Status:
Open
Updated Date:
2013-05-17
Project Name:
JDK
Resolved Date:
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P4
Resolution:
Unresolved
Affected Versions:
5.0
Targeted Versions:

Related Reports

Sub Tasks

Description
Demo codes should be as clean as Java code as they are also shipped out with
the product, And customers actually see it to understand how to code that 
particular feature of Java so this should be of highest standard, 
And should not have any of following:
- Uneccessary casts.
- Unused variables.
- Unused import statements.
- Usuage of Deprecated methods.
See the attached file to see where where all of the above are used
in demo program.
Fixing of the above will:
- Make code look much more clean.
- Easy to understand(No unused variables to fool you around).
- People will use right api's and not the deprecated one's
- Make it run fast(no uneccessary casts) to some extent.

Moreover, there nature is such that removal of them will not(should not) bring
in bugs, so there is minimum risk of introduction of bugs in this fix.

                                    

Comments



Hardware and Software, Engineered to Work Together