No "Exporting non-public type through public API" inspection!?
Hey there,
today I got a complaint from a colleague of mine about some code I write 5 years ago:
interface Filter {
...
}
public interface MyInterface {
Object get(Filter filter);
}
So I created a public API which can not be used outside the package because I can not call the methode as the parameter Filter is not public.
Funny thing is that his Netbeans mark it with warning: "Exporting non-public type through public API". I can't find such an inspection in IDEA Ultimate 13.
How is it possible that his stupid Netbeans beat my supirioir IDE?! :D
PS: If the method would return a non public Interface then IDEA would mark it because there is a inspection for that case.
Please sign in to leave a comment.
Hi Stefan,
It's "Class escapes defined scope" inspection
Thanks,
Anna