Skip to content

Commit 2224e26

Browse files
committed
fixes #168 resolve javadoc warnings
1 parent 45a8084 commit 2224e26

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

src/main/java/com/networknt/schema/JsonSchemaFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Builder defaultMetaSchemaURI(final String defaultMetaSchemaURI) {
8585
/**
8686
* Maps a number of schemes to a {@link URIFactory}.
8787
* @param uriFactory the uri factory that will be used for the given schemes.
88-
* @param scheme the scheme that the uri factory will be assocaited with.
88+
* @param schemes the scheme that the uri factory will be assocaited with.
8989
* @return this builder.
9090
*/
9191
public Builder uriFactory(final URIFactory uriFactory, final String... schemes) {
@@ -99,7 +99,7 @@ public Builder uriFactory(final URIFactory uriFactory, final String... schemes)
9999
/**
100100
* Maps a number of schemes to a {@link URIFetcher}.
101101
* @param uriFetcher the uri fetcher that will be used for the given schemes.
102-
* @param scheme the scheme that the uri fetcher will be assocaited with.
102+
* @param schemes the scheme that the uri fetcher will be assocaited with.
103103
* @return this builder.
104104
*/
105105
public Builder uriFetcher(final URIFetcher uriFetcher, final String... schemes) {

src/main/java/com/networknt/schema/uri/ClasspathURLFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import java.util.Set;
2626

2727
/**
28-
* A URIFactory that uses {@link #URL(String)} and {@link #URL(URL, String) for creating {@link URI}s.
28+
* A URIFactory that uses URL for creating {@link URI}s.
2929
*/
3030
public final class ClasspathURLFactory implements URIFactory {
3131
static final URLStreamHandler STREAM_HANDLER = new ClasspathURLStreamHandler();

src/main/java/com/networknt/schema/uri/URISchemeFactory.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ private URIFactory getFactory(final String scheme) {
5858
}
5959

6060
/**
61-
* {@inheritdoc}
61+
* @param uri String
62+
* @return URI
6263
*/
6364
public URI create(final String uri) {
6465
final String scheme = this.getScheme(uri);
@@ -71,7 +72,10 @@ public URI create(final String uri) {
7172
}
7273

7374
/**
74-
* {@inheritdoc}
75+
* @param baseURI base URI
76+
* @param segment URI segment
77+
* @return URI
78+
*
7579
*/
7680
public URI create(final URI baseURI, final String segment) {
7781
if (baseURI == null) {

src/main/java/com/networknt/schema/uri/URISchemeFetcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public Map<String, URIFetcher> getURIFetchers() {
3939
}
4040

4141
/**
42-
* {@inheritdoc}
42+
* @param uri URI
43+
* @return InputStream
4344
*/
4445
public InputStream fetch(final URI uri) throws IOException {
4546
final URIFetcher uriFetcher = this.uriFetchers.get(uri.getScheme());

src/main/java/com/networknt/schema/uri/URLFactory.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
import java.util.Set;
2727

2828
/**
29-
* A URIFactory that uses {@link #URL(String)} and {@link #URL(URL, String) for creating {@link URI}s.
29+
* A URIFactory that uses URL for creating {@link URI}s.
3030
*/
3131
public final class URLFactory implements URIFactory {
3232
// These supported schemes are defined in {@link #URL(String, String, int, String)}.
3333
public static final Set<String> SUPPORTED_SCHEMES = Collections.unmodifiableSet(new HashSet<>(
3434
Arrays.asList("http", "https", "ftp", "file", "jar")));
3535

3636
/**
37-
* {@inheritDoc}
37+
* @param uri String
38+
* @return URI
3839
*/
3940
@Override
4041
public URI create(final String uri)
@@ -47,7 +48,9 @@ public URI create(final String uri)
4748
}
4849

4950
/**
50-
* {@inheritDoc}
51+
* @param baseURI URI
52+
* @param segment String
53+
* @return URI
5154
*/
5255
@Override
5356
public URI create(final URI baseURI, final String segment)

0 commit comments

Comments
 (0)