</parent>\r
<modelVersion>4.0.0</modelVersion>\r
<artifactId>commons-configuration2</artifactId>\r
- <version>2.8.0-SNAPSHOT</version>\r
+ <version>2.8-SNAPSHOT</version>\r
<name>Apache Commons Configuration</name>\r
\r
<inceptionYear>2001</inceptionYear>\r
<properties>\r
<commons.componentid>configuration</commons.componentid>\r
<commons.module.name>org.apache.commons.configuration2</commons.module.name>\r
- <commons.release.version>2.8.0</commons.release.version>\r
+ <commons.release.version>2.8</commons.release.version>\r
<commons.release.desc>(reworked 2.x version)</commons.release.desc>\r
<commons.release.2.name>commons-configuration-${commons.release.2.version}</commons.release.2.name>\r
<commons.release.2.version>1.10</commons.release.2.version>\r
<author email="dev@commons.apache.org">Apache Commons Community</author>
</properties>
<body>
- <release version="2.8.0" date="2020-MM-DD"
+ <release version="2.8" date="2020-MM-DD"
description="Minor release with new features and updated dependencies.">
<!-- FIX -->
<action issue="CONFIGURATION-753" type="fix" dev="mattjuntunen">
* @return The associated Duration if key is found and has valid format, default value otherwise.
* @throws org.apache.commons.configuration2.ex.ConversionException is thrown if the key maps to an object that is not a
* Duration.
- * @since 2.8.0
+ * @since 2.8
*/
default Duration getDuration(final String key) {
final String string = getString(key);
* @return The associated Duration if key is found and has valid format, default value otherwise.
* @throws org.apache.commons.configuration2.ex.ConversionException is thrown if the key maps to an object that is not a
* Duration.
- * @since 2.8.0
+ * @since 2.8
*/
default Duration getDuration(final String key, final Duration defaultValue) {
final Object value = getProperty(key);
*
* @throws org.apache.commons.configuration2.ex.ConversionException is thrown if the key maps to an object that is not a
* String.
- * @since 2.8.0
+ * @since 2.8
*/
default <T extends Enum<T>> T getEnum(final String key, final Class<T> enumType) {
try {
*
* @throws org.apache.commons.configuration2.ex.ConversionException is thrown if the key maps to an object that is not a
* Enum.
- * @since 2.8.0
+ * @since 2.8
*/
default <T extends Enum<T>> T getEnum(final String key, final Class<T> enumType, final T defaultValue) {
final String strValue = getString(key, null);
*
* @param key the property key
* @param number the number of blank lines to add before this property definition
- * @since 2.8.0
+ * @since 2.8
*/
public void setBlankLinesBefore(final String key, final int number) {
fetchLayoutData(key).setBlankLines(number);
* Returns the number of blank lines before this property.
*
* @return the number of blank lines before this property
- * @since 2.8.0
+ * @since 2.8
*/
public int getBlankLines() {
return blankLines;
* Sets the number of properties before this property.
*
* @param blankLines the number of properties before this property
- * @since 2.8.0
+ * @since 2.8
*/
public void setBlankLines(final int blankLines) {
this.blankLines = blankLines;
* @param url the {@code URL} location
* @param urlConnectionOptions options
* @return a reference to this object for method chaining
- * @since 2.8.0
+ * @since 2.8
*/
default T setURL(final URL url, final URLConnectionOptions urlConnectionOptions) {
return setURL(url);
/**
* A utility class to convert the configuration properties into any type.
*
- * @since 2.8.0
+ * @since 2.8
*/
public final class PropertyConverter {
* @param value the value to convert
* @return the converted value
* @throws ConversionException thrown if the value cannot be converted to a Duration
- * @since 2.8.0
+ * @since 2.8
*/
public static Duration toDuration(final Object value) throws ConversionException {
if (value instanceof Duration) {
*
* @param url the location of the file as URL
* @param urlConnectionOptions URL connection options
- * @since 2.8.0
+ * @since 2.8
*/
public void setURL(final URL url, final URLConnectionOptions urlConnectionOptions) {
new Updater() {
* @return TODO
* @throws ConfigurationException TODO
*
- * @since 2.8.0
+ * @since 2.8
*/
public InputStream getInputStream(final URL url, final URLConnectionOptions urlConnectionOptions) throws ConfigurationException {
return getInputStream(url);
/**
* Carries options and operates on {@link URLConnection}.
*
- * @since 2.8.0
+ * @since 2.8
*/
public final class URLConnectionOptions {
/**
* @return An iterator of {@link #children child nodes.}
- * @since 2.8.0
+ * @since 2.8
*/
@Override
public Iterator<ImmutableNode> iterator() {