You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/10/21 19:32:23 UTC

[isis] branch master updated: ISIS-2412: polishing applib's Image (fix flipped isEmpty semantics)

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new d5bdd52  ISIS-2412: polishing applib's Image (fix flipped isEmpty semantics)
d5bdd52 is described below

commit d5bdd52e09de97e538c2d63487470f9e0aba69bb
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Oct 21 21:32:13 2020 +0200

    ISIS-2412: polishing applib's Image (fix flipped isEmpty semantics)
---
 api/applib/src/main/java/org/apache/isis/applib/value/Image.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/applib/src/main/java/org/apache/isis/applib/value/Image.java b/api/applib/src/main/java/org/apache/isis/applib/value/Image.java
index 32b5e84..9374bcf 100644
--- a/api/applib/src/main/java/org/apache/isis/applib/value/Image.java
+++ b/api/applib/src/main/java/org/apache/isis/applib/value/Image.java
@@ -99,7 +99,7 @@ public class Image implements Serializable {
      * @return whether this image has any pixels
      */
     public boolean isEmpty() {
-        return pixels!=null;
+        return pixels==null;
     }
     
     @Override