This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_2_4_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_2_4_X by this push:
new 1f81272 GROOVY-9826: Better propagation of InterruptedException
(additional case)
1f81272 is described below
commit 1f81272aee2bfe27cfde970b64ad9e510e3a3459
Author: Paul King <[email protected]>
AuthorDate: Fri Nov 27 14:55:52 2020 +1000
GROOVY-9826: Better propagation of InterruptedException (additional case)
---
src/main/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java
b/src/main/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java
index eaab539..c9dfe44 100644
--- a/src/main/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java
+++ b/src/main/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java
@@ -276,7 +276,7 @@ public class DefaultGroovyStaticMethods {
final int MAXTRIES = 3;
int accessDeniedCounter = 0;
File tempFile = null;
- for (int i = 0; i < MAXTRIES && interrupted = null; i++) {
+ for (int i = 0; i < MAXTRIES; i++) {
try {
tempFile = File.createTempFile(prefix, suffix);
tempFile.delete();