(Flags flags)
| 499 | * and also verify that the folder allows setting flags. |
| 500 | */ |
| 501 | private void checkFlags(Flags flags) throws MessagingException { |
| 502 | assert Thread.holdsLock(this); |
| 503 | if (mode != READ_WRITE) |
| 504 | throw new IllegalStateException( |
| 505 | "Cannot change flags on READ_ONLY folder: " + fullName |
| 506 | ); |
| 507 | /* |
| 508 | if (!availableFlags.contains(flags)) |
| 509 | throw new MessagingException( |
| 510 | "These flags are not supported by this implementation" |
| 511 | ); |
| 512 | */ |
| 513 | } |
| 514 | |
| 515 | /** |
| 516 | * Get the name of this folder. |