(Exploit exploit)
| 740 | } |
| 741 | |
| 742 | public void addExploit(Exploit exploit) { |
| 743 | |
| 744 | exploit.setParent(this); |
| 745 | |
| 746 | synchronized (exploits) { |
| 747 | Iterator<Exploit> it = exploits.iterator(); |
| 748 | |
| 749 | while(it.hasNext()) { |
| 750 | if(exploit.equals(it.next())) { |
| 751 | it.remove(); |
| 752 | break; |
| 753 | } |
| 754 | } |
| 755 | |
| 756 | exploits.add(exploit); |
| 757 | } |
| 758 | } |
| 759 | |
| 760 | public Collection<Exploit> getExploits() { |
| 761 | return exploits; |