You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2019/03/25 14:07:33 UTC

[syncope] branch 2_1_X updated: [SYNCOPE-1448] Ensure Java 8 compatibility (2nd take)

This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/2_1_X by this push:
     new 64ec657  [SYNCOPE-1448] Ensure Java 8 compatibility (2nd take)
64ec657 is described below

commit 64ec657ed0eed9efb22aca5e8334e99fb9b64038
Author: Francesco Chicchiriccò <il...@apache.org>
AuthorDate: Mon Mar 25 15:07:23 2019 +0100

    [SYNCOPE-1448] Ensure Java 8 compatibility (2nd take)
---
 .../org/apache/syncope/core/spring/ImplementationManagerTest.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java b/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java
index 2ee2064..42b2d84 100644
--- a/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java
+++ b/core/spring/src/test/java/org/apache/syncope/core/spring/ImplementationManagerTest.java
@@ -81,9 +81,8 @@ public class ImplementationManagerTest {
                             Thread.yield();
                         }
                         try {
-                            ImplementationManager.buildPasswordRule(implementation).orElseThrow(() -> {
-                                throw new IllegalStateException("No implementation returned");
-                            });
+                            ImplementationManager.buildPasswordRule(implementation).
+                                    orElseThrow(() -> new IllegalStateException("No implementation returned"));
                         } catch (Exception e) {
                             errorMessages.add(e.getLocalizedMessage());
                             errorCount.incrementAndGet();