commit | 1e03b2c133c9f300155550c0633ea185b411b765 | [log] [tgz] |
---|---|---|
author | Alexander Kurtakov <akurtako@redhat.com> | Mon Apr 04 13:08:24 2022 +0300 |
committer | Alexander Kurtakov <akurtako@redhat.com> | Mon Apr 04 07:01:33 2022 -0400 |
tree | 3fb6a4ff14bbbf1da6ea26c991846eb52b91fa86 | |
parent | 9bfeb976fbf87f312e00cac9bf8e91c19ae27d04 [diff] |
Use Thread.yield() instead of yield() As per https://openjdk.java.net/jeps/361 yield is restricted identifier and this breaks javadoc build with Java 17 with: " ../../../eclipse.platform.ui/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/application/WorkbenchAdvisor.java:759: error: invalid use of a restricted identifier 'yield' yield(); ^ (to invoke a method called yield, qualify the yield with a receiver or type name) " Signed-off-by: Alexander Kurtakov <akurtako@redhat.com> Change-Id: Ib769d0e744c786871dffb94bd297f96c2c9ddb8e Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/192465 Tested-by: Alexander Kurtakov <akurtako@redhat.com> Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/application/WorkbenchAdvisor.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/application/WorkbenchAdvisor.java index 0c2a221..2489894 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/application/WorkbenchAdvisor.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/application/WorkbenchAdvisor.java
@@ -756,7 +756,7 @@ error[0] = e; } finally { initDone = true; - yield(); + Thread.yield(); try { Thread.sleep(5); } catch (InterruptedException e) {