Skip to content

Commit

Permalink
Typos a/an (openhab#13876)
Browse files Browse the repository at this point in the history
Signed-off-by: Andras Uhrin <[email protected]>
  • Loading branch information
dilyanpalauzov authored and andrasU committed Dec 24, 2022
1 parent 817a4b2 commit ef9e536
Show file tree
Hide file tree
Showing 140 changed files with 166 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.eclipse.jdt.annotation.NonNullByDefault;

/**
* Realizes an first-order FIR low pass filter. To keep code complexity low, it is implemented as moving average (all
* Realizes a first-order FIR low pass filter. To keep code complexity low, it is implemented as moving average (all
* FIR coefficients are set to normalized ones).
*
* The exponential decaying function is used for the calculation (see https://en.wikipedia.org/wiki/Time_constant). That
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class AutelisHandler extends BaseThingHandler {
* Autelis controllers will not update their XML immediately after we change
* a value. To compensate we cache previous values for a {@link Channel}
* using the item name as a key. After a polling run has been executed we
* only update an channel if the value is different then what's in the
* only update a channel if the value is different then what's in the
* cache. This cache is cleared after a fixed time period when commands are
* sent.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void givenQueryResultItsContentIsCorrectlySerializedToJson() {
}

private void assertReadGivenValuesDecodedFromJson(Map<?, ?> firstRow) {
assertThat(firstRow.get("strValue"), is("an string"));
assertThat(firstRow.get("strValue"), is("a string"));

Object doubleValue = firstRow.get("doubleValue");
assertThat(doubleValue, instanceOf(Number.class));
Expand Down Expand Up @@ -124,7 +124,7 @@ private QueryResult givenQueryResultWithResults() {

private Map<String, @Nullable Object> givenRowValues() {
Map<String, @Nullable Object> values = new HashMap<>();
values.put("strValue", "an string");
values.put("strValue", "a string");
values.put("doubleValue", 2.3d);
values.put("intValue", 3);
values.put("longValue", Long.MAX_VALUE);
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.deconz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Other devices support
|-------------------|--------------------------|:-----------:|---------------------------------------|-------------------------------------------------|
| brightness | Dimmer | R/W | Brightness of the light | `dimmablelight`, `colortemperaturelight` |
| switch | Switch | R/W | State of an ON/OFF device | `onofflight` |
| color | Color | R/W | Color of an multi-color light | `colorlight`, `extendedcolorlight`, `lightgroup`|
| color | Color | R/W | Color of a multi-color light | `colorlight`, `extendedcolorlight`, `lightgroup`|
| color_temperature | Number | R/W | Color temperature in Kelvin. The value range is determined by each individual light | `colortemperaturelight`, `extendedcolorlight`, `lightgroup` |
| effect | String | R/W | Effect selection. Allowed commands are set dynamically | `colorlight` |
| effectSpeed | Number | W | Effect Speed | `colorlight` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ protected void processStateResponse(DeconzBaseMessage stateResponse) {
LightMessage lightMessage = (LightMessage) stateResponse;

if (needsPropertyUpdate) {
// if we did not receive an ctmin/ctmax, then we probably don't need it
// if we did not receive a ctmin/ctmax, then we probably don't need it
needsPropertyUpdate = false;

Integer ctmax = lightMessage.ctmax;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ private static List<String> mapDateToStringList(@Nullable Date value) {
}

/**
* 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
Expand All @@ -401,8 +401,8 @@ private static List<String> mapDateToStringList(@Nullable Date value) {
}

/**
* 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.eclipse.jdt.annotation.NonNullByDefault;

/**
* A token representing an conjunction.
* A token representing a conjunction.
*
* @author Sönke Küper - Initial contribution.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public TimetableStopPredicate getResult() throws FilterParserException {
}

/**
* State while parsing an conjunction.
* State while parsing a conjunction.
*/
private static final class AndState extends State {

Expand Down Expand Up @@ -226,7 +226,7 @@ public TimetableStopPredicate getResult() throws FilterParserException {
}

/**
* State while parsing an Subquery.
* State while parsing a Subquery.
*/
private static final class SubQueryState extends State {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void finish(int position) {
}

/**
* State scanning an channel name until the equals-sign.
* State scanning a channel name until the equals-sign.
*/
private final class ChannelNameState implements State {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.eclipse.jdt.annotation.NonNullByDefault;

/**
* A token representing an disjunction.
* A token representing a disjunction.
*
* @author Sönke Küper - Initial contribution.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
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.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private void updatePlan(final Date currentTime) throws IOException {
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);
Expand Down Expand Up @@ -225,7 +225,7 @@ private void updatePlan(final Date currentTime) throws IOException {
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);
Expand Down Expand Up @@ -275,7 +275,7 @@ private List<TimetableStop> loadChanges(final Date currentTime) throws IOExcepti
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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public TimetablesV1Impl( //

// 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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private <VALUE_TYPE, STATE_TYPE extends State> void doTestTripAttribute( //
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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.digitalstrom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ The digitalSTROM-Scenes can be defined with following parameters.
| Scene ID or name | sceneID |The call scene ID or scene name, e.g. preset 1 for scene ID 5. Callable scenes are from 0 to 126. | false | false |

The Scene-Thing-Type _Named-Scene_ and _Group-Scene_ have all parameters.
The _Apartment-Scene_ only has the parameters _Scene name_ and _Scene ID_ an the _Zone-Scene_ has all parameters without _Group ID or name_.
The _Apartment-Scene_ only has the parameters _Scene name_ and _Scene ID_ and the _Zone-Scene_ has all parameters without _Group ID or name_.

### Textual configuration examples

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public void onConnectionStateChange(String newConnectionState, String reason) {
case WRONG_APP_TOKEN:
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
"User defined Application-Token is wrong. "
+ "Please set user name and password to generate an Application-Token or set an valid Application-Token.");
+ "Please set user name and password to generate an Application-Token or set a valid Application-Token.");
stopServices();
return;
case WRONG_USER_OR_PASSWORD:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public abstract class BaseTemperatureControl extends BaseZoneIdentifier {
protected Short controlMode;

/**
* Creates a new {@link BaseTemperatureControl} through the {@link JsonObject} which will be returned by an zone
* Creates a new {@link BaseTemperatureControl} through the {@link JsonObject} which will be returned by a zone
* call.<br>
* Because zone calls do not include a zoneID or zoneName in the json response, the zoneID and zoneName have to
* be handed over the constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public abstract class BaseZoneIdentifier implements ZoneIdentifier {
protected String zoneName;

/**
* Creates a new {@link BaseZoneIdentifier} with an zone id and zone name.
* Creates a new {@link BaseZoneIdentifier} with a zone id and zone name.
*
* @param zoneID must not be null
* @param zoneName can be null
Expand All @@ -39,7 +39,7 @@ public BaseZoneIdentifier(Integer zoneID, String zoneName) {
}

/**
* Creates a new {@link BaseZoneIdentifier} through the {@link JsonObject} of the response of an digitalSTROM-API
* Creates a new {@link BaseZoneIdentifier} through the {@link JsonObject} of the response of a digitalSTROM-API
* apartment call.
*
* @param jObject must not be null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public AssignedSensors(JsonObject jObject) {
}

/**
* Creates a new {@link AssignedSensors} through the {@link JsonObject} which will be returned by an zone call.
* Creates a new {@link AssignedSensors} through the {@link JsonObject} which will be returned by a zone call.
* Because of zone calls does not include a zoneID or zoneName in the json response, the zoneID and zoneName have to
* be handed over the constructor.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public SensorValues(JsonObject jObject) {
}

/**
* Creates a new {@link SensorValues} through the {@link JsonObject} which will be returned by an zone call.
* Creates a new {@link SensorValues} through the {@link JsonObject} which will be returned by a zone call.
* Because of zone calls does not include a zoneID or zoneName in the json response, the zoneID and zoneName have to
* be handed over the constructor.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public TemperatureControlConfig(JsonObject jObject) {
}

/**
* Creates a new {@link TemperatureControlConfig} through the {@link JsonObject} which will be returned by an zone
* Creates a new {@link TemperatureControlConfig} through the {@link JsonObject} which will be returned by a zone
* call.<br>
* Because of zone calls does not include a zoneID or zoneName in the json response, the zoneID and zoneName have to
* be handed over the constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public TemperatureControlStatus(JsonObject jObject) {
}

/**
* Creates a new {@link TemperatureControlStatus} through the {@link JsonObject} which will be returned by an zone
* Creates a new {@link TemperatureControlStatus} through the {@link JsonObject} which will be returned by a zone
* call.<br>
* Because of zone calls does not include a zoneID or zoneName in the json response, the zoneID and zoneName have to
* be handed over the constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public TemperatureControlValues(JsonObject jObject) {
}

/**
* Creates a new {@link TemperatureControlValues} through the {@link JsonObject} which will be returned by an zone
* Creates a new {@link TemperatureControlValues} through the {@link JsonObject} which will be returned by a zone
* call.<br>
* Because of zone calls does not include a zoneID or zoneName in the json response, the zoneID and zoneName have to
* be handed over the constructor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.openhab.binding.digitalstrom.internal.lib.event.constants.EventResponseEnum;

/**
* The {@link EventItem} represents an event item of an digitalSTROM-Event.
* The {@link EventItem} represents an event item of a digitalSTROM-Event.
*
* @author Alexander Betker
* @author Michael Ochel - add getSource()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface DeviceStatusListener {
void onDeviceAdded(GeneralDeviceInformation device);

/**
* This method is called whenever a configuration of an device has changed. What configuration has changed
* This method is called whenever a configuration of a device has changed. What configuration has changed
* can be see by the given parameter whatConfig to handle the change.<br>
* Please have a look at {@link ChangeableDeviceConfigEnum} to see what configuration are changeable.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public interface ManagerStatusListener {

/**
* This method is called whenever the state of an digitalSTROM-Manager has changed.<br>
* This method is called whenever the state of a digitalSTROM-Manager has changed.<br>
* For that it passes the {@link ManagerTypes} and the new {@link ManagerStates}.
*
* @param managerType of the digitalSTROM-Manager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* <p>
* The {@link DeviceStatusManager} is responsible for the synchronization between the internal model of the
* digitalSTROM-devices and the real existing digitalSTROM-devices. You can change the state of an device by sending a
* digitalSTROM-devices and the real existing digitalSTROM-devices. You can change the state of a device by sending a
* direct command to the devices or by calling a scene. Furthermore the {@link DeviceStatusManager} get informed over
* the {@link SceneManager} by the {@link EventListener} if scenes are called by external sources. All
* configurations of the physically device will be synchronized to the internally managed model and updated as required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public interface StructureManager {
Map<Short, List<Device>> getGroupsFromZoneX(int zoneID);

/**
* Returns the reference {@link List} of the {@link Device}'s of an zone-group.
* Returns the reference {@link List} of the {@link Device}'s of a zone-group.
*
* @param zoneID of the zone
* @param groupID of the group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
package org.openhab.binding.digitalstrom.internal.lib.serverconnection;

/**
* The {@link HttpTransport} executes an request to the DigitalSTROM-Server.
* The {@link HttpTransport} executes a request to the DigitalSTROM-Server.
*
* @author Michael Ochel - Initial contribution
* @author Matthias Siegele - Initial contribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@
import org.slf4j.LoggerFactory;

/**
* The {@link HttpTransportImpl} executes an request to the digitalSTROM-Server.
* The {@link HttpTransportImpl} executes a request to the digitalSTROM-Server.
* <p>
* If a {@link Config} is given at the constructor. It sets the SSL-Certificate what is set in
* {@link Config#getCert()}. If there is no SSL-Certificate, but an path to an external SSL-Certificate file what is set
* {@link Config#getCert()}. If there is no SSL-Certificate, but a path to an external SSL-Certificate file what is set
* in {@link Config#getTrustCertPath()} this will be set. If no SSL-Certificate is set in the {@link Config} it will be
* red out from the server and set in {@link Config#setCert(String)}.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.google.gson.JsonParser;

/**
* The {@link JSONResponseHandler} checks an digitalSTROM-JSON response and can parse it to a {@link JsonObject}.
* The {@link JSONResponseHandler} checks a digitalSTROM-JSON response and can parse it to a {@link JsonObject}.
*
* @author Alexander Betker - Initial contribution
* @author Alex Maier - Initial contribution
Expand Down Expand Up @@ -65,7 +65,7 @@ public static JsonObject toJsonObject(String jsonResponse) {
try {
return (JsonObject) JsonParser.parseString(jsonResponse);
} catch (JsonParseException e) {
LOGGER.error("An JsonParseException occurred by parsing jsonRequest: {}", jsonResponse, e);
LOGGER.error("A JsonParseException occurred by parsing jsonRequest: {}", jsonResponse, e);
}
}
return null;
Expand Down
Loading

0 comments on commit ef9e536

Please sign in to comment.