From ff1ba78b342ec7a7780723e3a7f58a81e11ab7e0 Mon Sep 17 00:00:00 2001 From: danbress Date: Thu, 5 Mar 2015 14:53:31 -0500 Subject: [PATCH] NIFI-309 fixing bug when dealing with string class names --- .../apache/nifi/documentation/html/HtmlDocumentationWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java index f3c0edf742..9856c5dc8d 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java @@ -167,7 +167,7 @@ public class HtmlDocumentationWriter implements DocumentationWriter { final String link = "../" + linkedComponent + "/index.html"; - final int indexOfLastPeriod = Math.max(0, linkedComponent.lastIndexOf(".")); + final int indexOfLastPeriod = linkedComponent.lastIndexOf(".") + 1; writeLink(xmlStreamWriter, linkedComponent.substring(indexOfLastPeriod), link);