GP-3118: Code cleanup

This commit is contained in:
Ryan Kurtz
2023-02-21 07:35:31 -05:00
parent 04134e06c3
commit 07aa5607f5
@@ -37,16 +37,16 @@ public class OmfCommentRecord extends OmfRecord {
commentType = reader.readNextByte();
commentClass = reader.readNextByte();
switch(commentClass) {
case COMMENT_CLASS_TRANSLATOR:
case COMMENT_CLASS_DEFAULT_LIBRARY:
byte[] bytes = reader.readNextByteArray(
getRecordLength() - 3 /* 3 = sizeof(commentType+commentClass+trailing_crcbyte*/);
value = new String(bytes, StandardCharsets.US_ASCII); // assuming ASCII
break;
case COMMENT_CLASS_LIBMOD:
value = readString(reader);
break;
switch (commentClass) {
case COMMENT_CLASS_TRANSLATOR:
case COMMENT_CLASS_DEFAULT_LIBRARY:
byte[] bytes = reader.readNextByteArray(getRecordLength() -
3 /* 3 = sizeof(commentType+commentClass+trailing_crcbyte*/);
value = new String(bytes, StandardCharsets.US_ASCII); // assuming ASCII
break;
case COMMENT_CLASS_LIBMOD:
value = readString(reader);
break;
}
readCheckSumByte(reader);
}