Skip to content

Commit fe82dae

Browse files
committed
[ISSUE cloudevents#558]Optimize SpecVersion attribute name
Signed-off-by: mxsm <[email protected]>
1 parent 4ebeab0 commit fe82dae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/src/main/java/io/cloudevents/SpecVersion.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ public enum SpecVersion {
4646
Arrays.asList("datacontenttype", "dataschema", "subject", "time")
4747
);
4848

49-
private final String stringValue;
49+
private final String version;
5050
private final Set<String> mandatoryAttributes;
5151
private final Set<String> optionalAttributes;
5252
private final Set<String> allAttributes;
5353

54-
SpecVersion(String stringValue, Collection<String> mandatoryAttributes, Collection<String> optionalAttributes) {
55-
this.stringValue = stringValue;
54+
SpecVersion(String version, Collection<String> mandatoryAttributes, Collection<String> optionalAttributes) {
55+
this.version = version;
5656
this.mandatoryAttributes = Collections.unmodifiableSet(new HashSet<>(mandatoryAttributes));
5757
this.optionalAttributes = Collections.unmodifiableSet(new HashSet<>(optionalAttributes));
5858
this.allAttributes = Collections.unmodifiableSet(
@@ -62,7 +62,7 @@ public enum SpecVersion {
6262

6363
@Override
6464
public String toString() {
65-
return this.stringValue;
65+
return this.version;
6666
}
6767

6868
/**

0 commit comments

Comments
 (0)