Skip to content

Commit

Permalink
No need to require 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Mar 12, 2016
1 parent ac8c65f commit 7a78f9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
8 changes: 0 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/org/kohsuke/github/HttpException.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public HttpException(String message, int responseCode, String responseMessage, S
* @see HttpURLConnection#getResponseMessage()
*/
public HttpException(String message, int responseCode, String responseMessage, String url, Throwable cause) {
super(message, cause);
super(message);
initCause(cause);
this.responseCode = responseCode;
this.responseMessage = responseMessage;
this.url = url;
Expand All @@ -67,7 +68,8 @@ public HttpException(String message, int responseCode, String responseMessage, S
*/
public HttpException(int responseCode, String responseMessage, String url, Throwable cause) {
super("Server returned HTTP response code: " + responseCode + ", message: '" + responseMessage + "'" +
" for URL: " + url, cause);
" for URL: " + url);
initCause(cause);
this.responseCode = responseCode;
this.responseMessage = responseMessage;
this.url = url;
Expand Down

0 comments on commit 7a78f9f

Please sign in to comment.