I'm extending an open source library written in Java released under the BSD License. That library has a class, let's call it Utils
, that exposes a lot of static methods. The common use case is to import all the exposed methods in a static import, i.e.
import static org.acme.Utils.*;
Now, I'm creating new functions in my brand new open source library to extend the one from company acme. I'm wondering if is lecit to do
package org.myself;
import org.acme.Utils;
public class MyUtils extends Utils{
...
}
such that I can then use a single import
import static org.myself.MyUtils.*;
instead of
import static org.acme.Utils.*;
import static org.myself.MyUtils.*;