1.018
If defined in the same source file, allow static binding method to be a sibling of the class it provides.
For example: Consider a static binding method inside a nested class A
:
class Outer {
static class A {
@Inject static A createA() { return new A(); }
}
}
We can now choose to define createA
directly in Outer
:
class Outer {
static class A {}
@Inject static A createA() { return new A(); }
}