Page 1 of 1

enthuware.ocpjp.v11.2.3380

Posted: Sat Apr 17, 2021 8:08 pm
by ketank
Excerpts from justification for option #1

...
However, note that if a warning is suppressed in a module-info file, the suppression applies to elements within the file and not to types contained within the module.
...

Could you pls elaborate this with an example.



Thx.

Re: enthuware.ocpjp.v11.2.3380

Posted: Sun Apr 18, 2021 12:35 am
by admin
Not sure what kind of example are you looking for. All it means is that if you apply @SuppressWarnings to an element in a module-info then it will not suppress the warnings emanating from the classes contained in that module.
It is not really important for the exam but provided just as information.
You may see this to get an idea : https://stackoverflow.com/questions/496 ... odule-warn

Re: enthuware.ocpjp.v11.2.3380

Posted: Sun Apr 18, 2021 4:39 am
by ketank
Thanks