Skip to content

Commit

Permalink
shorten variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rtyley committed Feb 6, 2012
1 parent 753af58 commit 430d076
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@

public class AnimatedGifCreator implements ScreenshotProcessor {

private final AnimatedGifEncoder animatedGifEncoder;
private final AnimatedGifEncoder gifEncoder;
private final File file;

public AnimatedGifCreator(File file) {
this.file = file;
animatedGifEncoder = new AnimatedGifEncoder();
animatedGifEncoder.setDelay(500);
gifEncoder = new AnimatedGifEncoder();
gifEncoder.setDelay(500);
}

@Override
public void process(BufferedImage image, Map<String, String> requestData) {
if (!animatedGifEncoder.isStarted()) {
animatedGifEncoder.start(file.getAbsolutePath());
if (!gifEncoder.isStarted()) {
gifEncoder.start(file.getAbsolutePath());
}
animatedGifEncoder.addFrame(image);
gifEncoder.addFrame(image);
}

@Override
public void finish() {
animatedGifEncoder.finish();
gifEncoder.finish();
}

}

0 comments on commit 430d076

Please sign in to comment.