Skip to content

Commit 01e257e

Browse files
Copilotchrjohn
andcommitted
Address code review: use specific exceptions in getSessionState
Co-authored-by: chrjohn <[email protected]>
1 parent 80b8761 commit 01e257e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickfixj-core/src/test/java/quickfix/SessionResendRequestFailureTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private void processMessage(Session session, Message message) throws Exception {
181181
session.next(message);
182182
}
183183

184-
private SessionState getSessionState(Session session) throws Exception {
184+
private SessionState getSessionState(Session session) throws NoSuchFieldException, IllegalAccessException {
185185
final java.lang.reflect.Field field = Session.class.getDeclaredField("state");
186186
field.setAccessible(true);
187187
return (SessionState) field.get(session);

0 commit comments

Comments
 (0)