-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModelConverter classes should expose Java collections objects rather than scala #438
Comments
In the meantime how can I redefine i.e. UPDATE: the following hack works ...
@Override
public Set<String> ignoredPackages() {
scala.collection.mutable.LinkedHashSet set = new scala.collection.mutable.LinkedHashSet()
def pkgs = [
'java.lang',
'groovy.lang',
'java.util'
] as LinkedHashSet
pkgs << delegateConverter.ignoredPackages()
pkgs.each {set.add (it)}
set.toSet()
}
... |
There is a hideous set of tools in the |
Here is an example for
|
Cool. Many thanks! Inviato da Samsung Mobile Shadow Man notifications@github.com ha scritto: Here is an example for java.util.Set to scala.collection.immutable.Set that isn't too much of a PITA: java.util.Set javaUtilOverrides = new HashSet( |
moved to #588 |
ModelConverter classes all expect and return scala immutable collections objects. This makes it very difficult to work with them in Java. If they would expose Java collections objects, it would be much easier.
Methods: ignoredClasses, ignoredPackages, typeMap, skippedClasses
The text was updated successfully, but these errors were encountered: