I have a method in my static state machine that is only used once when my application is first fired up. The method needs to be public, but I still want it hidden. Is there a way to use an annotation or something that will hide the method from the rest of the project?
Share
Once you declare public method it becomes part of your class’s contract. You can’t hide it because all class users will expect this method to be available.