Go back to java 6 for tools.

This commit is contained in:
Mike Hearn 2014-02-28 13:58:28 +01:00
parent 6025571350
commit e0153a9bf0
2 changed files with 3 additions and 14 deletions

View File

@ -33,19 +33,6 @@
<build>
<plugins>
<!-- We allow Java 7 for this module -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>

View File

@ -71,7 +71,9 @@ public class PaymentProtocol {
}
output.append(format("%n%n%s%n%s", session.getPaymentRequest(), session.getPaymentDetails()));
System.out.println(output);
} catch (URISyntaxException | BitcoinURIParseException e) {
} catch (URISyntaxException e) {
System.err.println("Could not parse URI: " + e.getMessage());
} catch (BitcoinURIParseException e) {
System.err.println("Could not parse URI: " + e.getMessage());
} catch (PaymentRequestException e) {
System.err.println("Could not handle payment URL: " + e.getMessage());