--- a/src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java Sun Jun 09 15:48:57 2019 -0700
+++ b/src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java Mon Jun 10 05:09:52 2019 +0200
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2016, 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
@@ -782,4 +782,18 @@
public R visitOther(Tree node, P p) {
return defaultAction(node, p);
}
+
+ /**
+ * {@inheritDoc} This implementation calls {@code defaultAction}.
+ *
+ * @param node {@inheritDoc}
+ * @param p {@inheritDoc}
+ * @return the result of {@code defaultAction}
+ */
+ @Override
+ @Deprecated(forRemoval=true, since="13")
+ @SuppressWarnings("removal")
+ public R visitYield(YieldTree node, P p) {
+ return defaultAction(node, p);
+ }
}