Feature Request: Import As (e.g. import java.sql.Connection as SqlConnection)

Behrang Saeedzadeh behrangsa at gmail.com
Fri Apr 1 04:33:19 UTC 2016


Hi all,

Any thoughts on this feature? I think it should be relatively simple to
implement and considering these days an app might use various types of data
storage as well as queues, etc. it is very likely for two classes with the
same name but from different packages need to be used in a given class.

This could be extended to imported static methods too, because sometimes
their names are ambiguous if they are not prefixed with their respective
classes.

import static java.lang.String.format as stringFormat;
// or
import static java.lang.String.format as sformat;
// or
import static java.lang.String.format as formats;

Best regards,
Behrang Saeedzadeh


More information about the discuss mailing list