wood burning stoves*
The moose likes Java in General and the fly likes Changing the Import statement refer to same class name in different package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Changing the Import statement refer to same class name in different package" Watch "Changing the Import statement refer to same class name in different package" New topic
Author

Changing the Import statement refer to same class name in different package

Sudheer Kolanu
Greenhorn

Joined: Nov 04, 2010
Posts: 13
Hello,

I have two classes with same name in different packages. I am referring to one of those in my classes but I need to change the import to other one. Is there a quick way to change the import statements in all my classes other than changing manually.

--
Thanks,
Sudhi.
Dhaval J. Patel
Ranch Hand

Joined: Mar 10, 2011
Posts: 90

Not unless you are using an IDE. You can do a search and replace.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing the Import statement refer to same class name in different package
 
Similar Threads
question about java import
workaround for fully qualified class names?
Concearn about classloading in a "Seti@Home" kind of setup
Import or inline?
Class is Thread-Safe or not?