Skip to content

Commit

Permalink
Issue postmanlabs#155 pure java codegen: fix for patch request warnin…
Browse files Browse the repository at this point in the history
…gs in travis ci
  • Loading branch information
virenderm01 committed May 30, 2020
1 parent acc4029 commit a558630
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions codegens/java-native/lib/javanative.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ function makeSnippet (request, indentString, options) {
indentString.repeat(2) + 'e.printStackTrace();\n' +
indentString + '};\n';
}

snippet += `URL obj = new URL("${sanitize(request.url.toString())}");\n` +
snippet += 'System.err.close();\n' +
'System.setErr(System.out);\n' +
`URL obj = new URL("${sanitize(request.url.toString())}");\n` +
'URLConnection connection = obj.openConnection();\n' +
'HttpURLConnection con = null;\n' +
'if(connection instanceof HttpsURLConnection){\n' +
Expand Down

0 comments on commit a558630

Please sign in to comment.