You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/07/05 07:28:40 UTC
[7/8] camel git commit: Optimise - LRUSoftCache takes time to init so
create it in doStart instead
Optimise - LRUSoftCache takes time to init so create it in doStart instead
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/fe1780c9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/fe1780c9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/fe1780c9
Branch: refs/heads/master
Commit: fe1780c9371b38e2547292978cb2700d22615191
Parents: ab0f8eb
Author: Claus Ibsen <da...@apache.org>
Authored: Tue Jul 4 14:45:48 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Jul 5 09:28:23 2017 +0200
----------------------------------------------------------------------
.../java/org/apache/camel/impl/DefaultPackageScanClassResolver.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/fe1780c9/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
index 202fe70..4f12eac 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultPackageScanClassResolver.java
@@ -506,6 +506,7 @@ public class DefaultPackageScanClassResolver extends ServiceSupport implements P
}
}
+ @SuppressWarnings("unchecked")
protected void doStart() throws Exception {
if (jarCache == null) {
// use a JAR cache to speed up scanning JARs, but let it be soft referenced so it can claim the data when memory is needed