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 272a9959b94b8e6f0e028c2ed7fa834b0ffa7b31 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Apr 14 16:24:34 2024 -0400 Sort members --- .../imaging/formats/tiff/write/TiffOutputField.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputField.java b/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputField.java index c62ad0f9..2f346dd2 100644 --- a/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputField.java +++ b/src/main/java/org/apache/commons/imaging/formats/tiff/write/TiffOutputField.java @@ -62,6 +62,14 @@ public class TiffOutputField { this(tagInfo.tag, tagInfo, abstractFieldType, count, bytes); } + /** + * Return a copy of the data in this TIFF output field. + * @return a copy of the data in this TIFF output field. + */ + public byte[] getData() { + return Arrays.copyOf(this.bytes, this.bytes.length); + } + protected AbstractTiffOutputItem getSeperateValue() { return separateValueItem; } @@ -99,14 +107,6 @@ public class TiffOutputField { // + tagInfo.getDescription()); } - /** - * Return a copy of the data in this TIFF output field. - * @return a copy of the data in this TIFF output field. - */ - public byte[] getData() { - return Arrays.copyOf(this.bytes, this.bytes.length); - } - public void setSortHint(final int sortHint) { this.sortHint = sortHint; }