From 6d551381fddf811aafc3a4f08fb880a048dc2095 Mon Sep 17 00:00:00 2001 From: Elyes Cherfa Date: Wed, 2 Oct 2024 17:42:40 +0200 Subject: [PATCH] Issue #58: Add Community Connector GitHub link * Added javadoc. --- .../connector/producer/ConnectorJsonNodeReader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/ConnectorJsonNodeReader.java b/src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/ConnectorJsonNodeReader.java index 7a321e6..a7afc8d 100644 --- a/src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/ConnectorJsonNodeReader.java +++ b/src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/ConnectorJsonNodeReader.java @@ -664,6 +664,12 @@ public Map getDefaultVariables() { return defaultVariables; } + /** + * Retrieves the relative path of the connector that was saved during parsing. + * This path is used to generate a link to the connector's source code. + * + * @return The saved relative path as a string. + */ public String getRelativePath() { return connector.get("relativePath").asText(); }