You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2019/12/10 12:50:01 UTC

[lucene-solr] branch branch_8x updated: Fix 5 javac warnings: 'yield' may become a restricted identifier in a future release.

This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new b7fa017  Fix 5 javac warnings: 'yield' may become a restricted identifier in a future release.
b7fa017 is described below

commit b7fa0171e5dc6e917051f729c946cbeefeef4b63
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Tue Dec 10 12:32:34 2019 +0000

    Fix 5 javac warnings: 'yield' may become a restricted identifier in a future release.
---
 solr/core/src/test/org/apache/solr/core/SolrCoreTest.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/solr/core/src/test/org/apache/solr/core/SolrCoreTest.java b/solr/core/src/test/org/apache/solr/core/SolrCoreTest.java
index d9411ba..6553c7e 100644
--- a/solr/core/src/test/org/apache/solr/core/SolrCoreTest.java
+++ b/solr/core/src/test/org/apache/solr/core/SolrCoreTest.java
@@ -192,7 +192,7 @@ public class SolrCoreTest extends SolrTestCaseJ4 {
     final CoreContainer cores = h.getCoreContainer();
     for (int i = 0; i < MT; ++i) {
       Callable<Integer> call = new Callable<Integer>() {
-        void yield(int n) {
+        void yieldInt(int n) {
           try {
             Thread.sleep(0, (n % 13 + 1) * 10);
           } catch (InterruptedException xint) {
@@ -208,16 +208,16 @@ public class SolrCoreTest extends SolrTestCaseJ4 {
               r += 1;
               core = cores.getCore(SolrTestCaseJ4.DEFAULT_TEST_CORENAME);
               // sprinkle concurrency hinting...
-              yield(l);
+              yieldInt(l);
               assertTrue("Refcount < 1", core.getOpenCount() >= 1);              
-              yield(l);
+              yieldInt(l);
               assertTrue("Refcount > 17", core.getOpenCount() <= 17);             
-              yield(l);
+              yieldInt(l);
               assertTrue("Handler is closed", handler1.closed == false);
-              yield(l);
+              yieldInt(l);
               core.close();
               core = null;
-              yield(l);
+              yieldInt(l);
             }
             return r;
           } finally {