MCPcopy Index your code
hub / github.com/bcgit/bc-java / applyRemove

Method applyRemove

mls/src/main/java/org/bouncycastle/mls/protocol/Group.java:1738–1755  ·  view source on GitHub ↗
(List<CachedProposal> proposals)

Source from the content-addressed store, hash-verified

1736 }
1737
1738 private void applyRemove(List<CachedProposal> proposals)
1739 throws Exception
1740 {
1741 for (CachedProposal cached : proposals)
1742 {
1743 if (cached.proposal.getProposalType() != ProposalType.REMOVE)
1744 {
1745 continue;
1746 }
1747
1748 if (!tree.hasLeaf(cached.proposal.getRemove().removed))
1749 {
1750 throw new Exception("Attempt to remove non-member");
1751 }
1752
1753 tree.blankPath(cached.proposal.getRemove().removed);
1754 }
1755 }
1756
1757 private Group successor()
1758 throws IOException

Callers 1

applyMethod · 0.95

Calls 4

getProposalTypeMethod · 0.80
getRemoveMethod · 0.80
blankPathMethod · 0.80
hasLeafMethod · 0.45

Tested by

no test coverage detected