From d716ba0325816ee5685965938aa4429139b10d3f Mon Sep 17 00:00:00 2001 From: Samuel Carlsson Date: Tue, 15 Mar 2016 09:12:43 +0100 Subject: [PATCH] Using `UnsupportedOperationException` instead of weird `NotImplementedException` --- src/se/vidstige/jadb/RemoteFile.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/se/vidstige/jadb/RemoteFile.java b/src/se/vidstige/jadb/RemoteFile.java index 2b79784..1c6ca17 100644 --- a/src/se/vidstige/jadb/RemoteFile.java +++ b/src/se/vidstige/jadb/RemoteFile.java @@ -1,7 +1,5 @@ package se.vidstige.jadb; -import sun.reflect.generics.reflectiveObjects.NotImplementedException; - /** * Created by vidstige on 2014-03-20 */ @@ -10,10 +8,10 @@ public class RemoteFile { public RemoteFile(String path) { this.path = path;} - public String getName() { throw new NotImplementedException(); } - public int getSize() { throw new NotImplementedException(); } - public long getLastModified() { throw new NotImplementedException(); } - public boolean isDirectory() { throw new NotImplementedException(); } + public String getName() { throw new UnsupportedOperationException(); } + public int getSize() { throw new UnsupportedOperationException(); } + public long getLastModified() { throw new UnsupportedOperationException(); } + public boolean isDirectory() { throw new UnsupportedOperationException(); } public String getPath() { return path;}