Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

reduced scope imports

Thread view: 
VisionSet - 16 Dec 2005 20:12 GMT
I'd quite like this feature

import my.package.MyClass.myMethod; // import all overloaded versions of
myMethod

I want to see my dependencies broken down more and self documented up top

--
Mike W
ricky.clarkson@gmail.com - 17 Dec 2005 13:48 GMT
Static imports might help you:

import static my.package.MyClass.myMethod;

However, using even normal imports for dependency documentation is
flaky, as you can always fully qualify the name.

If you use minimal interfaces (as opposed to humane interfaces) then
importing the interface type is enough to see the dependencies, really.
VisionSet - 17 Dec 2005 14:29 GMT
> Static imports might help you:
>
> import static my.package.MyClass.myMethod;

ahh yes, thanks

> However, using even normal imports for dependency documentation is
> flaky, as you can always fully qualify the name.
>
> If you use minimal interfaces (as opposed to humane interfaces) then
> importing the interface type is enough to see the dependencies, really.

Yes but as an intermediate/during refactoring to that stage, the above
suggestion will be useful.

--
Mike W


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.