Skip to content

Commit

Permalink
Reverted change of LocalFile.valueOf, added LocalFile.from
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Apr 17, 2015
1 parent 37ac471 commit 4c04da2
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/main/java/com/xebialabs/overthere/local/LocalFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@
*/
package com.xebialabs.overthere.local;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.xebialabs.overthere.ConnectionOptions;
import com.xebialabs.overthere.OverthereFile;
import com.xebialabs.overthere.RuntimeIOException;
import com.xebialabs.overthere.spi.BaseOverthereFile;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

import static com.xebialabs.overthere.local.LocalConnection.LOCAL_PROTOCOL;

/**
Expand Down Expand Up @@ -221,7 +215,11 @@ public String toString() {
return LOCAL_PROTOCOL + ":" + file;
}

public static LocalFile valueOf(File f) {
public static OverthereFile valueOf(File f) {
return new LocalFile(createConnection(), f);
}

public static LocalFile from(File f) {
return new LocalFile(createConnection(), f);
}

Expand Down

0 comments on commit 4c04da2

Please sign in to comment.