Centralize access to the Protocol object by POP3Message objects so that they will fail appropriately when the folder is closed.
()
| 588 | * is closed. |
| 589 | */ |
| 590 | Protocol getProtocol() throws MessagingException { |
| 591 | Protocol p = port; // read it before close() can set it to null |
| 592 | checkOpen(); |
| 593 | // close() might happen here |
| 594 | return p; |
| 595 | } |
| 596 | |
| 597 | /* |
| 598 | * Only here to make accessible to POP3Message. |
no test coverage detected