You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/07/04 19:33:22 UTC
[commons-imaging] 03/09: No need to initialize to default value
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
commit b5cbffa785ab031eb175fcfa31c2417d1e7449d3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jul 4 15:23:57 2023 -0400
No need to initialize to default value
---
src/main/java/org/apache/commons/imaging/ImageDump.java | 2 +-
src/main/java/org/apache/commons/imaging/Imaging.java | 2 +-
.../org/apache/commons/imaging/icc/IccProfileParser.java | 14 +++++++-------
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/main/java/org/apache/commons/imaging/ImageDump.java b/src/main/java/org/apache/commons/imaging/ImageDump.java
index 6c4f3efc..466f0c8a 100644
--- a/src/main/java/org/apache/commons/imaging/ImageDump.java
+++ b/src/main/java/org/apache/commons/imaging/ImageDump.java
@@ -92,7 +92,7 @@ public class ImageDump {
final IccProfileParser parser = new IccProfileParser();
- final IccProfileInfo info = parser.getICCProfileInfo(bytes);
+ final IccProfileInfo info = parser.getIccProfileInfo(bytes);
info.dump(prefix);
}
diff --git a/src/main/java/org/apache/commons/imaging/Imaging.java b/src/main/java/org/apache/commons/imaging/Imaging.java
index b0223acb..05e128a9 100644
--- a/src/main/java/org/apache/commons/imaging/Imaging.java
+++ b/src/main/java/org/apache/commons/imaging/Imaging.java
@@ -312,7 +312,7 @@ public final class Imaging {
}
final IccProfileParser parser = new IccProfileParser();
- final IccProfileInfo info = parser.getICCProfileInfo(bytes);
+ final IccProfileInfo info = parser.getIccProfileInfo(bytes);
if (info == null) {
return null;
}
diff --git a/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java b/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
index 48d2ec86..7bdd53aa 100644
--- a/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
+++ b/src/main/java/org/apache/commons/imaging/icc/IccProfileParser.java
@@ -42,14 +42,14 @@ public class IccProfileParser extends BinaryFileParser {
super(ByteOrder.BIG_ENDIAN);
}
- public IccProfileInfo getICCProfileInfo(final byte[] bytes) throws IOException {
+ public IccProfileInfo getIccProfileInfo(final byte[] bytes) throws IOException {
if (bytes == null) {
return null;
}
- return getICCProfileInfo(ByteSource.array(bytes));
+ return getIccProfileInfo(ByteSource.array(bytes));
}
- public IccProfileInfo getICCProfileInfo(final ByteSource byteSource) throws IOException {
+ public IccProfileInfo getIccProfileInfo(final ByteSource byteSource) throws IOException {
// TODO Throw instead of logging?
final IccProfileInfo result;
try (InputStream is = byteSource.getInputStream()) {
@@ -66,20 +66,20 @@ public class IccProfileParser extends BinaryFileParser {
return result;
}
- public IccProfileInfo getICCProfileInfo(final File file) throws IOException {
+ public IccProfileInfo getIccProfileInfo(final File file) throws IOException {
if (file == null) {
return null;
}
- return getICCProfileInfo(ByteSource.file(file));
+ return getIccProfileInfo(ByteSource.file(file));
}
- public IccProfileInfo getICCProfileInfo(final ICC_Profile iccProfile) throws IOException {
+ public IccProfileInfo getIccProfileInfo(final ICC_Profile iccProfile) throws IOException {
if (iccProfile == null) {
return null;
}
- return getICCProfileInfo(ByteSource.array(iccProfile.getData()));
+ return getIccProfileInfo(ByteSource.array(iccProfile.getData()));
}
private IccTagType getIccTagType(final int quad) {