src/java.compiler/share/classes/javax/annotation/processing/ProcessingEnvironment.java
--- a/src/java.compiler/share/classes/javax/annotation/processing/ProcessingEnvironment.java Mon Apr 15 12:35:29 2019 -0700
+++ b/src/java.compiler/share/classes/javax/annotation/processing/ProcessingEnvironment.java Mon Apr 15 15:44:42 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2019, 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
@@ -131,4 +131,18 @@
* effect
*/
Locale getLocale();
+
+ /**
+ * Returns {@code true} if <em>preview features</em> are enabled
+ * and {@code false} otherwise.
+ * @return whether or not preview features are enabled
+ *
+ * @implSpec The default implementation of this method returns
+ * {@code false}.
+ *
+ * @since 13
+ */
+ default boolean isPreviewEnabled() {
+ return false;
+ }
}