Skip to content

Commit 39012f4

Browse files
committed
addressed comments
1 parent 4a77b9d commit 39012f4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

client/src/test/java/com/microsoft/durabletask/EntityQueryPageableTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ void byPage_preservesQueryParameters() {
165165
return new EntityQueryResult(Collections.emptyList(), null);
166166
});
167167

168-
for (EntityQueryResult ignored : pageable.byPage()) {
168+
pageable.byPage().forEach(result -> {
169169
// consume
170-
}
170+
});
171171
}
172172

173173
@Test

client/src/test/java/com/microsoft/durabletask/TaskEntityTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,8 @@ public void add(int amount) {
161161
this.state += amount;
162162
}
163163

164-
public void add(String label) {
164+
public void add(@SuppressWarnings("unused") String label) {
165165
// overloaded — should trigger ambiguous match error
166-
// 'label' intentionally unused; method exists to create ambiguous overload
167-
168166
}
169167

170168
@Override

0 commit comments

Comments
 (0)