Typos a/an (#13876)
This commit is contained in:
@@ -377,7 +377,7 @@ public final class EventAttribute<VALUE_TYPE, STATE_TYPE extends State>
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an single station from an path value (i.e. pipe separated value of stations).
|
||||
* Returns a single station from a path value (i.e. pipe separated value of stations).
|
||||
*
|
||||
* @param getPath Getter for the path.
|
||||
* @param returnFirst if <code>true</code> the first value will be returned, <code>false</code> will return the last
|
||||
@@ -401,8 +401,8 @@ public final class EventAttribute<VALUE_TYPE, STATE_TYPE extends State>
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all intermediate stations from an path. The first or last station will be omitted. The values will be
|
||||
* separated by an single dash -.
|
||||
* Returns all intermediate stations from a path. The first or last station will be omitted. The values will be
|
||||
* separated by a single dash -.
|
||||
*
|
||||
* @param getPath Getter for the path.
|
||||
* @param removeFirst if <code>true</code> the first value will be removed, <code>false</code> will remove the last
|
||||
|
||||
@@ -15,7 +15,7 @@ package org.openhab.binding.deutschebahn.internal.filter;
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
||||
/**
|
||||
* A token representing an conjunction.
|
||||
* A token representing a conjunction.
|
||||
*
|
||||
* @author Sönke Küper - Initial contribution.
|
||||
*/
|
||||
|
||||
@@ -134,7 +134,7 @@ public final class FilterParser {
|
||||
}
|
||||
|
||||
/**
|
||||
* State while parsing an conjunction.
|
||||
* State while parsing a conjunction.
|
||||
*/
|
||||
private static final class AndState extends State {
|
||||
|
||||
@@ -226,7 +226,7 @@ public final class FilterParser {
|
||||
}
|
||||
|
||||
/**
|
||||
* State while parsing an Subquery.
|
||||
* State while parsing a Subquery.
|
||||
*/
|
||||
private static final class SubQueryState extends State {
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ public final class FilterScanner {
|
||||
}
|
||||
|
||||
/**
|
||||
* State scanning an channel name until the equals-sign.
|
||||
* State scanning a channel name until the equals-sign.
|
||||
*/
|
||||
private final class ChannelNameState implements State {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ package org.openhab.binding.deutschebahn.internal.filter;
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
||||
/**
|
||||
* A token representing a part of an filter expression.
|
||||
* A token representing a part of a filter expression.
|
||||
*
|
||||
* @author Sönke Küper - Initial contribution.
|
||||
*/
|
||||
|
||||
@@ -15,7 +15,7 @@ package org.openhab.binding.deutschebahn.internal.filter;
|
||||
import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
|
||||
/**
|
||||
* A token representing an disjunction.
|
||||
* A token representing a disjunction.
|
||||
*
|
||||
* @author Sönke Küper - Initial contribution.
|
||||
*/
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
import org.openhab.binding.deutschebahn.internal.timetable.dto.TimetableStop;
|
||||
|
||||
/**
|
||||
* Predicate to match an TimetableStop
|
||||
* Predicate to match a TimetableStop
|
||||
*
|
||||
* @author Sönke Küper - initial contribution.
|
||||
*/
|
||||
|
||||
@@ -193,7 +193,7 @@ public final class TimetableLoader {
|
||||
requestTime.setTime(currentTime);
|
||||
}
|
||||
|
||||
// Determine the max. time for which an plan is available
|
||||
// Determine the max. time for which a plan is available
|
||||
final GregorianCalendar maxRequestTime = new GregorianCalendar();
|
||||
maxRequestTime.setTime(currentTime);
|
||||
maxRequestTime.set(Calendar.HOUR_OF_DAY, maxRequestTime.get(Calendar.HOUR_OF_DAY) + MAX_ADVANCE_HOUR);
|
||||
@@ -225,7 +225,7 @@ public final class TimetableLoader {
|
||||
private void processLoadedPlan(List<TimetableStop> stops, Date currentTime) {
|
||||
for (final TimetableStop stop : stops) {
|
||||
|
||||
// Check if an change for the stop was cached and apply it
|
||||
// Check if a change for the stop was cached and apply it
|
||||
final TimetableStop change = this.cachedChanges.remove(stop.getId());
|
||||
if (change != null) {
|
||||
TimetableStopMerger.merge(stop, change);
|
||||
@@ -275,7 +275,7 @@ public final class TimetableLoader {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
// The recent changes are only available for 120 seconds, so if last update is older perform an full update.
|
||||
// The recent changes are only available for 120 seconds, so if last update is older perform a full update.
|
||||
if (secondsSinceLastUpdate >= MAX_RECENT_CHANGE_UPDATE) {
|
||||
fullChanges = true;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public final class TimetablesV1Impl implements TimetablesV1Api {
|
||||
|
||||
// The results from webservice does not conform to the schema provided. The triplabel-Element (tl) is expected
|
||||
// to occour as
|
||||
// last Element within an timetableStop (s) element. But it is the first element when requesting the plan.
|
||||
// last Element within a timetableStop (s) element. But it is the first element when requesting the plan.
|
||||
// When requesting the changes it is the last element, so the schema can't just be corrected.
|
||||
// If written to developer support, but got no response yet, so schema validation is disabled at the moment.
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ public class TripLabelAttributeTest {
|
||||
assertThat(attribute.getValue(new TripLabel()), is(nullValue()));
|
||||
assertThat(attribute.getState(new TripLabel()), is(nullValue()));
|
||||
|
||||
// Create an trip label and set the attribute value.
|
||||
// Create a trip label and set the attribute value.
|
||||
final TripLabel labelWithValueSet = new TripLabel();
|
||||
setValue.accept(labelWithValueSet);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.eclipse.jdt.annotation.Nullable;
|
||||
import org.openhab.binding.deutschebahn.internal.timetable.dto.Timetable;
|
||||
|
||||
/**
|
||||
* Stub Implementation of {@link TimetablesV1Api}, that may return an preconfigured Timetable or
|
||||
* Stub Implementation of {@link TimetablesV1Api}, that may return a preconfigured Timetable or
|
||||
* throws an {@link IOException} if not data has been set.
|
||||
*
|
||||
* @author Sönke Küper - initial contribution
|
||||
|
||||
Reference in New Issue
Block a user