From 7dcd35c8cf99edb8c850503dc53174352dc7c7fd Mon Sep 17 00:00:00 2001 From: alzimmermsft <48699787+alzimmermsft@users.noreply.github.com> Date: Mon, 7 Jun 2021 12:23:47 -0700 Subject: [PATCH] Annotate HttpRange with Immutable --- .../azure-core/src/main/java/com/azure/core/http/HttpRange.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/http/HttpRange.java b/sdk/core/azure-core/src/main/java/com/azure/core/http/HttpRange.java index 293b02940a2f5..5f9743d8a40f2 100644 --- a/sdk/core/azure-core/src/main/java/com/azure/core/http/HttpRange.java +++ b/sdk/core/azure-core/src/main/java/com/azure/core/http/HttpRange.java @@ -3,6 +3,7 @@ package com.azure.core.http; +import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import java.util.Objects; @@ -15,6 +16,7 @@ *

* If {@link #getLength() length} is unspecified, null, then the range extends to the end of the HTTP resource. */ +@Immutable public final class HttpRange { private final long offset; private final Long length;