Hi Ede,

You mean in WizardPanel ?

I have been told by my IDE that these declarations are useless in interfaces.

This seems to be confirmed by this post
https://stackoverflow.com/questions/161633/should-methods-in-a-java-interface-be-declared-with-or-without-a-public-access-m?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Not sure if java 8/9 and its default methods changes anything about it

Michaël


Le 18/04/2018 à 14:50, edgar.sol...@web.de a écrit :
On 18.04.2018 13:56, jump-pilot-svn--- via Jump-pilot-devel wrote:
      /**
       * Called when the user presses Next on this panel's previous panel
       */
-    public void enteredFromLeft(Map dataMap);
+    void enteredFromLeft(Map dataMap);
hey Mike,

why did you remove the access modifier here? public makes perfect sense, as 
wizards may not necessarily reside in the same package. also subclasses in 
another package would be not be able to access those methods. see
   
http://codeinventions.blogspot.de/2014/09/default-access-modifier-in-java-or-no.html

..ede



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to