Consider the following:
package foo
class Bar {
boolean isOne() {}
}
class Baz extends Bar {
boolean isTwo() {}
}
import static foo.Bar.isOne
import static foo.Bar.*
import static foo.Baz.*
isOne()
isTwo()
one
two
The later source unit can have its import statements reduced to just "import static foo.Baz.*" because it covers all other static imports.
Consider the following:
The later source unit can have its import statements reduced to just "import static foo.Baz.*" because it covers all other static imports.