sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-hapi] 02/15: SLING-4513 - fix build error
Date Tue, 07 Nov 2017 09:36:31 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 55ba4268f874d08e6f665243d8f85bd0a3401f7b
Author: Bertrand Delacretaz <bdelacretaz@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/contrib/extensions/hapi/core@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" <commits@sling.apache.org>.

Mime
View raw message