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

Method applyAdd

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

Source from the content-addressed store, hash-verified

1722 }
1723
1724 private List<LeafIndex> applyAdd(List<CachedProposal> proposals)
1725 {
1726 List<LeafIndex> locations = new ArrayList<LeafIndex>();
1727 for (CachedProposal cached : proposals)
1728 {
1729 if (cached.proposal.getProposalType() != ProposalType.ADD)
1730 {
1731 continue;
1732 }
1733 locations.add(tree.addLeaf(cached.proposal.getLeafNode()));
1734 }
1735 return locations;
1736 }
1737
1738 private void applyRemove(List<CachedProposal> proposals)
1739 throws Exception

Callers 1

applyMethod · 0.95

Calls 4

addMethod · 0.95
getProposalTypeMethod · 0.80
addLeafMethod · 0.80
getLeafNodeMethod · 0.45

Tested by

no test coverage detected