Of course this relates to the classes that won't cause name clash after
optimization, so this functionality has to be smart.
The class from the same package as the current class can still become
unqualified (not your particular case)

-----Original Message-----
From: "dimiter" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Wed, 17 Jul 2002 13:38:41 +0300
Subject: [Eap-features] Re: Code style - optimize imports...

> 
> what about:
> 
> java.sql.Date sqlDate = new java.sql.Date(new java.util.Date().getTime());
> 
> 
> "Igor Karpov" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > There is an "optimize imports" functionality that is fine, but what I need
> is
> > to convert existing code that uses fully-qualified names for no real
> reason to
> > the code with the corresponding import statement and ususal plain names.
> >
> > Example
> >
> > // Before
> >
> > com.abc.Type1 doSomething1() {...}
> > com.abc.Type2 doSomething2() {...}
> > com.abc.Type1 doSomething2() {...}
> > com.abc.Type2 doSomething4() {...}
> > // a lot..
> >
> > // After
> >
> > import com.abc.Type1;
> > import com.abc.Type2;
> >
> > Type1 doSomething1() {...}
> > Type2 doSomething2() {...}
> > Type1 doSomething2() {...}
> > Type2 doSomething4() {...}
> >
> > So it is the import optimization, isn't it? Would be nice if IDEA
> supported it.
> >
> >
> > ------------------------------------
> > Mail.Ru - ������, ��������, �������!
> > ------------------------------------
> 
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://lists.jetbrains.com/mailman/listinfo/eap-features
> 


------------------------------------
Mail.Ru - ������, ��������, �������!
------------------------------------
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to