ChangeUpdate: Replace lambdas with method references
Change-Id: Ib5fb7c8437bfddf0fbf0eaa4c1d4a4b0077fa7bd
This commit is contained in:
@@ -401,7 +401,7 @@ public class ChangeUpdate extends AbstractChangeUpdate {
|
|||||||
|
|
||||||
Set<Account.Id> currentAccountUpdates =
|
Set<Account.Id> currentAccountUpdates =
|
||||||
plannedAttentionSetUpdates.values().stream()
|
plannedAttentionSetUpdates.values().stream()
|
||||||
.map(u -> u.account())
|
.map(AttentionSetUpdate::account)
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
updates.stream()
|
updates.stream()
|
||||||
.filter(u -> !currentAccountUpdates.contains(u.account()))
|
.filter(u -> !currentAccountUpdates.contains(u.account()))
|
||||||
@@ -754,7 +754,7 @@ public class ChangeUpdate extends AbstractChangeUpdate {
|
|||||||
a ->
|
a ->
|
||||||
AttentionSetUpdate.createForWrite(
|
AttentionSetUpdate.createForWrite(
|
||||||
a.account(), AttentionSetUpdate.Operation.REMOVE, reason))
|
a.account(), AttentionSetUpdate.Operation.REMOVE, reason))
|
||||||
.forEach(a -> addToPlannedAttentionSetUpdates(a));
|
.forEach(this::addToPlannedAttentionSetUpdates);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void applyReviewerUpdatesToAttentionSet() {
|
private void applyReviewerUpdatesToAttentionSet() {
|
||||||
@@ -791,7 +791,7 @@ public class ChangeUpdate extends AbstractChangeUpdate {
|
|||||||
r ->
|
r ->
|
||||||
AttentionSetUpdate.createForWrite(
|
AttentionSetUpdate.createForWrite(
|
||||||
r, AttentionSetUpdate.Operation.ADD, "Change was marked ready for review"))
|
r, AttentionSetUpdate.Operation.ADD, "Change was marked ready for review"))
|
||||||
.forEach(a -> addToPlannedAttentionSetUpdates(a));
|
.forEach(this::addToPlannedAttentionSetUpdates);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user