Sonar fixes
Hidden fields, `o.s.i.a*` through `o.s.i.j*`.
This commit is contained in:
committed by
Artem Bilan
parent
6eeec50b4a
commit
e40cfe101e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -261,15 +261,15 @@ public class FtpOutboundGateway extends AbstractRemoteFileOutboundGateway<FTPFil
|
||||
|
||||
private <V> V doInWorkingDirectory(Message<?> message, Session<FTPFile> session, Callable<V> task)
|
||||
throws IOException {
|
||||
Expression workingDirExpression = this.workingDirExpression;
|
||||
Expression workDirExpression = this.workingDirExpression;
|
||||
FTPClient ftpClient = (FTPClient) session.getClientInstance();
|
||||
String currentWorkingDirectory = null;
|
||||
boolean restoreWorkingDirectory = false;
|
||||
try {
|
||||
if (workingDirExpression != null) {
|
||||
if (workDirExpression != null) {
|
||||
currentWorkingDirectory = ftpClient.printWorkingDirectory();
|
||||
String newWorkingDirectory =
|
||||
workingDirExpression.getValue(this.evaluationContext, message, String.class);
|
||||
workDirExpression.getValue(this.evaluationContext, message, String.class);
|
||||
if (!Objects.equals(currentWorkingDirectory, newWorkingDirectory)) {
|
||||
ftpClient.changeWorkingDirectory(newWorkingDirectory);
|
||||
restoreWorkingDirectory = true;
|
||||
|
||||
Reference in New Issue
Block a user