Skip to content

Commit

Permalink
Fixed up nullable declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
normanj-bitquill committed May 13, 2024
1 parent a960fc5 commit a549b02
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package org.apache.calcite.util.format.postgresql;

import org.checkerframework.checker.nullness.qual.Nullable;

import java.text.ParsePosition;
import java.time.ZonedDateTime;
import java.util.Locale;
Expand All @@ -34,7 +36,7 @@ protected NumberFormatPattern(Function<ZonedDateTime, String> converter, String.
this.patterns = patterns;
}

@Override public String convert(ParsePosition parsePosition, String formatString,
@Nullable @Override public String convert(ParsePosition parsePosition, String formatString,
ZonedDateTime dateTime) {
String formatStringTrimmed = formatString.substring(parsePosition.getIndex());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected StringFormatPattern(String... patterns) {
this.patterns = patterns;
}

@Override public String convert(ParsePosition parsePosition, String formatString,
@Nullable @Override public String convert(ParsePosition parsePosition, String formatString,
ZonedDateTime dateTime) {
String formatStringTrimmed = formatString.substring(parsePosition.getIndex());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public TimeZoneHoursFormatPattern() {
super("TZH");
}

@Override String dateTimeToString(final ZonedDateTime dateTime, boolean haveFillMode,
@Nullable final String suffix, final Locale locale) {
@Override String dateTimeToString(ZonedDateTime dateTime, boolean haveFillMode,
@Nullable String suffix, Locale locale) {
return String.format(
Locale.ROOT,
"%+02d",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public TimeZoneMinutesFormatPattern() {
super("TZM");
}

@Override String dateTimeToString(final ZonedDateTime dateTime, boolean haveFillMode,
@Nullable final String suffix, final Locale locale) {
@Override String dateTimeToString(ZonedDateTime dateTime, boolean haveFillMode,
@Nullable String suffix, Locale locale) {
return String.format(
Locale.ROOT,
"%02d",
Expand Down

0 comments on commit a549b02

Please sign in to comment.