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

Method mustResolve

mls/src/main/java/org/bouncycastle/mls/protocol/Group.java:2337–2360  ·  view source on GitHub ↗
(List<ProposalOrRef> proposals, LeafIndex sender)

Source from the content-addressed store, hash-verified

2335 }
2336
2337 private List<CachedProposal> mustResolve(List<ProposalOrRef> proposals, LeafIndex sender)
2338 {
2339 List<CachedProposal> out = new ArrayList<CachedProposal>();
2340 for (ProposalOrRef id : proposals)
2341 {
2342 switch (id.getType())
2343 {
2344 case PROPOSAL:
2345 out.add(new CachedProposal(new byte[0], id.getProposal(), sender));
2346 break;
2347 case REFERENCE:
2348 for (CachedProposal cached : pendingProposals)
2349 {
2350 if (Arrays.areEqual(cached.proposalRef, id.getReference()))
2351 {
2352 out.add(cached);
2353 break;
2354 }
2355 }
2356 break;
2357 }
2358 }
2359 return out;
2360 }
2361
2362 private GroupContext getGroupContext()
2363 throws Exception

Callers 3

handleMethod · 0.95
handleReinitCommitMethod · 0.95
commitMethod · 0.95

Calls 5

addMethod · 0.95
areEqualMethod · 0.95
getReferenceMethod · 0.80
getTypeMethod · 0.65
getProposalMethod · 0.45

Tested by

no test coverage detected