cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [3/4] cayenne git commit: Minor code cleanup
Date Mon, 05 Mar 2018 08:14:22 GMT
Minor code cleanup


Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/c6a44ccf
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/c6a44ccf
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/c6a44ccf

Branch: refs/heads/master
Commit: c6a44ccf4aa8a77c23f5f0b4bbd69b01c6983297
Parents: 927b068
Author: stariy <stariy95@gmail.com>
Authored: Mon Mar 5 10:52:34 2018 +0300
Committer: stariy <stariy95@gmail.com>
Committed: Mon Mar 5 10:52:34 2018 +0300

----------------------------------------------------------------------
 .../java/org/apache/cayenne/map/SQLTemplateDescriptor.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/c6a44ccf/cayenne-server/src/main/java/org/apache/cayenne/map/SQLTemplateDescriptor.java
----------------------------------------------------------------------
diff --git a/cayenne-server/src/main/java/org/apache/cayenne/map/SQLTemplateDescriptor.java
b/cayenne-server/src/main/java/org/apache/cayenne/map/SQLTemplateDescriptor.java
index 6733fd4..785d32f 100644
--- a/cayenne-server/src/main/java/org/apache/cayenne/map/SQLTemplateDescriptor.java
+++ b/cayenne-server/src/main/java/org/apache/cayenne/map/SQLTemplateDescriptor.java
@@ -196,9 +196,9 @@ public class SQLTemplateDescriptor extends QueryDescriptor {
 
         PrefetchTreeNode prefetchTree = new PrefetchTreeNode();
 
-        for (String prefetchPath : prefetchesMap.keySet()) {
-            PrefetchTreeNode node = prefetchTree.addPath(prefetchPath);
-            node.setSemantics(prefetchesMap.get(prefetchPath));
+        for (Map.Entry<String, Integer> entry : prefetchesMap.entrySet()) {
+            PrefetchTreeNode node = prefetchTree.addPath(entry.getKey());
+            node.setSemantics(entry.getValue());
             node.setPhantom(false);
         }
 


Mime
View raw message