2

Is there any tool out there that can remove/strip/delete the "public" modifier on Java interface method declarations?

Thanks!

Vanhel
  • 29
  • 2
  • 2
    your IDE + regex may be enough for your use case. – assylias Aug 02 '16 at 13:46
  • 2
    Just curious: What's the point? They are still public. – Andreas Aug 02 '16 at 13:48
  • 2
    @Andreas, I think that [*is* the point](http://stackoverflow.com/questions/161633/should-methods-in-a-java-interface-be-declared-with-or-without-a-public-access-m). – aioobe Aug 02 '16 at 13:50
  • IntellijJ will do it easily. Get a better IDE. – duffymo Aug 02 '16 at 13:52
  • 4
    IntelliJ: Analyze / Run Inspection by Name / search for "Unnecessary interface modifier" / Fix All – Jesper Aug 02 '16 at 13:54
  • Tried IntelliJ (latest).. Unnecessary interface modifier apparently some of our Java 8 interfaces holding static and default methods. I'm not used to IntelliJ, so maybe this is a config/user issue.. though you'd expect the tool to detect project JDK versions.. – Vanhel Aug 03 '16 at 14:24
  • .. apparently [breaks] some of... – Vanhel Aug 03 '16 at 14:29

0 Answers0