Skip to content

Commit bff5794

Browse files
committed
chore: update @SInCE tags
1 parent 701a651 commit bff5794

File tree

4 files changed

+32
-31
lines changed

4 files changed

+32
-31
lines changed

format/yaml/src/main/java/org/spongepowered/configurate/yaml/ScalarStyle.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Style that can be used to represent a scalar.
2828
*
29-
* @since 4.2.0
29+
* @since 4.3.0
3030
*/
3131
public enum ScalarStyle {
3232

@@ -35,7 +35,7 @@ public enum ScalarStyle {
3535
*
3636
* <pre>"hello world"</pre>
3737
*
38-
* @since 4.2.0
38+
* @since 4.3.0
3939
*/
4040
DOUBLE_QUOTED(DumperOptions.ScalarStyle.DOUBLE_QUOTED),
4141

@@ -44,7 +44,7 @@ public enum ScalarStyle {
4444
*
4545
* <pre>'hello world'</pre>
4646
*
47-
* @since 4.2.0
47+
* @since 4.3.0
4848
*/
4949
SINGLE_QUOTED(DumperOptions.ScalarStyle.SINGLE_QUOTED),
5050

@@ -53,7 +53,7 @@ public enum ScalarStyle {
5353
*
5454
* <p>This may be ambiguous with non-string types.</p>
5555
*
56-
* @since 4.2.0
56+
* @since 4.3.0
5757
*/
5858
UNQUOTED(DumperOptions.ScalarStyle.PLAIN),
5959

@@ -66,7 +66,7 @@ public enum ScalarStyle {
6666
* line breaks collapsed
6767
* }</pre>
6868
*
69-
* @since 4.2.0
69+
* @since 4.3.0
7070
*/
7171
FOLDED(DumperOptions.ScalarStyle.FOLDED),
7272

@@ -79,7 +79,7 @@ public enum ScalarStyle {
7979
* line breaks preserved
8080
* }</pre>
8181
*
82-
* @since 4.2.0
82+
* @since 4.3.0
8383
*/
8484
LITERAL(DumperOptions.ScalarStyle.LITERAL)
8585
;

format/yaml/src/main/java/org/spongepowered/configurate/yaml/TagRepository.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/**
3737
* A collection of tags that are understood when reading a document.
3838
*
39-
* @since 4.2.0
39+
* @since 4.3.0
4040
*/
4141
final class TagRepository {
4242

@@ -93,7 +93,7 @@ static TagRepository.Builder builder() {
9393
*
9494
* @param name the tag URI
9595
* @return a tag, if any is present
96-
* @since 4.2.0
96+
* @since 4.3.0
9797
*/
9898
public @Nullable Tag named(final URI name) {
9999
return this.byName.get(name);
@@ -104,7 +104,7 @@ static TagRepository.Builder builder() {
104104
*
105105
* @param type the type used
106106
* @return a tag, if any is registered
107-
* @since 4.2.0
107+
* @since 4.3.0
108108
*/
109109
public @Nullable Tag byType(final Class<?> type) {
110110
return this.byErasedType.get(type);
@@ -115,7 +115,7 @@ static TagRepository.Builder builder() {
115115
*
116116
* @param node the node to analyze
117117
* @return a calculated tag
118-
* @since 4.2.0
118+
* @since 4.3.0
119119
*/
120120
@SuppressWarnings("rawtypes")
121121
AnalyzedTag analyze(final ConfigurationNode node) throws ConfigurateException {
@@ -171,7 +171,7 @@ public TagRepository.Builder toBuilder() {
171171
* A combination of resolved tag, and whether the tag is the same as the tag
172172
* that would be implicitly calculated.
173173
*
174-
* @since 4.2.0
174+
* @since 4.3.0
175175
*/
176176
@AutoValue
177177
abstract static class AnalyzedTag {
@@ -182,7 +182,7 @@ abstract static class AnalyzedTag {
182182
* @param resolved the resolved type
183183
* @param specified the specified type
184184
* @return the resolved tag
185-
* @since 4.2.0
185+
* @since 4.3.0
186186
*/
187187
static AnalyzedTag of(final Tag resolved, final @Nullable Tag specified, final boolean defaultForType) {
188188
return new AutoValue_TagRepository_AnalyzedTag(resolved, specified, defaultForType);
@@ -198,15 +198,15 @@ static AnalyzedTag of(final Tag resolved, final @Nullable Tag specified, final b
198198
* <em>unresolved</em> tag.</p>
199199
*
200200
* @return the calculated tag
201-
* @since 4.2.0
201+
* @since 4.3.0
202202
*/
203203
public abstract Tag resolved();
204204

205205
/**
206206
* Get the manually specified tag for this node.
207207
*
208208
* @return the specified tag
209-
* @since 4.2.0
209+
* @since 4.3.0
210210
*/
211211
public abstract @Nullable Tag specified();
212212

@@ -215,7 +215,7 @@ static AnalyzedTag of(final Tag resolved, final @Nullable Tag specified, final b
215215
* a certain tag.
216216
*
217217
* @return whether the calculated tag unambiguously matches
218-
* @since 4.2.0
218+
* @since 4.3.0
219219
*/
220220
abstract boolean isUnambiguous();
221221

@@ -226,6 +226,7 @@ static AnalyzedTag of(final Tag resolved, final @Nullable Tag specified, final b
226226
* Otherwise, the specified tag will be used.</p>
227227
*
228228
* @return the actual tag
229+
* @since 4.3.0
229230
*/
230231
public final Tag actual() {
231232
return this.specified() == null ? this.resolved() : this.specified();
@@ -238,7 +239,7 @@ public final Tag actual() {
238239
* type equals the specified type.</p>
239240
*
240241
* @return whether the tag is implicit.
241-
* @since 4.2.0
242+
* @since 4.3.0
242243
*/
243244
public final boolean implicit() {
244245
return this.specified() == null ? this.isUnambiguous() : Objects.equals(this.resolved(), this.specified());
@@ -303,7 +304,7 @@ Builder mappingTag(final Tag.Mapping mapping) {
303304
*
304305
* @param tag the tag to register
305306
* @return this builder
306-
* @since 4.2.0
307+
* @since 4.3.0
307308
*/
308309
Builder addTag(final Tag tag) {
309310
requireNonNull(tag, "tag");

format/yaml/src/main/java/org/spongepowered/configurate/yaml/Yaml11Tags.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Standard types defined on the <a href="https://yaml.org/type/">yaml.org
3535
* tag repository</a>.
3636
*
37-
* @since 4.2.0
37+
* @since 4.3.0
3838
*/
3939
final class Yaml11Tags {
4040

@@ -49,7 +49,7 @@ private static URI yamlOrg(final String specific) {
4949
* A binary data tag.
5050
*
5151
* @see <a href="https://yaml.org/type/binary.html">tag:yaml.org,2002:binary</a>
52-
* @since 4.2.0
52+
* @since 4.3.0
5353
*/
5454
public static final Tag.Scalar<byte[]> BINARY = new Tag.Scalar<byte[]>(
5555
yamlOrg("binary"),
@@ -77,7 +77,7 @@ public String toString(final byte[] own) {
7777
* true/false and on/off in order to avoid cases of confusion (such as
7878
* the classic Norway problem).
7979
* @see <a href="https://yaml.org/type/bool.html">tag:yaml.org,2002:bool</a>
80-
* @since 4.2.0
80+
* @since 4.3.0
8181
*/
8282
public static final Tag.Scalar<Boolean> BOOL = new Tag.Scalar<Boolean>(
8383
yamlOrg("bool"),
@@ -107,7 +107,7 @@ public String toString(final Boolean own) {
107107
* A floating-point number.
108108
*
109109
* @see <a href="https://yaml.org/type/float.html">tag:yaml.org,2002:float</a>
110-
* @since 4.2.0
110+
* @since 4.3.0
111111
*/
112112
public static final Tag.Scalar<Number> FLOAT = new Tag.Scalar<Number>(
113113
yamlOrg("float"),
@@ -133,7 +133,7 @@ public String toString(final Number own) {
133133
* An integer.
134134
*
135135
* @see <a href="https://yaml.org/type/int.html">tag:yaml.org,2002:int</a>
136-
* @since 4.2.0
136+
* @since 4.3.0
137137
*/
138138
public static final Tag.Scalar<Number> INT = new Tag.Scalar<Number>(
139139
yamlOrg("int"),
@@ -178,7 +178,7 @@ public String toString(final Number own) {
178178
* are fully implemented.</p>
179179
*
180180
* @see <a href="https://yaml.org/type/merge.html">tag:yaml.org,2002:merge</a>
181-
* @since 4.2.0
181+
* @since 4.3.0
182182
*/
183183
public static final Tag.Scalar<?> MERGE = new Tag.Scalar<Object>(
184184
yamlOrg("merge"),
@@ -208,7 +208,7 @@ public String toString(final Object own) throws ParsingException {
208208
* likely never be encountered in an in-memory representation.</p>
209209
*
210210
* @see <a href="https://yaml.org/type/null.html">tag:yaml.org,2002:null</a>
211-
* @since 4.2.0
211+
* @since 4.3.0
212212
*/
213213
public static final Tag.Scalar<Void> NULL = new Tag.Scalar<Void>(
214214
yamlOrg("null"),
@@ -233,7 +233,7 @@ public String toString(final Void own) {
233233
* Any string.
234234
*
235235
* @see <a href="https://yaml.org/type/str.html">tag:yaml.org,2002:str</a>
236-
* @since 4.2.0
236+
* @since 4.3.0
237237
*/
238238
public static final Tag.Scalar<String> STR = new Tag.Scalar<String>(
239239
yamlOrg("str"),
@@ -255,7 +255,7 @@ public String toString(final String own) {
255255
* A timestamp, containing date, time, and timezone.
256256
*
257257
* @see <a href="https://yaml.org/type/timestamp.html">tag:yaml.org,2002:timestamp</a>
258-
* @since 4.2.0
258+
* @since 4.3.0
259259
*/
260260
public static final Tag.Scalar<ZonedDateTime> TIMESTAMP = new Tag.Scalar<ZonedDateTime>(
261261
yamlOrg("timestamp"),
@@ -285,15 +285,15 @@ public String toString(final ZonedDateTime own) {
285285
* A mapping.
286286
*
287287
* @see <a href="https://yaml.org/type/map.html">tag:yaml.org,2002:map</a>
288-
* @since 4.2.0
288+
* @since 4.3.0
289289
*/
290290
public static final Tag.Mapping MAP = new Tag.Mapping(yamlOrg("map"), UnmodifiableCollections.toSet(Map.class));
291291

292292
/**
293293
* A sequence.
294294
*
295295
* @see <a href="https://yaml.org/type/seq.html">tag:yaml.org,2002:seq</a>
296-
* @since 4.2.0
296+
* @since 4.3.0
297297
*/
298298
public static final Tag.Sequence SEQ = new Tag.Sequence(yamlOrg("seq"), UnmodifiableCollections.toSet(List.class, Set.class));
299299

format/yaml/src/main/java/org/spongepowered/configurate/yaml/YamlConfigurationLoader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public final class YamlConfigurationLoader extends AbstractConfigurationLoader<C
129129
* <p>If the chosen scalar style would produce syntactically invalid YAML, a
130130
* valid one will replace it.</p>
131131
*
132-
* @since 4.2.0
132+
* @since 4.3.0
133133
*/
134134
public static final RepresentationHint<ScalarStyle> SCALAR_STYLE = RepresentationHint.of("configurate:yaml/scalar-style", ScalarStyle.class);
135135

@@ -138,7 +138,7 @@ public final class YamlConfigurationLoader extends AbstractConfigurationLoader<C
138138
* will instruct the emitter to fall back to the
139139
* {@link Builder#nodeStyle()} setting.
140140
*
141-
* @since 4.2.0
141+
* @since 4.3.0
142142
*/
143143
public static final RepresentationHint<NodeStyle> NODE_STYLE = RepresentationHint.of("configurate:yaml/node-style", NodeStyle.class);
144144

@@ -147,7 +147,7 @@ public final class YamlConfigurationLoader extends AbstractConfigurationLoader<C
147147
*
148148
* <p>This can override default type conversion for a YAML document.</p>
149149
*
150-
* @since 4.2.0
150+
* @since 4.3.0
151151
*/
152152
public static final RepresentationHint<Tag> TAG = RepresentationHint.<Tag>builder()
153153
.identifier("configurate:yaml/tag")

0 commit comments

Comments
 (0)