geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject [geode] branch feature/GEODE-4685 updated: GEODE-4685: Revert changes to static LuceneExceptionObserver access in LuceneEventListener.java
Date Tue, 27 Feb 2018 18:02:17 GMT
This is an automated email from the ASF dual-hosted git repository.

udo pushed a commit to branch feature/GEODE-4685
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/feature/GEODE-4685 by this push:
     new dab6f1e  GEODE-4685: Revert changes to static LuceneExceptionObserver access in LuceneEventListener.java
dab6f1e is described below

commit dab6f1e7b21d27f768338cf8d1a2ee01ef7d40f3
Author: Udo <ukohlmeyer@pivotal.io>
AuthorDate: Tue Feb 27 10:02:08 2018 -0800

    GEODE-4685: Revert changes to static LuceneExceptionObserver access in LuceneEventListener.java
---
 .../org/apache/geode/cache/lucene/internal/LuceneEventListener.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneEventListener.java
b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneEventListener.java
index a86ab80..8a04f8e 100644
--- a/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneEventListener.java
+++ b/geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/LuceneEventListener.java
@@ -44,7 +44,7 @@ import org.apache.geode.internal.logging.LogService;
  */
 public class LuceneEventListener implements AsyncEventListener {
 
-  private LuceneExceptionObserver exceptionObserver = exception -> {
+  private static LuceneExceptionObserver exceptionObserver = exception -> {
   };
   private InternalCache cache;
 
@@ -133,7 +133,7 @@ public class LuceneEventListener implements AsyncEventListener {
     return value;
   }
 
-  public void setExceptionObserver(LuceneExceptionObserver observer) {
+  public static void setExceptionObserver(LuceneExceptionObserver observer) {
     if (observer == null) {
       observer = exception -> {
       };
@@ -142,7 +142,7 @@ public class LuceneEventListener implements AsyncEventListener {
     exceptionObserver = observer;
   }
 
-  public LuceneExceptionObserver getExceptionObserver() {
+  public static LuceneExceptionObserver getExceptionObserver() {
     return exceptionObserver;
   }
 }

-- 
To stop receiving notification emails like this one, please contact
udo@apache.org.

Mime
View raw message