hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1100667 - in /httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark: httpcore/NHttpListener.java jetty/JettyNIOServer.java jetty/JettyServer.java jetty/RandomDataHandler.java
Date Sun, 08 May 2011 01:18:36 GMT
Author: sebb
Date: Sun May  8 01:18:35 2011
New Revision: 1100667

URL: http://svn.apache.org/viewvc?rev=1100667&view=rev
Log:
Remove unthrown Exceptions

Modified:
    httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/NHttpListener.java
    httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyNIOServer.java
    httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyServer.java
    httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/RandomDataHandler.java

Modified: httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/NHttpListener.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/NHttpListener.java?rev=1100667&r1=1100666&r2=1100667&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/NHttpListener.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/httpcore/NHttpListener.java
Sun May  8 01:18:35 2011
@@ -42,7 +42,7 @@ public class NHttpListener extends Threa
 
     public NHttpListener(
             final ListeningIOReactor ioreactor,
-            final IOEventDispatch ioEventDispatch) throws IOException {
+            final IOEventDispatch ioEventDispatch) {
         super();
         this.ioreactor = ioreactor;
         this.ioEventDispatch = ioEventDispatch;

Modified: httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyNIOServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyNIOServer.java?rev=1100667&r1=1100666&r2=1100667&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyNIOServer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyNIOServer.java
Sun May  8 01:18:35 2011
@@ -27,8 +27,6 @@
 
 package org.apache.http.benchmark.jetty;
 
-import java.io.IOException;
-
 import org.apache.http.benchmark.HttpServer;
 import org.eclipse.jetty.server.Server;
 import org.eclipse.jetty.server.nio.SelectChannelConnector;
@@ -38,7 +36,7 @@ public class JettyNIOServer implements H
 
     private final Server server;
 
-    public JettyNIOServer(int port) throws IOException {
+    public JettyNIOServer(int port) {
         super();
         if (port <= 0) {
             throw new IllegalArgumentException("Server port may not be negative or null");

Modified: httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyServer.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyServer.java?rev=1100667&r1=1100666&r2=1100667&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyServer.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/JettyServer.java
Sun May  8 01:18:35 2011
@@ -27,8 +27,6 @@
 
 package org.apache.http.benchmark.jetty;
 
-import java.io.IOException;
-
 import org.apache.http.benchmark.HttpServer;
 import org.eclipse.jetty.server.Server;
 import org.eclipse.jetty.server.bio.SocketConnector;
@@ -38,7 +36,7 @@ public class JettyServer implements Http
 
     private final Server server;
 
-    public JettyServer(int port) throws IOException {
+    public JettyServer(int port) {
         super();
         if (port <= 0) {
             throw new IllegalArgumentException("Server port may not be negative or null");

Modified: httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/RandomDataHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/RandomDataHandler.java?rev=1100667&r1=1100666&r2=1100667&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/RandomDataHandler.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-benchmark/src/main/java/org/apache/http/benchmark/jetty/RandomDataHandler.java
Sun May  8 01:18:35 2011
@@ -61,7 +61,7 @@ class RandomDataHandler extends Abstract
 
     private void rnd(
             final HttpServletRequest request,
-            final HttpServletResponse response) throws IOException, ServletException {
+            final HttpServletResponse response) throws IOException {
         int count = 100;
         String s = request.getParameter("c");
         try {



Mime
View raw message