reduced scope imports

V

VisionSet

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
 
R

ricky.clarkson

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.
 
V

VisionSet

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top