commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ki...@apache.org
Subject commons-imaging git commit: Exit loop with break once flag has been set to true
Date Tue, 14 Nov 2017 09:34:21 GMT
Repository: commons-imaging
Updated Branches:
  refs/heads/master 203032ecc -> 62c8e6fe7


Exit loop with break once flag has been set to true


Project: http://git-wip-us.apache.org/repos/asf/commons-imaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-imaging/commit/62c8e6fe
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/62c8e6fe
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/62c8e6fe

Branch: refs/heads/master
Commit: 62c8e6fe78529f410478d5830db32aa1ef7528da
Parents: 203032e
Author: Bruno P. Kinoshita <brunodepaulak@yahoo.com.br>
Authored: Tue Nov 14 22:34:07 2017 +1300
Committer: Bruno P. Kinoshita <brunodepaulak@yahoo.com.br>
Committed: Tue Nov 14 22:34:07 2017 +1300

----------------------------------------------------------------------
 .../org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java  | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/62c8e6fe/src/main/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java
b/src/main/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java
index 5c09851..8e910e1 100644
--- a/src/main/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java
+++ b/src/main/java/org/apache/commons/imaging/formats/jpeg/exif/ExifRewriter.java
@@ -510,6 +510,7 @@ public class ExifRewriter extends BinaryFileParser {
             for (final JFIFPiece piece : segments) {
                 if (piece instanceof JFIFPieceSegmentExif) {
                     hasExif = true;
+                    break;
                 }
             }
 


Mime
View raw message