src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java
branchJEP-349-branch
changeset 58197 0ef79bd7fb5c
parent 58180 0a8943b4d0dd
child 58200 2d147d680311
--- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java	Tue Sep 17 19:37:49 2019 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/EventStream.java	Wed Sep 18 03:45:46 2019 +0200
@@ -43,6 +43,9 @@
 /**
  * Represents a stream of events.
  * <p>
+ * The EventStream interface is not to be implemented and future version may
+ * prevent this completely.
+ * <p>
  * A stream is a sequence of events and the way to interact with a stream is to
  * register actions.
  * <p>
@@ -174,7 +177,7 @@
      * @throws SecurityException if a security manager exists and its
      *         {@code checkRead} method denies read access to the file
      */
-    public static EventStream openFile(Path file) throws IOException {
+    static EventStream openFile(Path file) throws IOException {
         return new EventFileStream(AccessController.getContext(), file);
     }