Skip to content

Commit f367517

Browse files
committed
Merge pull request #1 from apache/trunk
update from origin
2 parents 979b42f + c75d8e3 commit f367517

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/changes/changes.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ The <action> type attribute can be add,update,fix,remove.
4646
<body>
4747

4848
<release version="1.0" date="TBA" description="TBA">
49+
<action issue="IMAGING-166" dev="britter" type="update" due-to="Michael Groß">
50+
ByteSourceImageTest: Local variable hides a field
51+
</action>
4952
<action issue="IMAGING-156" dev="britter" type="update">
5053
Refactor TagConstants
5154
</action>

src/test/java/org/apache/commons/imaging/common/bytesource/ByteSourceImageTest.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,12 @@ public void test() throws Exception {
107107
}
108108

109109
public void checkGetBufferedImage(final File file, final byte[] bytes) throws Exception {
110-
BufferedImage imageFile = Imaging.getBufferedImage(file);
111-
assertNotNull(imageFile);
112-
assertTrue(imageFile.getWidth() > 0);
113-
assertTrue(imageFile.getHeight() > 0);
114-
final int imageFileWidth = imageFile.getWidth();
115-
final int imageFileHeight = imageFile.getHeight();
116-
imageFile = null;
110+
BufferedImage bufferedImage = Imaging.getBufferedImage(file);
111+
assertNotNull(bufferedImage);
112+
assertTrue(bufferedImage.getWidth() > 0);
113+
assertTrue(bufferedImage.getHeight() > 0);
114+
final int imageFileWidth = bufferedImage.getWidth();
115+
final int imageFileHeight = bufferedImage.getHeight();
117116

118117
final BufferedImage imageBytes = Imaging.getBufferedImage(bytes);
119118
assertNotNull(imageBytes);

0 commit comments

Comments
 (0)