Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342031 - Coding conventions: set the number of import needed for .* to 99
Summary: Coding conventions: set the number of import needed for .* to 99
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-06 10:30 EDT by Rüdiger Herrmann CLA
Modified: 2012-03-29 07:13 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-04-06 10:30:15 EDT
As we recently changed some of our coding conventions I would like to take the opportunity and suggest another change:
Set the number of imports needed for .* (e.g. org.eclipse.rwt.widgets.*) to 99 (currently 3)
With this change, it would be easier to deal with classes that have the same simple name but reside in different packages.
Though this leads to larger import statements, the extra amount of lines is not noticable as this section is usually collapsed.

For example:
Using 3 or more classes from the org.eclipse.swt.widgets package leads to this import statement:
  org.eclipse.swt.widgets.*
Using class List from java.util becomes difficult as it is mistaken for class List from the widgets package.
Comment 1 Ralf Sternberg CLA 2011-04-17 15:17:12 EDT
+1
Comment 2 Rüdiger Herrmann CLA 2011-04-18 03:33:53 EDT
In my opinion it makes sense to schedule this for one of the RC's
Comment 3 Ivan Furnadjiev CLA 2012-03-29 07:13:27 EDT
This has been fixed for org.eclipse.rap.rwt bundle in 1.5M2.