From fe82dae18bbfa83ce821232f7bd8d08e03fc0583 Mon Sep 17 00:00:00 2001 From: mxsm Date: Sat, 29 Apr 2023 11:33:24 +0800 Subject: [PATCH] [ISSUE #558]Optimize SpecVersion attribute name Signed-off-by: mxsm --- api/src/main/java/io/cloudevents/SpecVersion.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/src/main/java/io/cloudevents/SpecVersion.java b/api/src/main/java/io/cloudevents/SpecVersion.java index 667af9ced..fe12cd746 100644 --- a/api/src/main/java/io/cloudevents/SpecVersion.java +++ b/api/src/main/java/io/cloudevents/SpecVersion.java @@ -46,13 +46,13 @@ public enum SpecVersion { Arrays.asList("datacontenttype", "dataschema", "subject", "time") ); - private final String stringValue; + private final String version; private final Set mandatoryAttributes; private final Set optionalAttributes; private final Set allAttributes; - SpecVersion(String stringValue, Collection mandatoryAttributes, Collection optionalAttributes) { - this.stringValue = stringValue; + SpecVersion(String version, Collection mandatoryAttributes, Collection optionalAttributes) { + this.version = version; this.mandatoryAttributes = Collections.unmodifiableSet(new HashSet<>(mandatoryAttributes)); this.optionalAttributes = Collections.unmodifiableSet(new HashSet<>(optionalAttributes)); this.allAttributes = Collections.unmodifiableSet( @@ -62,7 +62,7 @@ public enum SpecVersion { @Override public String toString() { - return this.stringValue; + return this.version; } /** pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy