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 2019/12/18 21:32:55 UTC
[commons-imaging] branch master updated: Remove unnecessary array
creation for varargs.
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 3634e57 Remove unnecessary array creation for varargs.
3634e57 is described below
commit 3634e57463c8115997230c23192c72ce8e07f808
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Dec 18 16:32:51 2019 -0500
Remove unnecessary array creation for varargs.
---
.../org/apache/commons/imaging/formats/tiff/TiffReadWriteTagsTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadWriteTagsTest.java b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadWriteTagsTest.java
index e7d238c..c3f2ef8 100644
--- a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadWriteTagsTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadWriteTagsTest.java
@@ -58,7 +58,7 @@ public class TiffReadWriteTagsTest extends TiffBaseTest {
dir.add(TiffTagConstants.TIFF_TAG_YRESOLUTION, twoThirds);
dir.add(TiffTagConstants.TIFF_TAG_T4_OPTIONS, t4Options);
dir.add(TiffTagConstants.TIFF_TAG_IMAGE_WIDTH, width);
- dir.add(TiffTagConstants.TIFF_TAG_IMAGE_LENGTH, new short[]{height});
+ dir.add(TiffTagConstants.TIFF_TAG_IMAGE_LENGTH, height);
dir.add(GpsTagConstants.GPS_TAG_GPS_AREA_INFORMATION, area);
dir.add(MicrosoftHdPhotoTagConstants.EXIF_TAG_WIDTH_RESOLUTION, widthRes);
dir.add(GeoTiffTagConstants.EXIF_TAG_GEO_DOUBLE_PARAMS_TAG, geoDoubleParams);