Using UnsupportedOperationException instead of weird NotImplementedException

This commit is contained in:
Samuel Carlsson 2016-03-15 09:12:43 +01:00
parent 7dc5d73d00
commit d716ba0325

View File

@ -1,7 +1,5 @@
package se.vidstige.jadb; package se.vidstige.jadb;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
/** /**
* Created by vidstige on 2014-03-20 * Created by vidstige on 2014-03-20
*/ */
@ -10,10 +8,10 @@ public class RemoteFile {
public RemoteFile(String path) { this.path = path;} public RemoteFile(String path) { this.path = path;}
public String getName() { throw new NotImplementedException(); } public String getName() { throw new UnsupportedOperationException(); }
public int getSize() { throw new NotImplementedException(); } public int getSize() { throw new UnsupportedOperationException(); }
public long getLastModified() { throw new NotImplementedException(); } public long getLastModified() { throw new UnsupportedOperationException(); }
public boolean isDirectory() { throw new NotImplementedException(); } public boolean isDirectory() { throw new UnsupportedOperationException(); }
public String getPath() { return path;} public String getPath() { return path;}