< prev index next >

src/java.base/share/classes/java/lang/module/ModuleDescriptor.java

Print this page

        

*** 1329,1339 **** } /** * <p> Returns {@code true} if this is an open module. </p> * ! * <p> This method is equivalent to testing if the set of {@link #modifiers * modifiers} contains the {@link Modifier#OPEN OPEN} modifier. </p> * * @return {@code true} if this is an open module */ public boolean isOpen() { --- 1329,1339 ---- } /** * <p> Returns {@code true} if this is an open module. </p> * ! * <p> This method is equivalent to testing if the set of {@link #modifiers() * modifiers} contains the {@link Modifier#OPEN OPEN} modifier. </p> * * @return {@code true} if this is an open module */ public boolean isOpen() {
*** 1341,1351 **** } /** * <p> Returns {@code true} if this is an automatic module. </p> * ! * <p> This method is equivalent to testing if the set of {@link #modifiers * modifiers} contains the {@link Modifier#OPEN AUTOMATIC} modifier. </p> * * @return {@code true} if this is an automatic module */ public boolean isAutomatic() { --- 1341,1351 ---- } /** * <p> Returns {@code true} if this is an automatic module. </p> * ! * <p> This method is equivalent to testing if the set of {@link #modifiers() * modifiers} contains the {@link Modifier#OPEN AUTOMATIC} modifier. </p> * * @return {@code true} if this is an automatic module */ public boolean isAutomatic() {
*** 1687,1697 **** * The export * * @return This builder * * @throws IllegalStateException ! * If the {@link Exports#source package} is already declared as * exported or this builder is for an automatic module */ public Builder exports(Exports e) { if (automatic) { throw new IllegalStateException("Automatic modules cannot declare" --- 1687,1697 ---- * The export * * @return This builder * * @throws IllegalStateException ! * If the {@link Exports#source() package} is already declared as * exported or this builder is for an automatic module */ public Builder exports(Exports e) { if (automatic) { throw new IllegalStateException("Automatic modules cannot declare"
< prev index next >