Skip to content

Commit 263b65f

Browse files
committed
Sonarqube: Rename this method; there is a "private" method in the parent class with the same name
1 parent f04a2e9 commit 263b65f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/generator/GeneratorTryExceptNode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void executeVoid(VirtualFrame frame) {
6969
PException exceptionState = getContext().getCurrentException();
7070

7171
if (gen.isActive(frame, exceptFlag)) {
72-
catchException(frame, gen.getActiveException(frame), exceptionState);
72+
catchExceptionInGenerator(frame, gen.getActiveException(frame), exceptionState);
7373
reset(frame);
7474
return;
7575
}
@@ -85,7 +85,7 @@ public void executeVoid(VirtualFrame frame) {
8585
} catch (PException ex) {
8686
gen.setActive(frame, exceptFlag, true);
8787
gen.setActiveException(frame, ex);
88-
catchException(frame, ex, exceptionState);
88+
catchExceptionInGenerator(frame, ex, exceptionState);
8989
reset(frame);
9090
return;
9191
}
@@ -97,7 +97,7 @@ public void executeVoid(VirtualFrame frame) {
9797
}
9898

9999
@ExplodeLoop
100-
private void catchException(VirtualFrame frame, PException exception, PException exceptionState) {
100+
private void catchExceptionInGenerator(VirtualFrame frame, PException exception, PException exceptionState) {
101101
ExceptNode[] exceptNodes = getExceptNodes();
102102
final int matchingExceptNodeIndex = gen.getIndex(frame, exceptIndex);
103103
boolean wasHandled = false;

0 commit comments

Comments
 (0)