Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change LocalDateTimeSerializer constructor protected from private #230

Closed
trydofor opened this issue Oct 29, 2021 · 1 comment
Closed

Change LocalDateTimeSerializer constructor protected from private #230

trydofor opened this issue Oct 29, 2021 · 1 comment
Milestone

Comments

@trydofor
Copy link

trydofor commented Oct 29, 2021

replace constructor form private as protected as well as LocalDateSerializer's

private LocalDateTimeSerializer(LocalDateTimeSerializer base, DateTimeFormatter dtf,

    public LocalDateTimeSerializer(DateTimeFormatter f) {
        super(LocalDateTime.class, f);
    }
  // this constructor 
    private LocalDateTimeSerializer(LocalDateTimeSerializer base, DateTimeFormatter dtf,
            Boolean useTimestamp, Boolean useNanoseconds) {
        super(base, dtf, useTimestamp, useNanoseconds, null);
    }

    @Override
    protected JSR310FormattedSerializerBase<LocalDateTime> withFormat(DateTimeFormatter f,
            Boolean useTimestamp, JsonFormat.Shape shape) {
        return new LocalDateTimeSerializer(this, f, useTimestamp, _useNanoseconds);
    }
@cowtowncoder cowtowncoder added this to the 2.14.0 milestone Apr 21, 2022
@cowtowncoder
Copy link
Member

I somehow missed this. Will do for 2.14.

@cowtowncoder cowtowncoder changed the title please make LocalDateTimeSerializer.constructor protected Change LocalDateTimeSerializer constructor protected from private Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants