You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2020/08/17 18:18:53 UTC

[sis] 03/03: Avoid direct use of a word which become a keyword in latest Java versions.

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

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit 58e66f5f6943bc7e761e87db8a152d82741c292b
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Mon Aug 17 15:17:08 2020 +0200

    Avoid direct use of a word which become a keyword in latest Java versions.
---
 .../src/test/java/org/apache/sis/util/collection/CacheTest.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/sis-utility/src/test/java/org/apache/sis/util/collection/CacheTest.java b/core/sis-utility/src/test/java/org/apache/sis/util/collection/CacheTest.java
index f11396f..662eb18 100644
--- a/core/sis-utility/src/test/java/org/apache/sis/util/collection/CacheTest.java
+++ b/core/sis-utility/src/test/java/org/apache/sis/util/collection/CacheTest.java
@@ -246,7 +246,7 @@ public final strictfp class CacheTest extends TestCase {
                     }
                     if (expected == value) {                            // Identity comparison (not value comparison).
                         addCount++;
-                        yield();                                        // Gives a chance to other threads.
+                        Thread.yield();                                 // Gives a chance to other threads.
                     }
                 }
             }