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

deepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new aa4b5b428 Fixed checkstyle errors
aa4b5b428 is described below

commit aa4b5b4288439b946e59fe1e33bf61750fb4578c
Author: Deepak Dixit <[email protected]>
AuthorDate: Fri Oct 24 15:52:35 2025 +0530

    Fixed checkstyle errors
---
 .../src/main/java/org/apache/ofbiz/ws/rs/core/OFBizApiConfig.java | 2 --
 .../src/main/java/org/apache/ofbiz/ws/rs/model/ModelResource.java | 8 ++++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/rest-api/src/main/java/org/apache/ofbiz/ws/rs/core/OFBizApiConfig.java 
b/rest-api/src/main/java/org/apache/ofbiz/ws/rs/core/OFBizApiConfig.java
index 644bb1bd4..524c58801 100644
--- a/rest-api/src/main/java/org/apache/ofbiz/ws/rs/core/OFBizApiConfig.java
+++ b/rest-api/src/main/java/org/apache/ofbiz/ws/rs/core/OFBizApiConfig.java
@@ -21,13 +21,11 @@ package org.apache.ofbiz.ws.rs.core;
 import java.io.File;
 import java.util.Collection;
 import java.util.HashMap;
-import java.util.List;
 import java.util.Map;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
 import jakarta.ws.rs.HttpMethod;
-//import org.glassfish.jersey.server.ServerProperties;
 import jakarta.ws.rs.core.MediaType;
 
 import org.apache.ofbiz.base.component.ComponentConfig;
diff --git 
a/rest-api/src/main/java/org/apache/ofbiz/ws/rs/model/ModelResource.java 
b/rest-api/src/main/java/org/apache/ofbiz/ws/rs/model/ModelResource.java
index 769cfced9..d7e83ccfd 100644
--- a/rest-api/src/main/java/org/apache/ofbiz/ws/rs/model/ModelResource.java
+++ b/rest-api/src/main/java/org/apache/ofbiz/ws/rs/model/ModelResource.java
@@ -164,13 +164,21 @@ public class ModelResource {
         this.description = description;
     }
 
+    /**
+     * Adds a sub-resource to this resource.
+     * @param resource the child resource to add
+     */
     public void addSubResource(ModelResource resource) {
         this.subResources.add(resource);
     }
 
+    /**
+     * @return the list of sub-resources
+     */
     public List<ModelResource> getSubResources() {
         return subResources;
     }
+
     /**
      * @param description
      * @return

Reply via email to