Made a few schematic related fixes. Made the deprecation error more obvious.

This commit is contained in:
Matthew Miller
2018-07-24 11:21:29 +10:00
parent 9f9fda72b7
commit 3f1f52d1f1
4 changed files with 27 additions and 104 deletions

View File

@ -57,7 +57,7 @@ public enum ClipboardFormat {
@Override
public ClipboardWriter getWriter(OutputStream outputStream) throws IOException {
throw new UnsupportedOperationException("This clipboard format is deprecated.");
throw new IOException("This clipboard format no longer supports saving.");
}
@Override
@ -85,7 +85,7 @@ public enum ClipboardFormat {
*
* @param aliases an array of aliases by which this format may be referred to
*/
private ClipboardFormat(String ... aliases) {
ClipboardFormat(String... aliases) {
this.aliases = aliases;
}