TransportSftp: remove final modifiers from parameters
Change-Id: I1b12a9765575a1368e0c6bd11d87084b2064a17e Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
parent
416c40aefc
commit
2429ea2c41
|
@ -323,9 +323,8 @@ void deleteFile(String path) throws IOException {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
OutputStream writeFile(final String path,
|
OutputStream writeFile(String path, ProgressMonitor monitor,
|
||||||
final ProgressMonitor monitor, final String monitorTask)
|
String monitorTask) throws IOException {
|
||||||
throws IOException {
|
|
||||||
try {
|
try {
|
||||||
return ftp.put(path);
|
return ftp.put(path);
|
||||||
} catch (SftpException je) {
|
} catch (SftpException je) {
|
||||||
|
@ -401,9 +400,8 @@ Map<String, Ref> readAdvertisedRefs() throws TransportException {
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private void readLooseRefs(final TreeMap<String, Ref> avail,
|
private void readLooseRefs(TreeMap<String, Ref> avail, String dir,
|
||||||
final String dir, final String prefix)
|
String prefix) throws TransportException {
|
||||||
throws TransportException {
|
|
||||||
final Collection<ChannelSftp.LsEntry> list;
|
final Collection<ChannelSftp.LsEntry> list;
|
||||||
try {
|
try {
|
||||||
list = ftp.ls(dir);
|
list = ftp.ls(dir);
|
||||||
|
@ -426,8 +424,8 @@ private void readLooseRefs(final TreeMap<String, Ref> avail,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private Ref readRef(final TreeMap<String, Ref> avail,
|
private Ref readRef(TreeMap<String, Ref> avail, String path,
|
||||||
final String path, final String name) throws TransportException {
|
String name) throws TransportException {
|
||||||
final String line;
|
final String line;
|
||||||
try (BufferedReader br = openReader(path)) {
|
try (BufferedReader br = openReader(path)) {
|
||||||
line = br.readLine();
|
line = br.readLine();
|
||||||
|
|
Loading…
Reference in New Issue