Skip to content

Commit

Permalink
Replace depecrated new method for Integer/Long (#25623)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored and pull[bot] committed Sep 1, 2023
1 parent 2775f5a commit 3329486
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public void shutdownSubscriptions() {

/* Shuts down all active subscriptions for the fabric at the given fabricIndex */
public void shutdownSubscriptions(int fabricIndex) {
shutdownSubscriptions(deviceControllerPtr, new Integer(fabricIndex), null, null);
shutdownSubscriptions(deviceControllerPtr, Integer.valueOf(fabricIndex), null, null);
}

/**
Expand All @@ -510,7 +510,7 @@ public void shutdownSubscriptions(int fabricIndex) {
*/
public void shutdownSubscriptions(int fabricIndex, long peerNodeId) {
shutdownSubscriptions(
deviceControllerPtr, new Integer(fabricIndex), new Long(peerNodeId), null);
deviceControllerPtr, Integer.valueOf(fabricIndex), Long.valueOf(peerNodeId), null);
}

/**
Expand All @@ -523,9 +523,9 @@ public void shutdownSubscriptions(int fabricIndex, long peerNodeId) {
public void shutdownSubscriptions(int fabricIndex, long peerNodeId, long subscriptionId) {
shutdownSubscriptions(
deviceControllerPtr,
new Integer(fabricIndex),
new Long(peerNodeId),
new Long(subscriptionId));
Integer.valueOf(fabricIndex),
Long.valueOf(peerNodeId),
Long.valueOf(subscriptionId));
}

/**
Expand Down

0 comments on commit 3329486

Please sign in to comment.