You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/02/08 15:33:53 UTC
(commons-configuration) branch master updated (33ae6f65 -> 82c3c1cd)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
from 33ae6f65 Javadoc
new 7bca6852 Javadoc source of generated code.
new b1676873 Normalize some code formatting
new 82c3c1cd Fix Javadoc warnings
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
pom.xml | 12 +++++++--
src/main/javacc/PropertyListParser.jj | 46 ++++++++++-------------------------
2 files changed, 23 insertions(+), 35 deletions(-)
(commons-configuration) 01/03: Javadoc source of generated code.
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit 7bca6852e4bd77f18db04eecd6645c9aba29ea20
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 8 10:21:33 2025 -0500
Javadoc source of generated code.
Avoid Javadoc author tags for generated code
---
src/main/javacc/PropertyListParser.jj | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/main/javacc/PropertyListParser.jj b/src/main/javacc/PropertyListParser.jj
index 317cdf14..02463d3c 100644
--- a/src/main/javacc/PropertyListParser.jj
+++ b/src/main/javacc/PropertyListParser.jj
@@ -6,7 +6,7 @@
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -34,9 +34,7 @@ import org.apache.commons.configuration2.tree.ImmutableNode;
import org.apache.commons.codec.binary.Hex;
/**
- * JavaCC based parser for the PropertyList format.
- *
- * @author Emmanuel Bourg
+ * JavaCC based parser for the PropertyList format generated from {@code src/main/javacc/PropertyListParser.jj}.
*/
class PropertyListParser {
(commons-configuration) 02/03: Normalize some code formatting
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit b1676873957791e47339b933cc32fe600f70d099
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 8 10:25:28 2025 -0500
Normalize some code formatting
---
src/main/javacc/PropertyListParser.jj | 40 ++++++++++-------------------------
1 file changed, 11 insertions(+), 29 deletions(-)
diff --git a/src/main/javacc/PropertyListParser.jj b/src/main/javacc/PropertyListParser.jj
index 02463d3c..d5bbd413 100644
--- a/src/main/javacc/PropertyListParser.jj
+++ b/src/main/javacc/PropertyListParser.jj
@@ -41,23 +41,17 @@ class PropertyListParser {
/**
* Remove the quotes at the beginning and at the end of the specified String.
*/
- protected String removeQuotes(String s)
- {
- if (s == null)
- {
+ protected String removeQuotes(String s) {
+ if (s == null) {
return null;
}
-
- if (s.startsWith("\"") && s.endsWith("\"") && s.length() >= 2)
- {
+ if (s.startsWith("\"") && s.endsWith("\"") && s.length() >= 2) {
s = s.substring(1, s.length() - 1);
}
-
return s;
}
- protected String unescapeQuotes(String s)
- {
+ protected String unescapeQuotes(String s) {
return s.replaceAll("\\\\\"", "\"");
}
@@ -65,35 +59,24 @@ class PropertyListParser {
* Remove the white spaces and the data delimiters from the specified
* string and parse it as a byte array.
*/
- protected byte[] filterData(String s) throws ParseException
- {
- if (s == null)
- {
+ protected byte[] filterData(String s) throws ParseException {
+ if (s == null) {
return null;
}
-
// remove the delimiters
- if (s.startsWith("<") && s.endsWith(">") && s.length() >= 2)
- {
+ if (s.startsWith("<") && s.endsWith(">") && s.length() >= 2) {
s = s.substring(1, s.length() - 1);
}
-
// remove the white spaces
s = s.replaceAll("\\s", "");
-
// add a leading 0 to ensure well formed bytes
- if (s.length() % 2 != 0)
- {
+ if (s.length() % 2 != 0) {
s = "0" + s;
}
-
// parse and return the bytes
- try
- {
+ try {
return Hex.decodeHex(s.toCharArray());
- }
- catch (Exception e)
- {
+ } catch (Exception e) {
throw (ParseException) new ParseException("Unable to parse the byte[] : " + e.getMessage());
}
}
@@ -101,8 +84,7 @@ class PropertyListParser {
/**
* Parse a date formatted as <*D2002-03-22 11:30:00 +0100>
*/
- protected Date parseDate(String s) throws ParseException
- {
+ protected Date parseDate(String s) throws ParseException {
return PropertyListConfiguration.parseDate(s);
}
(commons-configuration) 03/03: Fix Javadoc warnings
Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git
commit 82c3c1cdb9e246a9a4419d0bb7724d063ae171db
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Feb 8 10:33:24 2025 -0500
Fix Javadoc warnings
---
pom.xml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index 2ab83f79..375fd033 100644
--- a/pom.xml
+++ b/pom.xml
@@ -419,9 +419,17 @@
<source>${maven.compiler.source}</source>
<failOnError>false</failOnError>
<links>
- <link>https://docs.spring.io/spring/docs/${spring.version}/javadoc-api/</link>
+ <link>https://docs.spring.io/spring-framework/docs/${spring.version}/javadoc-api/</link>
<link>https://commons.apache.org/proper/commons-text/javadocs/api-release/</link>
</links>
+ <additionalDependencies>
+ <additionalDependency>
+ <groupId>com.google.code.findbugs</groupId>
+ <artifactId>jsr305</artifactId>
+ <version>3.0.2</version>
+ <scope>test</scope>
+ </additionalDependency>
+ </additionalDependencies>
</configuration>
</plugin>
</plugins>
@@ -631,7 +639,7 @@
<failOnError>false</failOnError>
<links>
<link>https://docs.oracle.com/javase/8/docs/api/</link>
- <link>https://docs.spring.io/spring/docs/${spring.version}/javadoc-api/</link>
+ <link>https://docs.spring.io/spring-framework/docs/5.3.39/javadoc-api/</link>
<link>https://commons.apache.org/proper/commons-text/javadocs/api-release/</link>
</links>
</configuration>