Skip to content

Commit 70e6ef8

Browse files
committed
Javadoc
1 parent cd6464b commit 70e6ef8

6 files changed

Lines changed: 17 additions & 17 deletions

File tree

src/main/java/org/apache/commons/configuration2/AbstractConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ public void setListDelimiterHandler(final ListDelimiterHandler listDelimiterHand
13851385
}
13861386

13871387
/**
1388-
* Allows setting the logger to be used by this configuration object. This method makes it possible for clients to
1388+
* Sets the logger to be used by this configuration object. This method makes it possible for clients to
13891389
* exactly control logging behavior. Per default a logger is set that will ignore all log messages. Derived classes that
13901390
* want to enable logging should call this method during their initialization with the logger to be used. It is legal to
13911391
* pass a <strong>null</strong> logger; in this case, logging will be disabled.

src/main/java/org/apache/commons/configuration2/INIConfiguration.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ private String escapeValue(final String value) {
599599
}
600600

601601
/**
602-
* Tries to find the index of the separator character in the given string. This method checks for the presence of
602+
* Finds the index of the separator character in the given string. This method checks for the presence of
603603
* separator characters in the given string. If multiple characters are found, the first one is assumed to be the
604604
* correct separator. If there are quoting characters, they are taken into account, too.
605605
*
@@ -729,7 +729,7 @@ private boolean isCommentChar(final char c) {
729729
}
730730

731731
/**
732-
* Determine if the given line is a comment line.
732+
* Tests if the given line is a comment line.
733733
*
734734
* @param line The line to check.
735735
* @return true if the line is empty or starts with one of the comment characters
@@ -743,7 +743,7 @@ protected boolean isCommentLine(final String line) {
743743
}
744744

745745
/**
746-
* Determine if the given line is a section.
746+
* Tests if the given line is a section.
747747
*
748748
* @param line The line to check.
749749
* @return true if the line contains a section
@@ -781,7 +781,7 @@ private boolean lineContinues(final String line, final int pos) {
781781
}
782782

783783
/**
784-
* Parse the value to remove the quotes and ignoring the comment. Example:
784+
* Parses the value to remove the quotes and ignoring the comment. Example:
785785
*
786786
* <pre>
787787
* &quot;value&quot; ; comment -&gt; value
@@ -868,7 +868,7 @@ private String parseValue(final String val, final BufferedReader reader) throws
868868
}
869869

870870
/**
871-
* Load the configuration from the given reader. Note that the {@code clear()} method is not called so the configuration
871+
* Reads the configuration from the given reader. Note that the {@code clear()} method is not called so the configuration
872872
* read in will be merged with the current configuration.
873873
*
874874
* @param in the reader to read the configuration from.
@@ -887,7 +887,7 @@ public void read(final Reader in) throws ConfigurationException, IOException {
887887
}
888888

889889
/**
890-
* Allows setting the leading comment separator which is used in reading an INI file
890+
* Sets the leading comment separator which is used in reading an INI file
891891
*
892892
* @param separator String of the new separator for INI reading
893893
* @since 2.5
@@ -902,7 +902,7 @@ public void setCommentLeadingCharsUsedInInput(final String separator) {
902902
}
903903

904904
/**
905-
* Allows setting the key and value separator which is used in reading an INI file
905+
* Sets the key and value separator which is used in reading an INI file
906906
*
907907
* @param separator String of the new separator for INI reading
908908
* @since 2.5
@@ -917,7 +917,7 @@ public void setSeparatorUsedInInput(final String separator) {
917917
}
918918

919919
/**
920-
* Allows setting the key and value separator which is used for the creation of the resulting INI output
920+
* Sets the key and value separator which is used for the creation of the resulting INI output
921921
*
922922
* @param separator String of the new separator for INI output
923923
* @since 2.2
@@ -927,7 +927,7 @@ public void setSeparatorUsedInOutput(final String separator) {
927927
}
928928

929929
/**
930-
* Save the configuration to the specified writer.
930+
* Writes the configuration to the specified writer.
931931
*
932932
* @param writer The writer to save the configuration to.
933933
* @throws ConfigurationException If an error occurs while writing the configuration

src/main/java/org/apache/commons/configuration2/builder/INIBuilderProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
public interface INIBuilderProperties<T> {
3535

3636
/**
37-
* Allows setting the leading comment separator which is used in reading an INI file.
37+
* Sets the leading comment separator which is used in reading an INI file.
3838
*
3939
* @param separator String of the new separator for INI reading
4040
* @return a reference to this object for method chaining
@@ -46,7 +46,7 @@ default T setCommentLeadingCharsUsedInInput(final String separator) {
4646
}
4747

4848
/**
49-
* Allows setting the key and value separator which is used in reading an INI file.
49+
* Sets the key and value separator which is used in reading an INI file.
5050
*
5151
* @param separator String of the new separator for INI reading
5252
* @return a reference to this object for method chaining
@@ -58,7 +58,7 @@ default T setSeparatorUsedInInput(final String separator) {
5858
}
5959

6060
/**
61-
* Allows setting the separator between key and value to be used when writing an INI file.
61+
* Sets the separator between key and value to be used when writing an INI file.
6262
*
6363
* @param separator the new separator for INI output
6464
* @return a reference to this object for method chaining

src/main/java/org/apache/commons/configuration2/builder/XMLBuilderProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
public interface XMLBuilderProperties<T> {
3939

4040
/**
41-
* Allows setting the {@code DocumentBuilder} for parsing an XML document. This is the most flexible way of customizing
41+
* Sets the {@code DocumentBuilder} for parsing an XML document. This is the most flexible way of customizing
4242
* XML processing.
4343
*
4444
* @param docBuilder the {@code DocumentBuilder} to use
@@ -47,7 +47,7 @@ public interface XMLBuilderProperties<T> {
4747
T setDocumentBuilder(DocumentBuilder docBuilder);
4848

4949
/**
50-
* Allows setting the {@code EntityResolver} which maps entity references during XML parsing.
50+
* Sets the {@code EntityResolver} which maps entity references during XML parsing.
5151
*
5252
* @param resolver the {@code EntityResolver} to use
5353
* @return a reference to this object for method chaining

src/main/java/org/apache/commons/configuration2/resolver/CatalogResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public void setInterpolator(final ConfigurationInterpolator ci) {
482482
}
483483

484484
/**
485-
* Allows setting the logger to be used by this object. This method makes it possible for clients to exactly control
485+
* Sets the logger to be used by this object. This method makes it possible for clients to exactly control
486486
* logging behavior. Per default a logger is set that will ignore all log messages. Derived classes that want to enable
487487
* logging should call this method during their initialization with the logger to be used. Passing in <strong>null</strong> as
488488
* argument disables logging.

src/test/java/org/apache/commons/configuration2/io/TestFileHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void read(final Reader in) throws ConfigurationException, IOException {
145145
}
146146

147147
/**
148-
* Allows setting the content.
148+
* Sets the content.
149149
*
150150
* @param content the content
151151
*/

0 commit comments

Comments
 (0)