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

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

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

tv
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: [hidden email]
For additional commands, e-mail: [hidden email]