Mercurial > hg4j
comparison src/org/tmatesoft/hg/repo/HgRemoteRepository.java @ 441:2a08466838d3
Don't use methods not available in Java 5
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 26 Apr 2012 12:42:32 +0200 |
parents | ead6c67f3319 |
children | 909306e412e2 |
comparison
equal
deleted
inserted
replaced
440:299870249a28 | 441:2a08466838d3 |
---|---|
151 dumpResponseHeader(u, c); | 151 dumpResponseHeader(u, c); |
152 } | 152 } |
153 r = new BufferedReader(new InputStreamReader(c.getInputStream(), "US-ASCII")); | 153 r = new BufferedReader(new InputStreamReader(c.getInputStream(), "US-ASCII")); |
154 line = r.readLine(); | 154 line = r.readLine(); |
155 c.disconnect(); | 155 c.disconnect(); |
156 if (line == null || line.trim().isEmpty()) { | 156 if (line == null || line.trim().length() == 0) { |
157 return true; | 157 return true; |
158 } | 158 } |
159 } else { | 159 } else { |
160 line = line.substring(capsPrefix.length()).trim(); | 160 line = line.substring(capsPrefix.length()).trim(); |
161 } | 161 } |