Skip to content

Commit

Permalink
Remove redundant casts (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Nov 16, 2023
1 parent 64a2076 commit 5f91fb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions divviup/src/main/java/org/divviup/android/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public byte[] prepareReport(Client<Boolean> client, HpkeConfigList leaderConfigL
leaderConfigList.bytes,
helperConfigList.bytes,
client.reportTimestamp(),
(Boolean) measurement
measurement
);
} else {
throw new IllegalArgumentException("measurement for Prio3Count must be a Boolean");
Expand Down Expand Up @@ -232,7 +232,7 @@ public byte[] prepareReport(Client<Long> client, HpkeConfigList leaderConfigList
helperConfigList.bytes,
client.reportTimestamp(),
bits,
(Long) measurement
measurement
);
} else {
throw new IllegalArgumentException("measurement for Prio3Sum must be a Long");
Expand Down Expand Up @@ -309,7 +309,7 @@ public byte[] prepareReport(Client<Long> client, HpkeConfigList leaderConfigList
client.reportTimestamp(),
length,
chunkLength,
(Long) measurement
measurement
);
} else {
throw new IllegalArgumentException("measurement for Prio3Histogram must be a Long");
Expand Down

0 comments on commit 5f91fb9

Please sign in to comment.