Add @SuppressWarnings and Javadoc.

This commit is contained in:
Gary Gregory 2020-03-30 09:34:23 -04:00
parent 9d017c5617
commit 6600586802
1 changed files with 15 additions and 0 deletions

View File

@ -162,18 +162,33 @@ public class PropertiesFactory extends AbstractPropertiesFactory<Properties> {
super.list(out);
}
/**
* Throws {@link UnsupportedOperationException}.
* Caller should use try-with-resources statement.
*/
@SuppressWarnings("resource")
@Override
public synchronized void load(final InputStream inStream) throws IOException {
Objects.requireNonNull(inStream);
throw new UnsupportedOperationException();
}
/**
* Throws {@link UnsupportedOperationException}.
* Caller should use try-with-resources statement.
*/
@SuppressWarnings("resource")
@Override
public synchronized void load(final Reader reader) throws IOException {
Objects.requireNonNull(reader);
throw new UnsupportedOperationException();
}
/**
* Throws {@link UnsupportedOperationException}.
* Caller should use try-with-resources statement.
*/
@SuppressWarnings("resource")
@Override
public synchronized void loadFromXML(final InputStream in)
throws IOException, InvalidPropertiesFormatException {