[maven-resolver] branch MRESOLVER-60 updated: [MRESOLVER-60] Replace Objects.isNull because it was introduced in Java 8, hence not Java 7 compatible

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[maven-resolver] branch MRESOLVER-60 updated: [MRESOLVER-60] Replace Objects.isNull because it was introduced in Java 8, hence not Java 7 compatible

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

rfscholte pushed a commit to branch MRESOLVER-60
in repository https://gitbox.apache.org/repos/asf/maven-resolver.git


The following commit(s) were added to refs/heads/MRESOLVER-60 by this push:
     new bdea866  [MRESOLVER-60] Replace Objects.isNull because it was introduced in Java 8, hence not Java 7 compatible
bdea866 is described below

commit bdea866547f5558b7255d21ef512bd56fd267c30
Author: rfscholte <[hidden email]>
AuthorDate: Wed Oct 10 21:20:35 2018 +0200

    [MRESOLVER-60] Replace Objects.isNull because it was introduced in Java 8, hence not Java 7 compatible
---
 .../java/org/eclipse/aether/DefaultRepositorySystemSessionTest.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/maven-resolver-api/src/test/java/org/eclipse/aether/DefaultRepositorySystemSessionTest.java b/maven-resolver-api/src/test/java/org/eclipse/aether/DefaultRepositorySystemSessionTest.java
index 5d5bb63..911fd8f 100644
--- a/maven-resolver-api/src/test/java/org/eclipse/aether/DefaultRepositorySystemSessionTest.java
+++ b/maven-resolver-api/src/test/java/org/eclipse/aether/DefaultRepositorySystemSessionTest.java
@@ -140,8 +140,7 @@ public class DefaultRepositorySystemSessionTest
 
         for ( Method method : methods )
         {
-            assertEquals( method.getName(), Objects.isNull( method.invoke( session ) ),
-                          Objects.isNull( method.invoke( newSession ) ) );
+            assertEquals( method.getName(), method.invoke( session ) == null, method.invoke( newSession ) == null );
         }
     }