|  | 
| 19 | 19 |  * Author: @harshpruthi | 
| 20 | 20 |  */ | 
| 21 | 21 | 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; | 
| 41 | 22 | import java.io.ByteArrayInputStream; | 
| 42 | 23 | import java.io.File; | 
| 43 | 24 | import java.io.FileInputStream; | 
|  | 
| 58 | 39 | import javax.net.ssl.HttpsURLConnection; | 
| 59 | 40 | import javax.net.ssl.SSLContext; | 
| 60 | 41 | 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 | + | 
| 61 | 62 | /** | 
| 62 | 63 |  * BulkConnection | 
| 63 | 64 |  * | 
| @@ -546,7 +547,7 @@ public BatchInfo getBatchInfo(String jobId, String batchId, ContentType contentT | 
| 546 | 547 |                 try {                                                                               // %EDIT% | 
| 547 | 548 |                     stream.close();                                                                   // %EDIT% | 
| 548 | 549 |                 } 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% | 
| 550 | 551 |                 }                                                                                   // %EDIT% | 
| 551 | 552 |             } | 
| 552 | 553 |         } | 
| @@ -581,7 +582,7 @@ public BatchResult getBatchResult(String jobId, String batchId, ContentType cont | 
| 581 | 582 |                 try {                                                                               // %EDIT% | 
| 582 | 583 |                     stream.close();                                                                   // %EDIT% | 
| 583 | 584 |                 } 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% | 
| 585 | 586 |                 }                                                                                   // %EDIT% | 
| 586 | 587 |             } | 
| 587 | 588 |         } | 
| @@ -641,7 +642,7 @@ public QueryResultList getQueryResultList(String jobId, String batchId, ContentT | 
| 641 | 642 |                 try {                                                                               // %EDIT% | 
| 642 | 643 |                     stream.close();                                                                   // %EDIT% | 
| 643 | 644 |                 } 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% | 
| 645 | 646 |                 }                                                                                   // %EDIT% | 
| 646 | 647 |             } | 
| 647 | 648 |         } | 
| @@ -790,7 +791,7 @@ public JobInfo getJobStatus(String jobId, ContentType contentType) throws AsyncA | 
| 790 | 791 |                 try {                                                                             // %EDIT% | 
| 791 | 792 |                     in.close();                                                                     // %EDIT% | 
| 792 | 793 |                 } 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% | 
| 794 | 795 |                 }                                                                                 // %EDIT% | 
| 795 | 796 |             } | 
| 796 | 797 |         } | 
|  | 
0 commit comments