Skip to content

Commit

Permalink
0000: Fixed compile warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
  • Loading branch information
soenkekueper committed Nov 28, 2021
1 parent 7d8d6da commit 59910db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @param <STATE_TYPE> type of state.
*/
@NonNullByDefault
public abstract class AbstractDtoAttributeSelector<DTO_TYPE extends JaxbEntity, VALUE_TYPE, STATE_TYPE extends State> {
public abstract class AbstractDtoAttributeSelector<DTO_TYPE extends JaxbEntity, @Nullable VALUE_TYPE, STATE_TYPE extends State> {

private final Function<DTO_TYPE, @Nullable VALUE_TYPE> getter;
private final BiConsumer<DTO_TYPE, VALUE_TYPE> setter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
import org.openhab.binding.deutschebahn.internal.timetable.dto.Event;
import org.openhab.binding.deutschebahn.internal.timetable.dto.TimetableStop;
import org.openhab.binding.deutschebahn.internal.timetable.dto.TripLabel;
import org.openhab.core.thing.Channel;
import org.openhab.core.thing.ChannelUID;
import org.openhab.core.thing.Thing;
Expand Down Expand Up @@ -126,7 +124,8 @@ private void createChannelMapping() {
}

/**
* Creates an {@link ChannelWithConfig} for an channel that represents an attribute of an {@link TripLabel}.
* Creates an {@link ChannelWithConfig} for an channel that represents an attribute of an
* {@link org.openhab.binding.deutschebahn.internal.timetable.dto.TripLabel}.
*/
private void createTripChannelConfiguration(Channel channel) {
final ChannelUID channelUid = channel.getUID();
Expand All @@ -143,7 +142,8 @@ private void createTripChannelConfiguration(Channel channel) {
}

/**
* Creates the {@link ChannelWithConfig} for an channel that represents an attribute of an {@link Event}.}
* Creates the {@link ChannelWithConfig} for an channel that represents an attribute of an
* {@link org.openhab.binding.deutschebahn.internal.timetable.dto.Event}.}
*/
private void createEventChannelConfiguration(EventType eventType, Channel channel) {
final ChannelUID channelUid = channel.getUID();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
*/
@NonNullByDefault
public final class EventAttribute<VALUE_TYPE, STATE_TYPE extends State>
extends AbstractDtoAttributeSelector<Event, VALUE_TYPE, STATE_TYPE> {
extends AbstractDtoAttributeSelector<Event, @Nullable VALUE_TYPE, STATE_TYPE> {

/**
* Planned Path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
* @param <STATE_TYPE> type of state.
*/
@NonNullByDefault
public final class TripLabelAttribute<VALUE_TYPE, STATE_TYPE extends State>
extends AbstractDtoAttributeSelector<TripLabel, VALUE_TYPE, STATE_TYPE> implements AttributeSelection {
public final class TripLabelAttribute<VALUE_TYPE, STATE_TYPE extends State> extends
AbstractDtoAttributeSelector<TripLabel, @Nullable VALUE_TYPE, STATE_TYPE> implements AttributeSelection {

/**
* Trip category.
Expand Down

0 comments on commit 59910db

Please sign in to comment.