It's not a secret anymore!
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 89

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