Skip to content

Conversation

@Kled9
Copy link

@Kled9 Kled9 commented Mar 16, 2019

Add coverage for FileUtils.openInputStream, FileUtils.copyFile, FileUtils.openOutputStream, FileUtils.copyDirectoryToDirectory.

…ileUtils.openOutputStream, FileUtils.copyDirectoryToDirectory.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 88.805% when pulling 054e860 on Kled9:increase-coverage-of-fileutils into 66fba1c on apache:master.

@garydgregory
Copy link
Member

Please rebase on master.

public static void copyDirectoryToDirectory(final File srcDir, final File destDir) throws IOException {
if (srcDir == null) {
throw new NullPointerException("Source must not be null");
throw new IllegalArgumentException("Source must not be null");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not change these please. Since Java 8 and the broad use of java.util.Objects.requireNonNull(T, String), any edits to current throws of NPE should use the aforementioned API.

@Kled9 Kled9 closed this Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants