(RRset rrset, Set names)
| 567 | } |
| 568 | |
| 569 | private static void |
| 570 | markAdditional(RRset rrset, Set names) { |
| 571 | Record first = rrset.first(); |
| 572 | if (first.getAdditionalName() == null) |
| 573 | return; |
| 574 | |
| 575 | Iterator it = rrset.rrs(); |
| 576 | while (it.hasNext()) { |
| 577 | Record r = (Record) it.next(); |
| 578 | Name name = r.getAdditionalName(); |
| 579 | if (name != null) |
| 580 | names.add(name); |
| 581 | } |
| 582 | } |
| 583 | |
| 584 | /** |
| 585 | * Adds all data from a Message into the Cache. Each record is added with |
no test coverage detected