Skip to content

Commit

Permalink
Merge pull request #1455 from nfi/fix-errorprone-warning
Browse files Browse the repository at this point in the history
Fix Error Prone warning in NetworkConnection
  • Loading branch information
nfi authored Oct 8, 2024
2 parents 6150574 + c776a74 commit c91b3ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/se/sics/mspsim/util/NetworkConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ private boolean connect(int port) {
return true;
}

// Records in Java should normally not contain arrays, but the code uses SendEvent solely as an internal container
// without comparing it to other objects.
@SuppressWarnings("ArrayRecordComponent")
private record SendEvent(byte[] data, ConnectionThread source) {}

final class SendThread implements Runnable {
Expand Down

0 comments on commit c91b3ec

Please sign in to comment.