cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject git commit: CXF-5923: Create sample to demonstrate usage of search extension with Lucene and Tika. Fixed coupe of checkstyle violations.
Date Tue, 12 Aug 2014 13:13:46 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 1674e7fb3 -> fa37d8722


CXF-5923: Create sample to demonstrate usage of search extension with Lucene and Tika. Fixed
coupe of checkstyle violations.


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/fa37d872
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/fa37d872
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/fa37d872

Branch: refs/heads/master
Commit: fa37d8722d154bbdec9d2acf4da16a04db0a34f1
Parents: 1674e7f
Author: reta <drreta@gmail.com>
Authored: Tue Aug 12 09:13:36 2014 -0400
Committer: reta <drreta@gmail.com>
Committed: Tue Aug 12 09:13:36 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/demo/jaxrs/search/server/Catalog.java      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/fa37d872/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Catalog.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Catalog.java
b/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Catalog.java
index bd7ecdd..4ffccdf 100644
--- a/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Catalog.java
+++ b/distribution/src/main/release/samples/jax_rs/search/src/main/java/demo/jaxrs/search/server/Catalog.java
@@ -78,7 +78,8 @@ public class Catalog {
     private final Directory directory = new RAMDirectory();
     private final Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_40);
     private final IndexWriterConfig config = new IndexWriterConfig(Version.LUCENE_40, analyzer);
-    private final ExecutorService executor = Executors.newFixedThreadPool( Runtime.getRuntime().availableProcessors()
);
+    private final ExecutorService executor = 
+            Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
     
     public Catalog() throws IOException {
         initIndex();
@@ -119,12 +120,13 @@ public class Catalog {
                             }
                         }
                         
-                        response.resume( Response.created(uri.getRequestUriBuilder().path(source).build()).build()
);
+                        response.resume(Response.created(uri.getRequestUriBuilder()
+                                .path(source).build()).build());
                         return null;
                     }                       
                 }              
                 
-                response.resume( Response.status(Status.BAD_REQUEST).build() );   
+                response.resume(Response.status(Status.BAD_REQUEST).build());   
                 return null;
             }
         });


Mime
View raw message