Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akolosov-n committed Sep 4, 2024
1 parent 1d53b4a commit 592e189
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public final class CoapServerBuilder {
private NotificationsReceiver notificationsReceiver = NotificationsReceiver.REJECT_ALL;
private ObservationsStore observationStore = ObservationsStore.ALWAYS_EMPTY;
private RequestTagSupplier requestTagSupplier = RequestTagSupplier.createSequential();
private Boolean isTransportLoggingEnabled = true;
private boolean isTransportLoggingEnabled = true;

CoapServerBuilder() {
}
Expand Down Expand Up @@ -223,8 +223,8 @@ public CoapServerBuilder requestTagSupplier(RequestTagSupplier requestTagSupplie
return this;
}

public CoapServerBuilder transportLogging(Boolean transportLogging) {
this.isTransportLoggingEnabled = requireNonNull(transportLogging);
public CoapServerBuilder transportLogging(boolean isTransportLoggingEnabled) {
this.isTransportLoggingEnabled = isTransportLoggingEnabled;
return this;

Check warning on line 228 in coap-core/src/main/java/com/mbed/coap/server/CoapServerBuilder.java

View check run for this annotation

Codecov / codecov/patch

coap-core/src/main/java/com/mbed/coap/server/CoapServerBuilder.java#L227-L228

Added lines #L227 - L228 were not covered by tests
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
*
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down

0 comments on commit 592e189

Please sign in to comment.