You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2019/02/25 20:17:45 UTC
[sis] 01/02: Documentation fixes.
This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
commit c01aadc270ffe9a37ad0564049a4eefe498e13c6
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Sat Feb 23 16:49:41 2019 +0100
Documentation fixes.
---
.../src/main/java/org/apache/sis/internal/doclet/Rewriter.java | 5 +++--
.../src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Rewriter.java b/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Rewriter.java
index 038f961..5785184 100644
--- a/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Rewriter.java
+++ b/core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Rewriter.java
@@ -33,7 +33,8 @@ import java.io.Writer;
*
* <ul>
* <li>For any Java identifier, insert soft-hyphens between lower-case letters followed by an upper-case letter.</li>
- * <li>Between any Java identifiers separated by a {@code '.'} character, insert a zero-width space before the dot.</li>
+ * <li>Between any Java identifiers separated by a {@code '.'} or {@code '_'} character,
+ * insert a zero-width space before the dot or underscore.</li>
* </ul>
*
* The intent is to avoid large amount of white spaces in Javadoc when a line content long code.
@@ -238,7 +239,7 @@ process: while (i < stopAt) {
*/
if (c == '(') c = content.codePointAt(++i);
if (c == ')') c = content.codePointAt(++i);
- if (c == '.' && Character.isJavaIdentifierStart(content.codePointAt(i+1))) {
+ if ((c == '.' || c == '_') && Character.isJavaIdentifierStart(content.codePointAt(i+1))) {
content.insert(i++, '\u200B'); // Zero width space.
stopAt++;
}
diff --git a/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java b/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
index 9d9a086..e4a3038 100644
--- a/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
+++ b/storage/sis-netcdf/src/main/java/org/apache/sis/storage/netcdf/AttributeNames.java
@@ -699,7 +699,8 @@ public class AttributeNames {
*
* <p><b>Path in ISO 19115:</b></p> <ul><li>{@link Metadata} /
* {@link Metadata#getIdentificationInfo() identificationInfo} /
- * {@link DataIdentification#getCitation() citation} with {@link Role#ORIGINATOR}</li></ul>
+ * {@link DataIdentification#getCitation() citation} /
+ * {@link Citation#getCitedResponsibleParties() citedResponsibleParty} with {@link Role#ORIGINATOR}</li></ul>
*
* @see #CONTRIBUTOR
* @see #PUBLISHER