Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[FIXED JENKINS-14461] Removed references to JDK6 exception constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jul 23, 2012
1 parent 73367cb commit 6958bb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions pom.xml
@@ -1,10 +1,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>analysis-pom</artifactId>
<version>1.38</version>
<version>1.39</version>
<relativePath>../analysis-pom/pom.xml</relativePath>
</parent>

Expand Down
Expand Up @@ -17,6 +17,7 @@

import org.apache.commons.lang.StringUtils;
import org.apache.tools.ant.util.ReaderInputStream;
import org.kohsuke.stapler.framework.io.IOException2;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
Expand Down Expand Up @@ -57,10 +58,10 @@ public Collection<FileAnnotation> parse(final Reader file) throws IOException, P
return warnings;
}
catch (SAXException exception) {
throw new IOException(exception);
throw new IOException2(exception);
}
catch (ParserConfigurationException exception) {
throw new IOException(exception);
throw new IOException2(exception);
}
}

Expand Down
Expand Up @@ -7,6 +7,7 @@
import hudson.plugins.warnings.parser.Messages;
import hudson.plugins.warnings.parser.ParsingCanceledException;
import hudson.plugins.warnings.parser.Warning;
import hudson.util.IOException2;

import java.io.IOException;
import java.io.Reader;
Expand Down Expand Up @@ -74,10 +75,10 @@ public Collection<FileAnnotation> parse(final Reader reader)
return warnings;
}
catch (ParserConfigurationException exception) {
throw new IOException(exception);
throw new IOException2(exception);
}
catch (SAXException exception) {
throw new IOException(exception);
throw new IOException2(exception);
}
}

Expand Down

0 comments on commit 6958bb7

Please sign in to comment.