diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/api/java/com/amadornes/artifactural/api/artifact/ArtifactMetadata.java | 4 | ||||
-rw-r--r-- | src/api/java/com/amadornes/artifactural/api/artifact/Internal.java | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/src/api/java/com/amadornes/artifactural/api/artifact/ArtifactMetadata.java b/src/api/java/com/amadornes/artifactural/api/artifact/ArtifactMetadata.java index 1dcd838..36fb1a5 100644 --- a/src/api/java/com/amadornes/artifactural/api/artifact/ArtifactMetadata.java +++ b/src/api/java/com/amadornes/artifactural/api/artifact/ArtifactMetadata.java @@ -2,10 +2,6 @@ package com.amadornes.artifactural.api.artifact; public interface ArtifactMetadata { - static ArtifactMetadata empty() { - return (ArtifactMetadata) null; - } - ArtifactMetadata with(String key, String value); String getHash(); diff --git a/src/api/java/com/amadornes/artifactural/api/artifact/Internal.java b/src/api/java/com/amadornes/artifactural/api/artifact/Internal.java index 9401b00..c7fd883 100644 --- a/src/api/java/com/amadornes/artifactural/api/artifact/Internal.java +++ b/src/api/java/com/amadornes/artifactural/api/artifact/Internal.java @@ -46,7 +46,17 @@ final class Internal { @Override public ArtifactMetadata getMetadata() { - return ArtifactMetadata.empty(); + return new ArtifactMetadata() { + @Override + public ArtifactMetadata with(String key, String value) { + throw new UnsupportedOperationException(); + } + + @Override + public String getHash() { + return "ERROR"; + } + }; } @Override |