From 6f6c6680cdc2f811ea14086bfa1462e315dc77e3 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 25 Mar 2024 21:47:13 -0700 Subject: [PATCH] Mark the immutable class final Necessary for true immutability. --- .../java/io/trino/execution/resourcegroups/ResourceUsage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/trino-main/src/main/java/io/trino/execution/resourcegroups/ResourceUsage.java b/core/trino-main/src/main/java/io/trino/execution/resourcegroups/ResourceUsage.java index bb9c13f56298..bd708acd64fc 100644 --- a/core/trino-main/src/main/java/io/trino/execution/resourcegroups/ResourceUsage.java +++ b/core/trino-main/src/main/java/io/trino/execution/resourcegroups/ResourceUsage.java @@ -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;