From 051e0a06ebe7804c6ca767c1c36151a73c242c5e Mon Sep 17 00:00:00 2001 From: Rick Ley Date: Thu, 10 Feb 2022 16:48:29 -0800 Subject: [PATCH] Fixed ci --- .../com/azure/storage/common/StorageSharedKeyCredential.java | 2 +- .../com/azure/storage/common/test/shared/DevopsPipeline.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/StorageSharedKeyCredential.java b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/StorageSharedKeyCredential.java index 65b71e6d4ac51..4381ff57fb2a1 100644 --- a/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/StorageSharedKeyCredential.java +++ b/sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/StorageSharedKeyCredential.java @@ -151,7 +151,7 @@ public String computeHmac256(final String stringToSign) { private String buildStringToSign(URL requestURL, String httpMethod, HttpHeaders headers, boolean logStringToSign) { String contentLength = headers.getValue("Content-Length"); - contentLength = contentLength.equals("0") ? "" : contentLength; + contentLength = "0".equals(contentLength) ? "" : contentLength; // If the x-ms-header exists ignore the Date header String dateHeader = (headers.getValue("x-ms-date") != null) ? "" diff --git a/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/DevopsPipeline.java b/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/DevopsPipeline.java index f387a859c6899..d56308893e5e2 100644 --- a/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/DevopsPipeline.java +++ b/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/DevopsPipeline.java @@ -72,8 +72,8 @@ public boolean getSetsDevVersion() { } public boolean releasesToMavenCentral() { - return definitionName.equals("java - storage") - && buildReason.equalsIgnoreCase("manual") + return "java - storage".equals(definitionName) + && "manual".equalsIgnoreCase(buildReason) && !setsDevVersion; } }