You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/04/12 10:40:52 UTC
[sling-org-apache-sling-feature-cpconverter] branch master updated:
fix null annotation to silence Sonar bug report
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-feature-cpconverter.git
The following commit(s) were added to refs/heads/master by this push:
new 7775286 fix null annotation to silence Sonar bug report
7775286 is described below
commit 77752868d8e40bd98574a7b9099fea5ba8e9ee62
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon Apr 12 12:40:46 2021 +0200
fix null annotation to silence Sonar bug report
---
.../sling/feature/cpconverter/features/DefaultFeaturesManager.java | 2 +-
.../org/apache/sling/feature/cpconverter/features/FeaturesManager.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java b/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java
index 33d4aa3..d0df8c5 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/features/DefaultFeaturesManager.java
@@ -286,7 +286,7 @@ public class DefaultFeaturesManager implements FeaturesManager {
public void addConfiguration(@Nullable String runMode,
@NotNull String pid,
@NotNull String path,
- @Nullable Dictionary<String, Object> configurationProperties) {
+ @NotNull Dictionary<String, Object> configurationProperties) {
String factoryPid = null;
String id;
int n = pid.indexOf('~');
diff --git a/src/main/java/org/apache/sling/feature/cpconverter/features/FeaturesManager.java b/src/main/java/org/apache/sling/feature/cpconverter/features/FeaturesManager.java
index 8392599..32b21c2 100644
--- a/src/main/java/org/apache/sling/feature/cpconverter/features/FeaturesManager.java
+++ b/src/main/java/org/apache/sling/feature/cpconverter/features/FeaturesManager.java
@@ -40,7 +40,7 @@ public interface FeaturesManager {
void addConfiguration(@Nullable String runMode,
@NotNull String pid,
@NotNull String path,
- @Nullable Dictionary<String, Object> configurationProperties);
+ @NotNull Dictionary<String, Object> configurationProperties);
void serialize() throws Exception;