incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1463872 - in /incubator/droids/branches/0.2.x-cleanup: droids-core/pom.xml droids-crawler/src/test/java/org/apache/droids/crawler/localserver/LocalHttpServer.java
Date Wed, 03 Apr 2013 08:13:48 GMT
Author: tobr
Date: Wed Apr  3 08:13:48 2013
New Revision: 1463872

URL: http://svn.apache.org/r1463872
Log:
removed guava dependency and the precondition checks.
throw DroidsException instead

Modified:
    incubator/droids/branches/0.2.x-cleanup/droids-core/pom.xml
    incubator/droids/branches/0.2.x-cleanup/droids-crawler/src/test/java/org/apache/droids/crawler/localserver/LocalHttpServer.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/pom.xml
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/pom.xml?rev=1463872&r1=1463871&r2=1463872&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/pom.xml (original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/pom.xml Wed Apr  3 08:13:48 2013
@@ -52,11 +52,6 @@
             <version>${project.version}</version>
         </dependency>
         <dependency>
-            <groupId>com.google.guava</groupId>
-            <artifactId>guava</artifactId>
-            <version>13.0.1</version>
-        </dependency>
-        <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
             <version>${slf4j.version}</version>

Modified: incubator/droids/branches/0.2.x-cleanup/droids-crawler/src/test/java/org/apache/droids/crawler/localserver/LocalHttpServer.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-crawler/src/test/java/org/apache/droids/crawler/localserver/LocalHttpServer.java?rev=1463872&r1=1463871&r2=1463872&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-crawler/src/test/java/org/apache/droids/crawler/localserver/LocalHttpServer.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-crawler/src/test/java/org/apache/droids/crawler/localserver/LocalHttpServer.java
Wed Apr  3 08:13:48 2013
@@ -16,7 +16,6 @@
  */
 package org.apache.droids.crawler.localserver;
 
-import com.google.common.base.Preconditions;
 import org.apache.http.HttpException;
 import org.apache.http.HttpServerConnection;
 import org.apache.http.impl.DefaultConnectionReuseStrategy;
@@ -179,7 +178,6 @@ public class LocalHttpServer {
      */
     public int getServicePort() {
         ServerSocket ssock = this.servicedSocket; // avoid synchronization
-        Preconditions.checkState(ssock != null, "not running");
         return ssock.getLocalPort();
     }
 
@@ -190,7 +188,6 @@ public class LocalHttpServer {
      */
     public SocketAddress getServiceAddress() {
         ServerSocket ssock = this.servicedSocket; // avoid synchronization
-        Preconditions.checkState(ssock != null, "not running");
         return ssock.getLocalSocketAddress();
     }
 



Mime
View raw message