This is an automated email from the ASF dual-hosted git repository.
stbischof pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/felix-dev.git
The following commit(s) were added to refs/heads/master by this push:
new 52df6b2 Feature - Fix type in Exception-message (2)
new d07d1e8 Merge pull request #96 from stbischof/typo
52df6b2 is described below
commit 52df6b28d8a0ae1340a6d46f8d7ee2a7d216c991
Author: Stefan Bischof <[email protected]>
AuthorDate: Mon Aug 30 17:43:00 2021 +0200
Feature - Fix type in Exception-message (2)
Signed-off-by: Stefan Bischof <[email protected]>
---
.../main/java/org/apache/felix/feature/impl/ArtifactBuilderImpl.java | 2 +-
.../main/java/org/apache/felix/feature/impl/BundleBuilderImpl.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git
a/features/src/main/java/org/apache/felix/feature/impl/ArtifactBuilderImpl.java
b/features/src/main/java/org/apache/felix/feature/impl/ArtifactBuilderImpl.java
index db2c00e..683d914 100644
---
a/features/src/main/java/org/apache/felix/feature/impl/ArtifactBuilderImpl.java
+++
b/features/src/main/java/org/apache/felix/feature/impl/ArtifactBuilderImpl.java
@@ -40,7 +40,7 @@ class ArtifactBuilderImpl implements FeatureArtifactBuilder {
throw new IllegalArgumentException("Metadata key cannot be
null");
if (value == null)
- throw new IllegalArgumentException("Metadata key cannot be
null");
+ throw new IllegalArgumentException("Metadata value cannot be
null");
if ("id".equalsIgnoreCase(key))
throw new IllegalArgumentException("Key cannot be 'id'");
diff --git
a/features/src/main/java/org/apache/felix/feature/impl/BundleBuilderImpl.java
b/features/src/main/java/org/apache/felix/feature/impl/BundleBuilderImpl.java
index 1f55d03..7232dfe 100644
---
a/features/src/main/java/org/apache/felix/feature/impl/BundleBuilderImpl.java
+++
b/features/src/main/java/org/apache/felix/feature/impl/BundleBuilderImpl.java
@@ -40,7 +40,7 @@ class BundleBuilderImpl implements FeatureBundleBuilder {
throw new IllegalArgumentException("Metadata key cannot be
null");
if (value == null)
- throw new IllegalArgumentException("Metadata key cannot be
null");
+ throw new IllegalArgumentException("Metadata value cannot be
null");
if ("id".equalsIgnoreCase(key))
throw new IllegalArgumentException("Key cannot be 'id'");
@@ -55,7 +55,7 @@ class BundleBuilderImpl implements FeatureBundleBuilder {
throw new IllegalArgumentException("Metadata key cannot be
null");
if (md.values().contains(null))
- throw new IllegalArgumentException("Metadata key cannot be
null");
+ throw new IllegalArgumentException("Metadata value cannot be
null");
if (md.keySet().stream()
.map(String::toLowerCase)