Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wsargent committed Apr 16, 2024
1 parent 8b949b1 commit 6012bd7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,18 @@ protected DefaultField(
@Override
public @NotNull DefaultField abbreviateAfter(int after) {
// Set these on the value so the behavior is consistent
Value<?> newValue = value.withAttributes(value.attributes().plus(PresentationHintAttributes.abbreviateAfter(after)));
Value<?> newValue =
value.withAttributes(
value.attributes().plus(PresentationHintAttributes.abbreviateAfter(after)));
return new DefaultField(name, newValue, attributes);
}

@Deprecated
@Override
public @NotNull DefaultField asCardinal() {
// Set these on the value so the behavior is consistent
Value<?> newValue = value.withAttributes(value.attributes().plus(PresentationHintAttributes.asCardinal()));
Value<?> newValue =
value.withAttributes(value.attributes().plus(PresentationHintAttributes.asCardinal()));
return new DefaultField(name, newValue, attributes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ public interface PresentationHints<F extends Field> {
* Tells the formatter that the array value should be represented as a cardinal number in text.
*
* @return field with cardinal attribute set
* @deprecated asCardinal attribute only applies to values, this will not set an attribute on the field.
* @deprecated asCardinal attribute only applies to values, this will not set an attribute on the
* field.
*/
@Deprecated
@NotNull
Expand All @@ -34,8 +35,8 @@ public interface PresentationHints<F extends Field> {
* Tells the formatter that the string value or array value should be abbreviated after the given
* number of elements.
*
* @deprecated abbreviateAfter attribute only applies to values, this will not set an attribute on the field.
*
* @deprecated abbreviateAfter attribute only applies to values, this will not set an attribute on
* the field.
* @param after the maximum number of elements to render
* @return the field with the attribute applied
*/
Expand Down

0 comments on commit 6012bd7

Please sign in to comment.