code: private static String fixName(String name) {
      // convert old-format name to new-format name
      if (name.equals("local")) {         // "local" is now "file:///".
        LOG.warn("\"local\" is a deprecated filesystem name."
                 +" Use \"file:///\" instead.");
        name = "file:///";
      } else if (name.indexOf('/')==-1) {   // unqualified is "hdfs://"
        LOG.warn("\""+name+"\" is a deprecated filesystem name."
                 +" Use \"hdfs://"+name+"/\" instead.");
        name = "hdfs://"+name;
      }
      return name;
    }
docs: Update old-format filesystem names, for back-compatibility.  This should
  eventually be replaced with a checkName() method that throws an exception
  for old-format names.