From 4724ed4636caf25f70c7f0e99c4c4f0f4d040a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fournier?= Date: Sat, 25 Nov 2017 16:15:42 +0100 Subject: [PATCH 1/2] Expose the full mappings in property descriptor util --- .../pmd/properties/PropertyDescriptorUtil.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java b/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java index 33717da7a0..f58ed36cea 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/properties/PropertyDescriptorUtil.java @@ -56,6 +56,16 @@ public class PropertyDescriptorUtil { private PropertyDescriptorUtil() { } + + /** + * Returns the full mappings from type ids to extractors. + * + * @return The full mapping. + */ + public static Map> typeIdsToExtractors() { + return DESCRIPTOR_FACTORIES_BY_TYPE; + } + /** * Gets the factory for the descriptor identified by the string id. From cbeaea0e73a76aa74534d5a9d1d85a1576fe63f0 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 27 Nov 2017 20:54:37 +0100 Subject: [PATCH 2/2] Update release notes, refs #758 --- docs/pages/release_notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/pages/release_notes.md b/docs/pages/release_notes.md index 5687105f4a..55cac142a2 100644 --- a/docs/pages/release_notes.md +++ b/docs/pages/release_notes.md @@ -504,4 +504,5 @@ a warning will now be produced suggesting users to adopt it for better performan * [#737](https://github.com/pmd/pmd/pull/737): \[doc] Fix NPathComplexity documentation bad rendering - [Clément Fournier](https://github.com/oowekyala) * [#744](https://github.com/pmd/pmd/pull/744): \[doc] Added Apex to supported languages - [Michał Kuliński](https://github.com/coola) * [#746](https://github.com/pmd/pmd/pull/746): \[doc] Fix typo in incremental analysis log message - [Clément Fournier](https://github.com/oowekyala) +* [#758](https://github.com/pmd/pmd/pull/758): \[core] Expose the full mapping from property type id to property extractor - [Clément Fournier](https://github.com/oowekyala)