From fb6b0266cf32ad4956d4f9e456eb9528f487fbe4 Mon Sep 17 00:00:00 2001 From: mmouly Date: Mon, 16 Dec 2024 11:42:09 +0100 Subject: [PATCH] remove deprecation --- .../metering/ilmt/model/registration/RegistrationRequest.java | 4 ++-- .../ibm/decision/metering/ilmt/model/usage/UsageRequest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/model/src/main/java/com/ibm/decision/metering/ilmt/model/registration/RegistrationRequest.java b/model/src/main/java/com/ibm/decision/metering/ilmt/model/registration/RegistrationRequest.java index f5f50fe..fa4e500 100644 --- a/model/src/main/java/com/ibm/decision/metering/ilmt/model/registration/RegistrationRequest.java +++ b/model/src/main/java/com/ibm/decision/metering/ilmt/model/registration/RegistrationRequest.java @@ -232,8 +232,8 @@ public int hashCode() { + (operatingSystemVersion == null ? 0 : operatingSystemVersion .hashCode()) + (cloudServicesUsed == null ? 0 : cloudServicesUsed.hashCode()) - + new Long(startTime).hashCode() - + new Long(sendTime).hashCode() + + Long.valueOf(startTime).hashCode() + + Long.valueOf(sendTime).hashCode() + (customerTagData == null ? 0 : customerTagData.hashCode()) + (products == null ? 0 : products.hashCode()) + (metrics == null ? 0 : metrics.hashCode()) diff --git a/model/src/main/java/com/ibm/decision/metering/ilmt/model/usage/UsageRequest.java b/model/src/main/java/com/ibm/decision/metering/ilmt/model/usage/UsageRequest.java index f70c284..7a66c68 100644 --- a/model/src/main/java/com/ibm/decision/metering/ilmt/model/usage/UsageRequest.java +++ b/model/src/main/java/com/ibm/decision/metering/ilmt/model/usage/UsageRequest.java @@ -146,8 +146,8 @@ public boolean equals(Object object) { public int hashCode() { return 37 + super.hashCode() - + new Long(startTime).hashCode() - + new Long(endTime).hashCode() + + Long.valueOf(startTime).hashCode() + + Long.valueOf(endTime).hashCode() + (environmentType == null ? 0 : environmentType.hashCode()) + (usageList == null ? 0 : usageList.hashCode()) + (productSpecificData == null ? 0 : productSpecificData