package se.vidstige.jadb;

/**
 * Created by vidstige on 2014-03-20
 */
public class RemoteFile {
    private final String path;

    public RemoteFile(String path) { this.path = path; }

    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;}

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RemoteFile that = (RemoteFile) o;

        if (!path.equals(that.path)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return path.hashCode();
    }
}

@@ -733,25 +733,24 @@
 ile) o;%0A
-%0A
         
 if (!pat
@@ -745,13 +745,15 @@
     
-if (!
+return 
 path
@@ -774,44 +774,8 @@
 ath)
-) return false;%0A%0A        return true
 ;%0A  

Return of boolean expressions should not be wrapped into an "if-then-else" statement (squid:S1126)