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-imaging.git
The following commit(s) were added to refs/heads/master by this push: new f8630f7 Javadoc: Use "file name" instead of "filename". f8630f7 is described below commit f8630f70f9f0c8b41b81aa177077f66a191e8b65 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Thu May 30 16:49:04 2019 -0400 Javadoc: Use "file name" instead of "filename". Camel case vars "filename" to "fileName". --- .../java/org/apache/commons/imaging/common/bytesource/ByteSource.java | 4 ++-- src/test/java/org/apache/commons/imaging/ImagingTest.java | 4 ++-- .../apache/commons/imaging/common/bytesource/ByteSourceImageTest.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java b/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java index 05e11e5..8eb8b48 100644 --- a/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java +++ b/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSource.java @@ -24,8 +24,8 @@ import org.apache.commons.imaging.common.BinaryFunctions; public abstract class ByteSource { private final String fileName; - public ByteSource(final String filename) { - this.fileName = filename; + public ByteSource(final String fileName) { + this.fileName = fileName; } public final InputStream getInputStream(final long start) throws IOException { diff --git a/src/test/java/org/apache/commons/imaging/ImagingTest.java b/src/test/java/org/apache/commons/imaging/ImagingTest.java index 0f6ad8e..fff09d6 100644 --- a/src/test/java/org/apache/commons/imaging/ImagingTest.java +++ b/src/test/java/org/apache/commons/imaging/ImagingTest.java @@ -52,13 +52,13 @@ public abstract class ImagingTest { return getTestImage(null); } - protected File getTestImageByName(final String filename) + protected File getTestImageByName(final String fileName) throws IOException, ImageReadException { return getTestImage(new ImageFilter() { @Override public boolean accept(final File file) throws IOException, ImageReadException { - return file.getName().equals(filename); + return file.getName().equals(fileName); } }); } diff --git a/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceImageTest.java b/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceImageTest.java index 6377ba7..27d9fac 100644 --- a/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceImageTest.java +++ b/src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceImageTest.java @@ -76,7 +76,7 @@ public class ByteSourceImageTest extends ByteSourceTest { || imageFile.getName().toLowerCase().endsWith(".wbmp") || imageFile.getName().toLowerCase().endsWith(".xbm") || imageFile.getName().toLowerCase().endsWith(".xpm")) { - // these formats can't be parsed without a filename hint. + // these formats can't be parsed without a file name hint. // they have ambiguous "magic number" signatures. return; }