Skip to content

Commit ba33acf

Browse files
committed
Fixing style.
1 parent 0037c83 commit ba33acf

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/builtins/objects/exception/BaseExceptionBuiltins.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ public boolean suppressContext(@SuppressWarnings("unused") PBaseException self)
185185
public abstract static class TracebackNode extends PythonBuiltinNode {
186186

187187
@Specialization(guards = "isNoValue(tb)")
188-
public Object getTraceback(PBaseException self, Object tb) {
188+
public Object getTraceback(PBaseException self, @SuppressWarnings("unused") Object tb) {
189189
return self.getTraceback(factory());
190190
}
191191

192192
@Specialization
193-
public Object setTraceback(PBaseException self, PNone tb) {
193+
public Object setTraceback(PBaseException self, @SuppressWarnings("unused") PNone tb) {
194194
self.clearTraceback();
195195
return PNone.NONE;
196196
}
@@ -202,7 +202,7 @@ public Object setTraceback(PBaseException self, PTraceback tb) {
202202
}
203203

204204
@Fallback
205-
public Object setTraceback(Object self, Object tb) {
205+
public Object setTraceback(@SuppressWarnings("unused") Object self, @SuppressWarnings("unused") Object tb) {
206206
throw raise(PythonErrorType.TypeError, "__traceback__ must be a traceback or None");
207207
}
208208
}

0 commit comments

Comments
 (0)