sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 03/03: Avoid direct use of a word which become a keyword in latest Java versions.
Date Mon, 17 Aug 2020 18:18:53 GMT
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 <martin.desruisseaux@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.
                     }
                 }
             }


Mime
View raw message