jdk/src/java.base/share/classes/sun/net/ftp/impl/FtpClient.java
changeset 28059 e576535359cc
parent 26720 6b160d97c51d
child 31061 fead7d86d75f
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
  2185         if (resp.size() == 1) {
  2185         if (resp.size() == 1) {
  2186             // Single line response
  2186             // Single line response
  2187             return resp.get(0).substring(4);
  2187             return resp.get(0).substring(4);
  2188         }
  2188         }
  2189         // on multiple lines answers, like the ones above, remove 1st and last
  2189         // on multiple lines answers, like the ones above, remove 1st and last
  2190         // line, concat the the others.
  2190         // line, concat the others.
  2191         StringBuilder sb = new StringBuilder();
  2191         StringBuilder sb = new StringBuilder();
  2192         for (int i = 1; i < resp.size() - 1; i++) {
  2192         for (int i = 1; i < resp.size() - 1; i++) {
  2193             sb.append(resp.get(i).substring(3));
  2193             sb.append(resp.get(i).substring(3));
  2194         }
  2194         }
  2195         return sb.toString();
  2195         return sb.toString();