mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 19:11:36 +08:00
GP-3118: Code cleanup
This commit is contained in:
+10
-10
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user