IDEA doesn't ask to import package if interface isn't marked as public

from what I know interfaces in java default to being public (implicitly), but IDEA doesn't seem to ask to import the package if the interface doesn't have the public accessor in the definition.

Is this a bug?     

0
Avatar
Permanently deleted user

Interface visibility doesn't default to be public.

Interface fields default to be 'public static final' and interface methods default to 'public abstract'.

0

请先登录再写评论。