Skip to content

Commit e79c739

Browse files
AlanJagerclaude
andcommitted
<fix>[cleanup]: rename InterruptedException variable to avoid shadowing
In ExponStorageController and XInfiniStorageController, the inner catch(InterruptedException e) shadowed the outer catch(Exception e), causing a compile error. Renamed to 'ie'. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 357d07d commit e79c739

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugin/expon/src/main/java/org/zstack/expon/ExponStorageController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ private void retry(Runnable r, int retry) {
14201420
logger.warn("runnable failed, try ", e);
14211421
try {
14221422
TimeUnit.SECONDS.sleep(3);
1423-
} catch (InterruptedException e) {
1423+
} catch (InterruptedException ie) {
14241424
Thread.currentThread().interrupt();
14251425
}
14261426
}

plugin/xinfini/src/main/java/org/zstack/xinfini/XInfiniStorageController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ private void retry(Runnable r, int retry) {
11401140
logger.warn("runnable failed, try ", e);
11411141
try {
11421142
TimeUnit.SECONDS.sleep(3);
1143-
} catch (InterruptedException e) {
1143+
} catch (InterruptedException ie) {
11441144
Thread.currentThread().interrupt();
11451145
}
11461146
}

0 commit comments

Comments
 (0)