()
| 450 | * ASSERT: Must be called with this folder's synchronization lock held. |
| 451 | */ |
| 452 | protected void checkOpened() throws FolderClosedException { |
| 453 | assert Thread.holdsLock(this); |
| 454 | if (!opened) { |
| 455 | if (reallyClosed) |
| 456 | throw new IllegalStateException( |
| 457 | "This operation is not allowed on a closed folder" |
| 458 | ); |
| 459 | else // Folder was closed "implicitly" |
| 460 | throw new FolderClosedException(this, |
| 461 | "Lost folder connection to server" |
| 462 | ); |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | /* |
| 467 | * Check that the given message number is within the range |
no outgoing calls
no test coverage detected