db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1855579 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/manager/AbstractBaseManager.java
Date Fri, 15 Mar 2019 11:23:48 GMT
Author: tv
Date: Fri Mar 15 11:23:48 2019
New Revision: 1855579

URL: http://svn.apache.org/viewvc?rev=1855579&view=rev
Log:
Use method references

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/manager/AbstractBaseManager.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/manager/AbstractBaseManager.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/manager/AbstractBaseManager.java?rev=1855579&r1=1855578&r2=1855579&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/manager/AbstractBaseManager.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/manager/AbstractBaseManager.java
Fri Mar 15 11:23:48 2019
@@ -422,7 +422,7 @@ implements Serializable
             if (fromCache)
             {
                 ids.stream()
-                    .map(key -> cacheGet(key))
+                    .map(this::cacheGet)
                     .filter(om -> om != null)
                     .forEach(om -> omsMap.put(om.getPrimaryKey(), om));
 
@@ -443,7 +443,7 @@ implements Serializable
             }
 
             return ids.stream()
-                    .map(key -> omsMap.get(key))
+                    .map(omsMap::get)
                     .collect(Collectors.toList());
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message