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 2016/12/23 18:13:36 UTC
svn commit: r1775868 -
/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
Author: ggregory
Date: Fri Dec 23 18:13:35 2016
New Revision: 1775868
URL: http://svn.apache.org/viewvc?rev=1775868&view=rev
Log:
Local variable is not needed.
Modified:
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java?rev=1775868&r1=1775867&r2=1775868&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java Fri Dec 23 18:13:35 2016
@@ -242,8 +242,7 @@ public class PcxImageParser extends Imag
private PcxHeader readPcxHeader(final ByteSource byteSource)
throws ImageReadException, IOException {
try (InputStream is = byteSource.getInputStream()) {
- final PcxHeader ret = readPcxHeader(is, false);
- return ret;
+ return readPcxHeader(is, false);
}
}