Skip to content

Commit 97d0880

Browse files
committed
"Changes updated"
1 parent 1b912b0 commit 97d0880

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

src/main/java/com/sforce/async/BulkConnection.java

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,6 @@
1919
* Author: @harshpruthi
2020
*/
2121
package com.sforce.async;
22-
import com.fasterxml.jackson.core.JsonFactory;
23-
import com.fasterxml.jackson.core.JsonGenerator;
24-
import com.fasterxml.jackson.core.JsonParser;
25-
import com.fasterxml.jackson.databind.DeserializationFeature;
26-
import com.fasterxml.jackson.databind.ObjectMapper;
27-
import com.google.common.io.ByteStreams;
28-
import com.sforce.ws.ConnectionException;
29-
import com.sforce.ws.ConnectorConfig;
30-
import com.sforce.ws.MessageHandler;
31-
import com.sforce.ws.MessageHandlerWithHeaders;
32-
import com.sforce.ws.bind.CalendarCodec;
33-
import com.sforce.ws.bind.TypeMapper;
34-
import com.sforce.ws.parser.PullParserException;
35-
import com.sforce.ws.parser.XmlInputStream;
36-
import com.sforce.ws.parser.XmlOutputStream;
37-
import com.sforce.ws.transport.Transport;
38-
import com.sforce.ws.util.FileUtil;
39-
import org.slf4j.Logger;
40-
import org.slf4j.LoggerFactory;
4122
import java.io.ByteArrayInputStream;
4223
import java.io.File;
4324
import java.io.FileInputStream;
@@ -58,6 +39,26 @@
5839
import javax.net.ssl.HttpsURLConnection;
5940
import javax.net.ssl.SSLContext;
6041
import javax.xml.namespace.QName;
42+
import com.fasterxml.jackson.core.JsonFactory;
43+
import com.fasterxml.jackson.core.JsonGenerator;
44+
import com.fasterxml.jackson.core.JsonParser;
45+
import com.fasterxml.jackson.databind.DeserializationFeature;
46+
import com.fasterxml.jackson.databind.ObjectMapper;
47+
import com.google.common.io.ByteStreams;
48+
import com.sforce.ws.ConnectionException;
49+
import com.sforce.ws.ConnectorConfig;
50+
import com.sforce.ws.MessageHandler;
51+
import com.sforce.ws.MessageHandlerWithHeaders;
52+
import com.sforce.ws.bind.CalendarCodec;
53+
import com.sforce.ws.bind.TypeMapper;
54+
import com.sforce.ws.parser.PullParserException;
55+
import com.sforce.ws.parser.XmlInputStream;
56+
import com.sforce.ws.parser.XmlOutputStream;
57+
import com.sforce.ws.transport.Transport;
58+
import com.sforce.ws.util.FileUtil;
59+
import org.slf4j.Logger;
60+
import org.slf4j.LoggerFactory;
61+
6162
/**
6263
* BulkConnection
6364
*
@@ -546,7 +547,7 @@ public BatchInfo getBatchInfo(String jobId, String batchId, ContentType contentT
546547
try { // %EDIT%
547548
stream.close(); // %EDIT%
548549
} catch (IOException e) { // %EDIT%
549-
logger.warn("Failed to close input stream with error: {}, cause: {}", e.getCause(), e.getCause());// %EDIT%
550+
logger.warn("Failed to close input stream with error: {}, cause: {}", e.getCause());// %EDIT%
550551
} // %EDIT%
551552
}
552553
}
@@ -581,7 +582,7 @@ public BatchResult getBatchResult(String jobId, String batchId, ContentType cont
581582
try { // %EDIT%
582583
stream.close(); // %EDIT%
583584
} catch (IOException e) { // %EDIT%
584-
logger.warn("Failed to close input stream with error: {}, cause: {}", e.getCause(), e.getCause());// %EDIT%
585+
logger.warn("Failed to close input stream with error: {}, cause: {}", e.getCause());// %EDIT%
585586
} // %EDIT%
586587
}
587588
}
@@ -641,7 +642,7 @@ public QueryResultList getQueryResultList(String jobId, String batchId, ContentT
641642
try { // %EDIT%
642643
stream.close(); // %EDIT%
643644
} catch (IOException e) { // %EDIT%
644-
logger.warn("Failed to close inout stream with error: {}, cause: {}", e.getCause(), e.getCause());// %EDIT%
645+
logger.warn("Failed to close inout stream with error: {}, cause: {}", e.getCause());// %EDIT%
645646
} // %EDIT%
646647
}
647648
}
@@ -790,7 +791,7 @@ public JobInfo getJobStatus(String jobId, ContentType contentType) throws AsyncA
790791
try { // %EDIT%
791792
in.close(); // %EDIT%
792793
} catch (IOException e) { // %EDIT%
793-
logger.warn("Failed to close input stream with error: {}, cause: {}", e.getMessage(), e.getCause());// %EDIT%
794+
logger.warn("Failed to close input stream with error: {}, cause: {}", e.getMessage());// %EDIT%
794795
} // %EDIT%
795796
}
796797
}

0 commit comments

Comments
 (0)