3 ms·
That's a real problem that I've encountered. There were three web services which I consumed. They used a lot of classes with the same name and I had to work wit
by vbezhenar 8y ago
That's a real problem that I've encountered. There were three web services which I consumed. They used a lot of classes with the same name and I had to work with them from one class. I had to use fully qualified names everywhere. At one point I rewrote this code using Kotlin. Kotlin had this feature, you could write "import com.package.foo.bar" and you could use "bar.Something" in your code. My code was sane. But in some release they decided to remove that feature for some reason.
- ptx 8y agoYou can still write import com.package.foo.bar.Something as barSomething according to the documentation: https://kotlinlang.org/docs/reference/packages.html https://kotlinlang.org/docs/reference/packages.html Although you'd have to do it for each class, so importing the whole package with an alias would be nice.