lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Import alias feature #584

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Enhancement request:

@Alias(a.b.Foo, "Bar")
package my.package.name;

import x.y.Foo;

class X {
    private void y() {
        Bar b = new Bar(); // look ma, is really a a.b.Foo!
        Foo foo = new Foo();
    }
}

This would avoid namespace collisions that result in using awkward fully 
qualified class names.

Original issue reported on code.google.com by PaulAlex...@gmail.com on 3 Oct 2013 at 12:49

GoogleCodeExporter commented 9 years ago
Please mark as Enhancement

Original comment by PaulAlex...@gmail.com on 3 Oct 2013 at 12:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This looks like issue 290

Original comment by askon...@gmail.com on 7 Oct 2013 at 5:24