tabish121 commented on code in PR #56:
URL: https://github.com/apache/qpid-jms/pull/56#discussion_r2665484771
##########
qpid-jms-client/src/main/java/org/apache/qpid/jms/message/JmsBytesMessage.java:
##########
@@ -200,11 +200,23 @@ public double readDouble() throws JMSException {
@Override
public String readUTF() throws JMSException {
initializeReading();
+ final boolean canReset = this.dataIn.markSupported();
+ if (canReset) {
+ this.dataIn.mark(Integer.MAX_VALUE);
+ }
try {
return this.dataIn.readUTF();
} catch (EOFException e) {
throw JmsExceptionSupport.createMessageEOFException(e);
} catch (IOException e) {
+ if (canReset) {
+ try {
+ this.dataIn.reset();
+ } catch (IOException ignored)
+ {
Review Comment:
Formatting here is incorrect and should match the rest of the codebase
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]