Various minor fixes

Fix drain
Fix some messages lacking prefix
Fix non persistent brushes
This commit is contained in:
Jesse Boyd
2018-10-13 15:15:20 +11:00
parent 1b7ac7a0bc
commit 1a12c065a1
6 changed files with 24 additions and 15 deletions

View File

@ -48,6 +48,15 @@ public class MaskIntersection extends AbstractMask {
formArray();
}
/**
* Create a new intersection.
*
* @param mask a list of masks
*/
public MaskIntersection(Mask... mask) {
this(Arrays.asList(checkNotNull(mask)));
}
private void formArray() {
if (masks.isEmpty()) {
masksArray = new Mask[]{Masks.alwaysFalse()};
@ -123,15 +132,6 @@ public class MaskIntersection extends AbstractMask {
return hasOptimized;
}
/**
* Create a new intersection.
*
* @param mask a list of masks
*/
public MaskIntersection(Mask... mask) {
this(Arrays.asList(checkNotNull(mask)));
}
/**
* Add some masks to the list.
*