1 2 3 4 5 6 7
public class Test { public String foo(String path) { String smth = new String(path); if (path == null) return null; return smth; } }