You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:24:18 UTC

[sling-org-apache-sling-hapi] 02/27: SLING-4513 - fix build error

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

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-hapi.git

commit 2f4a799dda9c31c705fdae5fc6ff5e3ecf7ba9a1
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Aug 24 14:58:07 2015 +0000

    SLING-4513 - fix build error
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1697422 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java b/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java
index 8b06163..4d3b8b7 100644
--- a/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java
+++ b/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java
@@ -59,7 +59,7 @@ public class MicrodataAttributeHelperImpl implements MicrodataAttributeHelper {
     public Map<String, String> itemtypeMap() {
         Map<String, String> attrMap = new AttrMap(2);
         attrMap.put("itemtype", type.getPath() + ".html");
-        attrMap.put("itemscope", !type.getAllProperties().isEmpty());
+        attrMap.put("itemscope", String.valueOf(!type.getAllProperties().isEmpty()));
         
         return attrMap;
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.