You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2023/08/02 05:09:03 UTC

[sling-org-apache-sling-api] branch master updated: Ignore sonar rule java:S1104 for DTOs

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 74e1439  Ignore sonar rule java:S1104 for DTOs
74e1439 is described below

commit 74e1439f5885ba938975585f74e2f1aa862ca1d2
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Wed Aug 2 07:08:57 2023 +0200

    Ignore sonar rule java:S1104 for DTOs
---
 .../resource/runtime/dto/ResourceProviderDTO.java  | 26 +++++++++++-----------
 .../runtime/dto/ResourceProviderFailureDTO.java    |  2 +-
 .../sling/api/resource/runtime/dto/RuntimeDTO.java |  4 ++--
 3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderDTO.java b/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderDTO.java
index 30df7b6..429ce53 100644
--- a/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderDTO.java
+++ b/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderDTO.java
@@ -26,55 +26,55 @@ package org.apache.sling.api.resource.runtime.dto;
 public class ResourceProviderDTO {
 
     /**
-	 * The name of the resource provider.
-	 * Optional might be {@code null}.
-	 */
-	public String name;
+     * The name of the resource provider.
+     * Optional might be {@code null}.
+     */
+    public String name; //NOSONAR
 
     /**
      * The path of the resource provider.
      * This is never {@code null}.
      */
-    public String path;
+    public String path; //NOSONAR
 
     /**
      * Whether resource access security should be used.
      */
-    public boolean useResourceAccessSecurity;
+    public boolean useResourceAccessSecurity; //NOSONAR
 
     /**
      * The auth handling for this provider.
      * This is never {@code null}.
      */
-    public AuthType authType;
+    public AuthType authType; //NOSONAR
 
     /**
      * Whether the resource provider supports modifications.
      */
-    public boolean modifiable;
+    public boolean modifiable; //NOSONAR
 
     /**
      * Whether the resource provider supports adaptable.
      */
-    public boolean adaptable;
+    public boolean adaptable; //NOSONAR
 
     /**
      * Whether the resource provider supports refreshing.
      */
-    public boolean refreshable;
+    public boolean refreshable; //NOSONAR
 
     /**
      * Whether the resource provider supports attributes.
      */
-    public boolean attributable;
+    public boolean attributable; //NOSONAR
 
     /**
      * Whether the resource provider supports query languages.
      */
-    public boolean supportsQueryLanguage;
+    public boolean supportsQueryLanguage; //NOSONAR
 
     /**
      * The service id from the service registry.
      */
-    public long serviceId;
+    public long serviceId; //NOSONAR
 }
diff --git a/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderFailureDTO.java b/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderFailureDTO.java
index f30d869..09b744c 100644
--- a/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderFailureDTO.java
+++ b/src/main/java/org/apache/sling/api/resource/runtime/dto/ResourceProviderFailureDTO.java
@@ -31,5 +31,5 @@ public class ResourceProviderFailureDTO extends ResourceProviderDTO {
     /**
      * The reason for the failure.
      */
-	public FailureReason reason;
+    public FailureReason reason; //NOSONAR
 }
diff --git a/src/main/java/org/apache/sling/api/resource/runtime/dto/RuntimeDTO.java b/src/main/java/org/apache/sling/api/resource/runtime/dto/RuntimeDTO.java
index 5e32187..c836661 100644
--- a/src/main/java/org/apache/sling/api/resource/runtime/dto/RuntimeDTO.java
+++ b/src/main/java/org/apache/sling/api/resource/runtime/dto/RuntimeDTO.java
@@ -29,11 +29,11 @@ public class RuntimeDTO {
      * DTOs for all active providers.
      * If there is none, the array is empty.
      */
-    public ResourceProviderDTO[] providers;
+    public ResourceProviderDTO[] providers; //NOSONAR
 
     /**
      * DTOs for all inactive/failed providers.
      * If there is none, the array is empty.
      */
-    public ResourceProviderFailureDTO[] failedProviders;
+    public ResourceProviderFailureDTO[] failedProviders; //NOSONAR
 }