Skip to content

Commit f2768de

Browse files
committed
Fix Javadoc code tag and replace some code tags with link tags
Adjust Checkstyle for compact array declarations
1 parent bf2264e commit f2768de

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/conf/checkstyle.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
<!-- Checks for whitespace -->
7474
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
7575
<module name="EmptyForIteratorPad" />
76-
<module name="NoWhitespaceAfter" />
7776
<module name="NoWhitespaceBefore" />
7877
<module name="ParenPad" />
7978

src/main/java/org/apache/commons/cli/Converter.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,18 @@ public interface Converter<T, E extends Throwable> {
4242
Converter<?, RuntimeException> DEFAULT = s -> s;
4343

4444
/**
45-
* Class name converter. Calls {@code Class.forName}.
45+
* Class name converter. Calls {@link Class#forName(String)}.
4646
*/
4747
Converter<Class<?>, ClassNotFoundException> CLASS = Class::forName;
4848

4949
/**
50-
* File name converter. Calls @{code new File(s)}.
50+
* File name converter. Calls {@link File#File(String)}.
5151
*/
5252
Converter<File, NullPointerException> FILE = File::new;
5353

54-
/** Path converter. Calls @{code new Path(s)} */
54+
/**
55+
* Path converter. Calls {@code new File(s).toPath()}.
56+
*/
5557
Converter<Path, InvalidPathException> PATH = s -> new File(s).toPath();
5658

5759
/**
@@ -72,8 +74,8 @@ public interface Converter<T, E extends Throwable> {
7274
*/
7375
Converter<Object, ReflectiveOperationException> OBJECT = s -> CLASS.apply(s).getConstructor().newInstance();
7476

75-
/**
76-
* Creates a URL. Calls {@code new URL(s)}.
77+
/**
78+
* Creates a URL. Calls {@link URL#URL(String)}.
7779
*/
7880
Converter<URL, MalformedURLException> URL = java.net.URL::new;
7981

0 commit comments

Comments
 (0)