In Java, when using multiple classes that have the same name in one class, should you always fully qualify all uses of those classes? For example:
org.foo.ClassA;
gov.bar.ClassA;
In the more specific case that one of those classes is very common in your codebase, is it acceptable to only fully qualify the unusual one? If, for example, I worked for gov.bar, but was add code from a library from org.foo?
I guess the most important question is “what do the other people who are working on the codebase expect?”. Working against a well-known coding standard is the best approach.
If you don’t know who will have to maintain code in the codebase, fully qualifying both is probably the clearest approach.