From 229cb12699018513649fb58aacc522fbbca19158 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Tue, 14 Jul 2009 21:21:14 +0000 Subject: [PATCH] OPENJPA-703: correct comment git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@794069 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/jdbc/kernel/PreparedQueryCacheImpl.java | 3 +-- .../org/apache/openjpa/jdbc/kernel/localizer.properties | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryCacheImpl.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryCacheImpl.java index 21f92004e..40c74756a 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryCacheImpl.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/PreparedQueryCacheImpl.java @@ -120,8 +120,7 @@ public class PreparedQueryCacheImpl implements PreparedQueryCache { } _delegate.put(id, q); if (_log != null && _log.isTraceEnabled()) - _log.trace(_loc.get("prepared-query-cached", id, - q.getTargetQuery())); + _log.trace(_loc.get("prepared-query-cached", id); return true; } finally { unlock(); diff --git a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties index c71bc7139..0a7f1b507 100644 --- a/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties +++ b/openjpa-jdbc/src/main/resources/org/apache/openjpa/jdbc/kernel/localizer.properties @@ -117,7 +117,7 @@ strong-exclusion: excluded permanently weak-exclusion: excluded temporarily prepared-query-excluded-by-user: because matches user specified exclusion \ pattern "{0}" -prepared-query-cached: Query "{0}" is cached as target query "{1}" +prepared-query-cached: Query "{0}" is cached." prepared-query-not-cachable: Query "{0}" is not fit for caching. prepared-query-invalidate: Query "{0}" is invalidated and removed from cache. prepared-query-uncache: Query "{0}" is removed from cache {1}.