You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2020/04/29 13:52:22 UTC
[juneau] branch master updated: Add
PropertyStoreBuilder.clearCache() method.
This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new ac196d8 Add PropertyStoreBuilder.clearCache() method.
ac196d8 is described below
commit ac196d832b62cdaed5a8e05ad2ab76a027c0a28d
Author: JamesBognar <ja...@apache.org>
AuthorDate: Wed Apr 29 09:51:59 2020 -0400
Add PropertyStoreBuilder.clearCache() method.
---
.../src/main/java/org/apache/juneau/PropertyStoreBuilder.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/PropertyStoreBuilder.java b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/PropertyStoreBuilder.java
index 6c5ced4..a779c1f 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/PropertyStoreBuilder.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/PropertyStoreBuilder.java
@@ -517,6 +517,13 @@ public class PropertyStoreBuilder {
this.groups.clear();
}
+ /**
+ * Clears the PropertyStore cache.
+ */
+ public static void clearCache() {
+ CACHE.clear();
+ }
+
private static boolean isSet(String key) {
String s = key.substring(key.lastIndexOf('.')+1);
return s.length() == 2 && s.charAt(0) == 's';