Skip to content

Commit 2d6cdd3

Browse files
committed
r rename
1 parent e7ccdd3 commit 2d6cdd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

approvaltests/src/main/java/org/approvaltests/awt/GifSequenceWriter.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public class GifSequenceWriter implements AutoCloseable
3434
{
3535
private final int imageType;
36-
private final Duration timeBetweenFramesMS;
36+
private final Duration timeBetweenFrames;
3737
private final boolean loopContinuously;
3838
protected ImageWriter gifWriter;
3939
protected ImageWriteParam imageWriteParam;
@@ -52,7 +52,7 @@ public GifSequenceWriter(ImageOutputStream outputStream, int imageType, Duration
5252
boolean loopContinuously) throws IOException
5353
{
5454
this.imageType = imageType;
55-
this.timeBetweenFramesMS = timeBetweenFrames;
55+
this.timeBetweenFrames = timeBetweenFrames;
5656
this.loopContinuously = loopContinuously;
5757
gifWriter = getWriter();
5858
imageWriteParam = gifWriter.getDefaultWriteParam();
@@ -88,11 +88,11 @@ public static byte[] getBytesForLoopContinuously(boolean loopContinuously)
8888
byte[] once = {1, 1, 0};
8989
return loopContinuously ? loop : once;
9090
}
91-
static File writeAnimatedGif(File imageFile, ArrayList<BufferedImage> images, Duration timeBetweenFramesMS)
91+
static File writeAnimatedGif(File imageFile, ArrayList<BufferedImage> images, Duration timeBetweenFrames)
9292
{
9393
try (ImageOutputStream output = new FileImageOutputStream(imageFile))
9494
{
95-
try (GifSequenceWriter writer = new GifSequenceWriter(output, images.get(0).getType(), timeBetweenFramesMS,
95+
try (GifSequenceWriter writer = new GifSequenceWriter(output, images.get(0).getType(), timeBetweenFrames,
9696
true))
9797
{
9898
for (BufferedImage image : images)
@@ -109,7 +109,7 @@ static File writeAnimatedGif(File imageFile, ArrayList<BufferedImage> images, Du
109109
}
110110
public void writeToSequence(RenderedImage img) throws IOException
111111
{
112-
gifWriter.writeToSequence(new IIOImage(img, null, getMetadata(timeBetweenFramesMS)), imageWriteParam);
112+
gifWriter.writeToSequence(new IIOImage(img, null, getMetadata(timeBetweenFrames)), imageWriteParam);
113113
}
114114
/**
115115
* Close this GifSequenceWriter object. This does not close the underlying

0 commit comments

Comments
 (0)