Skip to content

Commit 9f4deaf

Browse files
authored
Fix typo: recieve (openhab#18177)
Signed-off-by: Jacob Laursen <[email protected]>
1 parent dfb322b commit 9f4deaf

File tree

28 files changed

+58
-58
lines changed

28 files changed

+58
-58
lines changed

bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/ConnectedBluetoothHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public void onConnectionStateChange(BluetoothConnectionStatusNotification connec
322322
public void onCharacteristicUpdate(BluetoothCharacteristic characteristic, byte[] value) {
323323
super.onCharacteristicUpdate(characteristic, value);
324324
if (logger.isDebugEnabled()) {
325-
logger.debug("Recieved update {} to characteristic {} of device {}", HexUtils.bytesToHex(value),
325+
logger.debug("Received update {} to characteristic {} of device {}", HexUtils.bytesToHex(value),
326326
characteristic.getUuid(), address);
327327
}
328328
}

bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/handler/KeypadThingHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void dscAlarmEventReceived(EventObject event, Thing thing) {
139139
.getDSCAlarmCodeValue(dscAlarmMessage.getMessageInfo(DSCAlarmMessageInfoType.CODE));
140140
String dscAlarmMessageData = dscAlarmMessage.getMessageInfo(DSCAlarmMessageInfoType.DATA);
141141

142-
logger.debug("dscAlarmEventRecieved(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
142+
logger.debug("dscAlarmEventReceived(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
143143

144144
switch (dscAlarmCode) {
145145
case KeypadLEDState: /* 510 */

bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/handler/PanelThingHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ public void dscAlarmEventReceived(EventObject event, Thing thing) {
435435
ChannelUID channelUID = null;
436436
DSCAlarmCode dscAlarmCode = DSCAlarmCode
437437
.getDSCAlarmCodeValue(dscAlarmMessage.getMessageInfo(DSCAlarmMessageInfoType.CODE));
438-
logger.debug("dscAlarmEventRecieved(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
438+
logger.debug("dscAlarmEventReceived(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
439439

440440
int state = 0;
441441

bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/handler/PartitionThingHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void dscAlarmEventReceived(EventObject event, Thing thing) {
197197
String dscAlarmMessageName = dscAlarmMessage.getMessageInfo(DSCAlarmMessageInfoType.NAME);
198198
String dscAlarmMessageMode = dscAlarmMessage.getMessageInfo(DSCAlarmMessageInfoType.MODE);
199199

200-
logger.debug("dscAlarmEventRecieved(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
200+
logger.debug("dscAlarmEventReceived(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
201201

202202
switch (dscAlarmCode) {
203203
case PartitionReady: /* 650 */

bundles/org.openhab.binding.dscalarm/src/main/java/org/openhab/binding/dscalarm/internal/handler/ZoneThingHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public void dscAlarmEventReceived(EventObject event, Thing thing) {
132132
ChannelUID channelUID = null;
133133
DSCAlarmCode dscAlarmCode = DSCAlarmCode
134134
.getDSCAlarmCodeValue(dscAlarmMessage.getMessageInfo(DSCAlarmMessageInfoType.CODE));
135-
logger.debug("dscAlarmEventRecieved(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
135+
logger.debug("dscAlarmEventReceived(): Thing - {} Command - {}", thing.getUID(), dscAlarmCode);
136136

137137
int state = 0;
138138
String status = "";

bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/GreeCryptoUtil.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static String decryptPack(byte[] keyarray, String message) throws GreeExc
120120
return new String(bytePlainText, StandardCharsets.UTF_8);
121121
} catch (NoSuchAlgorithmException | NoSuchPaddingException | BadPaddingException | InvalidKeyException
122122
| IllegalBlockSizeException ex) {
123-
throw new GreeException("Decryption of recieved data failed", ex);
123+
throw new GreeException("Decryption of received data failed", ex);
124124
}
125125
}
126126

@@ -145,7 +145,7 @@ public static String decryptGCMPack(byte[] keyBytes, String pack, String tag) th
145145
return new String(bytePlainText, StandardCharsets.UTF_8);
146146
} catch (NoSuchAlgorithmException | NoSuchPaddingException | BadPaddingException | InvalidKeyException
147147
| IllegalBlockSizeException | InvalidAlgorithmParameterException ex) {
148-
throw new GreeException("GCM decryption of recieved data failed", ex);
148+
throw new GreeException("GCM decryption of received data failed", ex);
149149
}
150150
}
151151

bundles/org.openhab.binding.gree/src/main/java/org/openhab/binding/gree/internal/handler/GreeAirDevice.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public void bindWithDevice(DatagramSocket clientSocket, EncryptionTypes encrypti
164164
DatagramPacket sendPacket = createPackRequest(1, encryptedBindReqData);
165165
clientSocket.send(sendPacket);
166166

167-
// Recieve a response, create the JSON to hold the response values
167+
// Receive a response, create the JSON to hold the response values
168168
GreeBindResponseDTO resp = receiveResponse(clientSocket, GreeBindResponseDTO.class);
169169
resp.decryptedPack = GreeCryptoUtil.decrypt(resp, encType);
170170
resp.packJson = GSON.fromJson(resp.decryptedPack, GreeBindResponsePackDTO.class);

bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/HttpOnlyHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
7070
try {
7171
ipCameraHandler.audioThreshold = Integer.valueOf(command.toString());
7272
} catch (NumberFormatException e) {
73-
logger.warn("Audio Threshold recieved an unexpected command, was it a number?");
73+
logger.warn("Audio Threshold received an unexpected command, was it a number?");
7474
}
7575
}
7676
ipCameraHandler.setupFfmpegFormat(FFmpegFormat.RTSP_ALARMS);

bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java

+21-21
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ public class IpCameraHandler extends BaseThingHandler {
199199

200200
// These methods handle the response from all camera brands, nothing specific to 1 brand.
201201
private class CommonCameraHandler extends ChannelDuplexHandler {
202-
private int bytesToRecieve = 0;
203-
private int bytesAlreadyRecieved = 0;
202+
private int bytesToReceive = 0;
203+
private int bytesAlreadyReceived = 0;
204204
private byte[] incomingJpeg = new byte[0];
205205
private String incomingMessage = "";
206206
private String contentType = "empty";
@@ -229,7 +229,7 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
229229
contentType = response.headers().getAsString(name);
230230
break;
231231
case "content-length":
232-
bytesToRecieve = Integer.parseInt(response.headers().getAsString(name));
232+
bytesToReceive = Integer.parseInt(response.headers().getAsString(name));
233233
break;
234234
case "transfer-encoding":
235235
if (response.headers().getAsString(name).contains("chunked")) {
@@ -252,11 +252,11 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
252252
}
253253
}
254254
} else if (contentType.contains("image/jp")) {
255-
if (bytesToRecieve == 0) {
256-
bytesToRecieve = 768000; // 0.768 Mbyte when no Content-Length is sent
255+
if (bytesToReceive == 0) {
256+
bytesToReceive = 768000; // 0.768 Mbyte when no Content-Length is sent
257257
logger.debug("Camera has no Content-Length header, we have to guess how much RAM.");
258258
}
259-
incomingJpeg = new byte[bytesToRecieve];
259+
incomingJpeg = new byte[bytesToReceive];
260260
}
261261
}
262262
} else {
@@ -277,7 +277,7 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
277277
// Found some cameras use Content-Type: image/jpg instead of image/jpeg
278278
if (contentType.contains("image/jp")) {
279279
for (int i = 0; i < content.content().capacity(); i++) {
280-
incomingJpeg[bytesAlreadyRecieved++] = content.content().getByte(i);
280+
incomingJpeg[bytesAlreadyReceived++] = content.content().getByte(i);
281281
}
282282
if (content instanceof LastHttpContent) {
283283
processSnapshot(incomingJpeg);
@@ -289,54 +289,54 @@ public void channelRead(@Nullable ChannelHandlerContext ctx, @Nullable Object ms
289289
} else {
290290
incomingMessage += content.content().toString(CharsetUtil.UTF_8);
291291
}
292-
bytesAlreadyRecieved = incomingMessage.length();
292+
bytesAlreadyReceived = incomingMessage.length();
293293
if (content instanceof LastHttpContent) {
294294
// If it is not an image send it on to the next handler//
295-
if (bytesAlreadyRecieved != 0) {
295+
if (bytesAlreadyReceived != 0) {
296296
reply = incomingMessage;
297297
super.channelRead(ctx, reply);
298298
}
299299
}
300300
// Alarm Streams never have a LastHttpContent as they always stay open//
301301
else if (contentType.contains("multipart")) {
302302
int beginIndex, endIndex;
303-
if (bytesToRecieve == 0) {
303+
if (bytesToReceive == 0) {
304304
beginIndex = incomingMessage.indexOf("Content-Length:");
305305
if (beginIndex != -1) {
306306
endIndex = incomingMessage.indexOf("\r\n", beginIndex);
307307
if (endIndex != -1) {
308-
bytesToRecieve = Integer.parseInt(
308+
bytesToReceive = Integer.parseInt(
309309
incomingMessage.substring(beginIndex + 15, endIndex).strip());
310310
}
311311
}
312312
}
313313
// --boundary and headers are not included in the Content-Length value
314-
if (bytesAlreadyRecieved > bytesToRecieve) {
314+
if (bytesAlreadyReceived > bytesToReceive) {
315315
// Check if message has a second --boundary
316-
endIndex = incomingMessage.indexOf("--" + boundary, bytesToRecieve);
316+
endIndex = incomingMessage.indexOf("--" + boundary, bytesToReceive);
317317
if (endIndex == -1) {
318318
reply = incomingMessage;
319319
incomingMessage = "";
320-
bytesToRecieve = 0;
321-
bytesAlreadyRecieved = 0;
320+
bytesToReceive = 0;
321+
bytesAlreadyReceived = 0;
322322
} else {
323323
reply = incomingMessage.substring(0, endIndex);
324324
incomingMessage = incomingMessage.substring(endIndex, incomingMessage.length());
325-
bytesToRecieve = 0;// Triggers search next time for Content-Length:
326-
bytesAlreadyRecieved = incomingMessage.length() - endIndex;
325+
bytesToReceive = 0;// Triggers search next time for Content-Length:
326+
bytesAlreadyReceived = incomingMessage.length() - endIndex;
327327
}
328328
super.channelRead(ctx, reply);
329329
}
330330
}
331331
// Foscam needs this as will other cameras with chunks//
332-
if (isChunked && bytesAlreadyRecieved != 0) {
332+
if (isChunked && bytesAlreadyReceived != 0) {
333333
reply = incomingMessage;
334334
}
335335
}
336336
}
337337
} else { // msg is not HttpContent
338338
// Foscam cameras need this
339-
if (!contentType.contains("image/jp") && bytesAlreadyRecieved != 0) {
339+
if (!contentType.contains("image/jp") && bytesAlreadyReceived != 0) {
340340
reply = incomingMessage;
341341
logger.trace("Packet back from camera is {}", incomingMessage);
342342
super.channelRead(ctx, reply);
@@ -353,8 +353,8 @@ public void exceptionCaught(@Nullable ChannelHandlerContext ctx, @Nullable Throw
353353
return;
354354
}
355355
if (cause instanceof ArrayIndexOutOfBoundsException) {
356-
logger.debug("Camera sent {} bytes when the content-length header was {}.", bytesAlreadyRecieved,
357-
bytesToRecieve);
356+
logger.debug("Camera sent {} bytes when the content-length header was {}.", bytesAlreadyReceived,
357+
bytesToReceive);
358358
} else {
359359
logger.warn("Camera possibly closed the channel on the binding for URL: {}, cause reported is: {}",
360360
requestUrl, cause.getMessage());

bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/onvif/OnvifConnection.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public void processReply(RequestType requestType, String message) {
388388
break;
389389
case PullMessages:
390390
try {
391-
eventRecieved(message);
391+
eventReceived(message);
392392
} catch (Exception e) {
393393
logger.error("Error processing PullMessages error:\n{}\nmessage: {}", e.toString(), message);
394394
}
@@ -813,7 +813,7 @@ public void gotoPreset(int index) {
813813
}
814814
}
815815

816-
public void eventRecieved(String eventMessage) {
816+
public void eventReceived(String eventMessage) {
817817
Document xmlDocument;
818818
try {
819819
xmlDocument = Helper.loadXMLFromString(eventMessage);

bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/servlet/CameraServlet.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ protected void doPost(@Nullable HttpServletRequest req, @Nullable HttpServletRes
8181
case "/OnvifEvent":
8282
ServletInputStream inputStream = req.getInputStream();
8383
String xmlData = new String(inputStream.readAllBytes(), "UTF-8");
84-
handler.onvifCamera.eventRecieved(xmlData);
84+
handler.onvifCamera.eventReceived(xmlData);
8585
break;
8686
default:
87-
logger.debug("Recieved unknown request \tPOST:{}", pathInfo);
87+
logger.debug("Received unknown request \tPOST:{}", pathInfo);
8888
break;
8989
}
9090
}

bundles/org.openhab.binding.modbus.sunspec/src/main/java/org/openhab/binding/modbus/sunspec/internal/handler/MeterHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.slf4j.LoggerFactory;
2727

2828
/**
29-
* This handler is responsible for handling data recieved from a sunspec meter
29+
* This handler is responsible for handling data received from a sunspec meter
3030
*
3131
* @author Nagy Attila Gabor - Initial contribution
3232
*

bundles/org.openhab.binding.mqtt.fpp/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FPP Binding
22

3-
Binding to control Falcon Player (FPP) Devices using MQTT and HTTP. Status messages are recieved over MQTT and Commands are HTTP Commands.
3+
Binding to control Falcon Player (FPP) Devices using MQTT and HTTP. Status messages are received over MQTT and Commands are HTTP Commands.
44

55
## Discovery
66

@@ -32,7 +32,7 @@ The binding supports one Thing `player` that represents the Falcon Player.
3232
| `seconds-played` | Number:Time | Sequence Playback time in secs. |
3333
| `seconds-remaining` | Number:Time | Sequence Playback time remaining in secs. |
3434
| `last-playlist` | String | Lasted Played Playlist. |
35-
| `bridging-enabled` | Switch | Is Recieving Bridge Data. |
35+
| `bridging-enabled` | Switch | Is Receiving Bridge Data. |
3636
| `multisync-enabled` | Switch | Multisync Mode Enabled. |
3737
| `scheduler-current-playlist` | String (read only) | Scheduler Current Playlist. |
3838
| `scheduler-current-playlist-start` | String (read only) | Scheduler Current Playlist Start Time. |

bundles/org.openhab.binding.mqtt.fpp/src/main/resources/OH-INF/i18n/mqtt.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ channel-type.mqtt.player.player.description = FPP Player Control
3333
channel-type.mqtt.player.volume.label = Volume
3434
channel-type.mqtt.player.volume.description = FPP Volume of the Output
3535
channel-type.mqtt.player.bridging-enabled.label = Bridging
36-
channel-type.mqtt.player.bridging-enabled.description = FPP Recieving Bridge Data
36+
channel-type.mqtt.player.bridging-enabled.description = FPP Receiving Bridge Data
3737
channel-type.mqtt.player.multisync-enabled.label = Multisync
3838
channel-type.mqtt.player.multisync-enabled.description = FPP Multisync Mode Enabled
3939
channel-type.mqtt.player.testing-enabled.label = Testing

bundles/org.openhab.binding.mqtt.fpp/src/main/resources/OH-INF/thing/thing-types.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<channel-type id="bridging-enabled" advanced="true">
105105
<item-type>Switch</item-type>
106106
<label>Bridging</label>
107-
<description>FPP Recieving Bridge Data</description>
107+
<description>FPP Receiving Bridge Data</description>
108108
<state readOnly="true"/>
109109
</channel-type>
110110
<channel-type id="multisync-enabled" advanced="true">

bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/utils/HttpUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static int getCliPort(String ip, int webPort)
103103
throws SqueezeBoxNotAuthorizedException, SqueezeBoxCommunicationException {
104104
String url = "http://" + ip + ":" + webPort + "/jsonrpc.js";
105105
String json = HttpUtils.post(url, JSON_REQ);
106-
logger.trace("Recieved json from server {}", json);
106+
logger.trace("Received json from server {}", json);
107107
JsonElement resp = JsonParser.parseString(json);
108108
String cliPort = resp.getAsJsonObject().get("result").getAsJsonObject().get("_p2").getAsString();
109109
return Integer.parseInt(cliPort);

bundles/org.openhab.binding.tankerkoenig/src/main/java/org/openhab/binding/tankerkoenig/internal/handler/WebserviceHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public WebserviceHandler(Bridge bridge) {
7070
@Override
7171
public void handleCommand(ChannelUID channelUID, Command command) {
7272
if (channelUID.getId().equals(TankerkoenigBindingConstants.CHANNEL_HOLIDAY)) {
73-
logger.debug("HandleCommand recieved: {}", channelUID.getId());
73+
logger.debug("HandleCommand received: {}", channelUID.getId());
7474
isHoliday = (command == OnOffType.ON);
7575
}
7676
}

bundles/org.openhab.binding.touchwand/src/main/java/org/openhab/binding/touchwand/internal/TouchWandBSensorHandler.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void touchWandUnitHandleCommand(Command command) {
7272
void updateChannelDoorWindow(TouchWandBSensorUnitData unitData) {
7373
OpenClosedType myOpenClose;
7474
String isOpen = unitData.getCurrStatus();
75-
logger.debug("recieved status {} from door unit {} ", isOpen, unitData.getName());
75+
logger.debug("received status {} from door unit {} ", isOpen, unitData.getName());
7676
if (isOpen.equals(BSENSOR_STATUS_OPEN)) {
7777
myOpenClose = OpenClosedType.OPEN;
7878
} else if (isOpen.equals(BSENSOR_STATUS_CLOSE)) {
@@ -86,7 +86,7 @@ void updateChannelDoorWindow(TouchWandBSensorUnitData unitData) {
8686

8787
void updateChannelMotion(TouchWandBSensorUnitData unitData) {
8888
String motion = unitData.getCurrStatus();
89-
logger.debug("recieved status {} from motion unit {} ", motion, unitData.getName());
89+
logger.debug("received status {} from motion unit {} ", motion, unitData.getName());
9090
OnOffType status;
9191
if (motion.equals(BSENSOR_STATUS_OPEN)) {
9292
status = OnOffType.ON;

bundles/org.openhab.binding.vitotronic/src/main/java/org/openhab/binding/vitotronic/internal/handler/VitotronicBridgeHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private void openSocket() {
247247
}
248248

249249
Runnable socketReceiverRunnable = () -> {
250-
logger.trace("Start Background Thread for recieving data from adapter");
250+
logger.trace("Start Background Thread for receiving data from adapter");
251251
try {
252252
XMLReader xmlReader = XMLReaderFactory.createXMLReader();
253253
xmlReader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);

0 commit comments

Comments
 (0)