< prev index next >

src/java.base/share/classes/jdk/internal/module/IllegalAccessLogger.java

Print this page

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -55,11 +55,11 @@
 public final class IllegalAccessLogger {
 
     /**
      * Logger modes
      */
-    public static enum Mode {
+    public enum Mode {
         /**
          * Prints a warning when an illegal access succeeds and then
          * discards the logger so that there is no further output.
          */
         ONESHOT,

@@ -116,11 +116,11 @@
             moduleToExportedPackages.put(m, unmodifiableSet(packages));
             return this;
         }
 
         /**
-         * Builds the IllegalAccessLogger and sets it as the system-wise logger.
+         * Builds the IllegalAccessLogger and sets it as the system-wide logger.
          */
         public void complete() {
             Map<Module, Set<String>> map1 = unmodifiableMap(moduleToConcealedPackages);
             Map<Module, Set<String>> map2 = unmodifiableMap(moduleToExportedPackages);
             logger = new IllegalAccessLogger(mode, warningStream, map1, map2);
< prev index next >