This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new 6600586 Add @SuppressWarnings and Javadoc. 6600586 is described below commit 6600586802667427e8bc4a54f40add0a56d87eb6 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Mar 30 09:34:23 2020 -0400 Add @SuppressWarnings and Javadoc. --- .../collections4/properties/PropertiesFactory.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/org/apache/commons/collections4/properties/PropertiesFactory.java b/src/main/java/org/apache/commons/collections4/properties/PropertiesFactory.java index 5f40c43..965989a 100644 --- a/src/main/java/org/apache/commons/collections4/properties/PropertiesFactory.java +++ b/src/main/java/org/apache/commons/collections4/properties/PropertiesFactory.java @@ -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 {