Java 11 migrate c-d (remaining) (#1111)
* Moves converter pattern to Java 11 * Moves cqrs pattern to Java 11 * Moves dao pattern to Java 11 * Moves data-bus pattern to Java 11 * Moves data-locality pattern to Java 11 * Moves data-mapper pattern to Java 11 * Moves data-transfer-object pattern to Java 11 * Moves decorator pattern to Java 11 * Moves delegation pattern to Java 11 * Moves dependency-injection to Java 11 * Moves dirty-flag to Java 11 * Moves double-buffer to Java 11 * Moves double-checked-locking to Java 11 * Moves double-dispatch to Java 11 * Corrects with changes thats breaking test cases
This commit is contained in:
committed by
Ilkka Seppälä
parent
5681684157
commit
ea57934db6
@ -23,6 +23,8 @@
|
||||
|
||||
package com.iluwatar.doublebuffer;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* FrameBuffer implementation class.
|
||||
*/
|
||||
@ -49,9 +51,7 @@ public class FrameBuffer implements Buffer {
|
||||
|
||||
@Override
|
||||
public void clearAll() {
|
||||
for (var i = 0; i < pixels.length; ++i) {
|
||||
pixels[i] = Pixel.WHITE;
|
||||
}
|
||||
Arrays.fill(pixels, Pixel.WHITE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user