Skip to content

Commit

Permalink
Mark the immutable class final
Browse files Browse the repository at this point in the history
Necessary for true immutability.
  • Loading branch information
findepi committed Mar 26, 2024
1 parent 7f009a8 commit 6f6c668
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import static com.google.common.math.LongMath.saturatedSubtract;

@Immutable
class ResourceUsage
final class ResourceUsage
{
private final long cpuUsageMillis;
private final long memoryUsageBytes;
Expand Down

0 comments on commit 6f6c668

Please sign in to comment.