myrle-krantz closed pull request #6: Fixed NPE, removed code warning. URL: https://github.com/apache/fineract-cn-test/pull/6
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/src/main/java/org/apache/fineract/cn/test/listener/InMemoryEventRecorder.java b/src/main/java/org/apache/fineract/cn/test/listener/InMemoryEventRecorder.java index 19e85d6..711a873 100644 --- a/src/main/java/org/apache/fineract/cn/test/listener/InMemoryEventRecorder.java +++ b/src/main/java/org/apache/fineract/cn/test/listener/InMemoryEventRecorder.java @@ -19,6 +19,7 @@ package org.apache.fineract.cn.test.listener; import com.google.gson.Gson; +import java.util.Objects; import org.apache.fineract.cn.lang.TenantContextHolder; import org.slf4j.Logger; @@ -49,10 +50,10 @@ @Override public <T> boolean wait(final String operation, final T payloadMatcher) throws InterruptedException { - return waitForMatch(operation, new Function() { + return waitForMatch(operation, new Function<T, Boolean>() { @Override - public Object apply(Object x) { - return x.equals(payloadMatcher); + public Boolean apply(Object x) { + return Objects.equals(x,payloadMatcher); } @Override ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services