klcodanr commented on a change in pull request #40: Renaming to Sling Model 
Persist, fixed test error with JDK 11
URL: https://github.com/apache/sling-whiteboard/pull/40#discussion_r296833505
 
 

 ##########
 File path: 
SlingModelPersist/src/test/java/org/apache/sling/models/persist/bean/BeanWithPathField.java
 ##########
 @@ -1,23 +1,23 @@
-/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
-package org.apache.sling.models.persist.bean;
-
-import javax.inject.Inject;
-import org.apache.sling.api.resource.Resource;
-import org.apache.sling.models.annotations.Model;
-import org.apache.sling.models.persist.annotations.ChildType;
-
-/**
- * Example of bean with getPath method that stores the path in a field
- */
-@Model(adaptables = Resource.class, resourceType = "test/testBean")
-@ChildType("test/testBean/field-path")
-public class BeanWithPathField {
-    @Inject
-    public String prop1 = "testValue";
-    
-    public String path = "/test/field-path";
-}
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
 
 Review comment:
   Don't make Apache Rat mad ;-)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to