Skip to content

Commit 3c972b9

Browse files
authored
Fix typos (openhab#18193)
* Fix typo: occured * Fix typo: transfered Signed-off-by: Jacob Laursen <[email protected]>
1 parent e7d44c9 commit 3c972b9

File tree

64 files changed

+98
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+98
-98
lines changed

bundles/org.openhab.binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/protocol/philipstv/PhilipsTVConnectionManager.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,13 @@ public void handleCommand(ChannelUID channelUID, Command command) {
302302
initPairingCodeRetrieval(target);
303303
} catch (IOException | NoSuchAlgorithmException | KeyStoreException | KeyManagementException e) {
304304
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR,
305-
"offline.error-occured-while-presenting-pairing-code");
305+
"offline.error-occurred-while-presenting-pairing-code");
306306
}
307307
} else {
308308
boolean hasFailed = initCredentialsRetrieval(target, command.toString());
309309
if (hasFailed) {
310310
postUpdateThing(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
311-
"offline.error-occured-during-retrieval-of-credentials");
311+
"offline.error-occurred-during-retrieval-of-credentials");
312312
return;
313313
}
314314
readConfigs();

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ offline.interrupted = Interrupted
165165
offline.io-error = I/O Error
166166
offline.runtime-exception = Runtime exception
167167
offline.user-forced-pin-process = User Forced PIN Process
168-
offline.error-occured-while-presenting-pairing-code = Error occurred while trying to present a Pairing Code on TV
169-
offline.error-occured-during-retrieval-of-credentials = Error occurred during retrieval of credentials
168+
offline.error-occurred-while-presenting-pairing-code = Error occurred while trying to present a Pairing Code on TV
169+
offline.error-occurred-during-retrieval-of-credentials = Error occurred during retrieval of credentials
170170
offline.pairing-is-not-configured-yet = Pairing is not configured yet
171171
offline.error-occurred-while-trying-to-present-a-pairing-code-on-tv = Error occurred while trying to present a Pairing Code on TV
172172
offline.pairing-code-is-available-but-credentials-missing = Pairing Code is available, but credentials missing. Trying to retrieve them

bundles/org.openhab.binding.bluetooth.bluegiga/src/main/java/org/openhab/binding/bluetooth/bluegiga/handler/BlueGigaBridgeHandler.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public boolean bgConnect(BluetoothAddress address, BluetoothAddressType addressT
514514
try {
515515
return sendCommand(command, BlueGigaConnectDirectResponse.class, true).getResult() == BgApiResponse.SUCCESS;
516516
} catch (BlueGigaException e) {
517-
logger.debug("Error occured when sending connect command to device {}, reason: {}.", address,
517+
logger.debug("Error occurred when sending connect command to device {}, reason: {}.", address,
518518
e.getMessage());
519519
return false;
520520
}
@@ -534,7 +534,7 @@ public boolean bgDisconnect(int connectionHandle) {
534534
try {
535535
return sendCommand(command, BlueGigaDisconnectResponse.class, true).getResult() == BgApiResponse.SUCCESS;
536536
} catch (BlueGigaException e) {
537-
logger.debug("Error occured when sending disconnect command to device {}, reason: {}.", address,
537+
logger.debug("Error occurred when sending disconnect command to device {}, reason: {}.", address,
538538
e.getMessage());
539539
return false;
540540
}
@@ -560,7 +560,7 @@ public boolean bgFindPrimaryServices(int connectionHandle) {
560560
return sendCommand(command, BlueGigaReadByGroupTypeResponse.class, true)
561561
.getResult() == BgApiResponse.SUCCESS;
562562
} catch (BlueGigaException e) {
563-
logger.debug("Error occured when sending read primary services command to device {}, reason: {}.", address,
563+
logger.debug("Error occurred when sending read primary services command to device {}, reason: {}.", address,
564564
e.getMessage());
565565
return false;
566566
}
@@ -585,7 +585,7 @@ public boolean bgFindCharacteristics(int connectionHandle) {
585585
return sendCommand(command, BlueGigaFindInformationResponse.class, true)
586586
.getResult() == BgApiResponse.SUCCESS;
587587
} catch (BlueGigaException e) {
588-
logger.debug("Error occured when sending read characteristics command to device {}, reason: {}.", address,
588+
logger.debug("Error occurred when sending read characteristics command to device {}, reason: {}.", address,
589589
e.getMessage());
590590
return false;
591591
}
@@ -604,7 +604,7 @@ public boolean bgReadCharacteristicDeclarations(int connectionHandle) {
604604
try {
605605
return sendCommand(command, BlueGigaReadByTypeResponse.class, true).getResult() == BgApiResponse.SUCCESS;
606606
} catch (BlueGigaException e) {
607-
logger.debug("Error occured when sending read characteristics command to device {}, reason: {}.", address,
607+
logger.debug("Error occurred when sending read characteristics command to device {}, reason: {}.", address,
608608
e.getMessage());
609609
return false;
610610
}
@@ -628,7 +628,7 @@ public boolean bgReadCharacteristic(int connectionHandle, int handle) {
628628
try {
629629
return sendCommand(command, BlueGigaReadByHandleResponse.class, true).getResult() == BgApiResponse.SUCCESS;
630630
} catch (BlueGigaException e) {
631-
logger.debug("Error occured when sending read characteristics command to device {}, reason: {}.", address,
631+
logger.debug("Error occurred when sending read characteristics command to device {}, reason: {}.", address,
632632
e.getMessage());
633633
return false;
634634
}
@@ -655,7 +655,7 @@ public boolean bgWriteCharacteristic(int connectionHandle, int handle, int[] val
655655
return sendCommand(command, BlueGigaAttributeWriteResponse.class, true)
656656
.getResult() == BgApiResponse.SUCCESS;
657657
} catch (BlueGigaException e) {
658-
logger.debug("Error occured when sending write characteristics command to device {}, reason: {}.", address,
658+
logger.debug("Error occurred when sending write characteristics command to device {}, reason: {}.", address,
659659
e.getMessage());
660660
return false;
661661
}
@@ -669,7 +669,7 @@ private boolean bgEndProcedure() {
669669
return sendCommandWithoutChecks(new BlueGigaEndProcedureCommand(), BlueGigaEndProcedureResponse.class)
670670
.getResult() == BgApiResponse.SUCCESS;
671671
} catch (BlueGigaException e) {
672-
logger.debug("Error occured when sending end procedure command.");
672+
logger.debug("Error occurred when sending end procedure command.");
673673
return false;
674674
}
675675
}
@@ -685,7 +685,7 @@ private boolean bgSetMode() {
685685
return sendCommandWithoutChecks(command, BlueGigaSetModeResponse.class)
686686
.getResult() == BgApiResponse.SUCCESS;
687687
} catch (BlueGigaException e) {
688-
logger.debug("Error occured when sending set mode command, reason: {}", e.getMessage());
688+
logger.debug("Error occurred when sending set mode command, reason: {}", e.getMessage());
689689
return false;
690690
}
691691
}
@@ -715,7 +715,7 @@ private boolean bgStartScanning(boolean active, int interval, int window) {
715715
}
716716
}
717717
} catch (BlueGigaException e) {
718-
logger.debug("Error occured when sending start scan command, reason: {}", e.getMessage());
718+
logger.debug("Error occurred when sending start scan command, reason: {}", e.getMessage());
719719
}
720720
logger.debug("Scan start failed.");
721721
return false;

bundles/org.openhab.binding.bluetooth.bluez/src/main/java/org/openhab/binding/bluetooth/bluez/internal/BlueZBluetoothDevice.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public boolean connect() {
178178
// Catch "software caused connection abort"
179179
return false;
180180
} catch (Exception e) {
181-
logger.warn("error occured while trying to connect", e);
181+
logger.warn("error occurred while trying to connect", e);
182182
}
183183
} else {
184184
logger.debug("Device was already connected");

bundles/org.openhab.binding.bluetooth.enoceanble/src/main/java/org/openhab/binding/bluetooth/enoceanble/internal/EnoceanBleRockerHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void onScanRecordReceived(BluetoothScanNotification scanNotification) {
5353
}
5454
}
5555
} catch (IllegalStateException e) {
56-
logger.warn("PTM215B event could not be parsed correctly, exception occured:", e);
56+
logger.warn("PTM215B event could not be parsed correctly, exception occurred:", e);
5757
}
5858
}
5959

bundles/org.openhab.binding.bluetooth/src/main/java/org/openhab/binding/bluetooth/discovery/internal/BluetoothDiscoveryService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ private synchronized void createDiscoveryFuture(BluetoothDevice device) {
283283
return result;
284284
}).whenComplete((r, t) -> {
285285
if (t != null) {
286-
logger.warn("Error occured during discovery of {}", device.getAddress(), t);
286+
logger.warn("Error occurred during discovery of {}", device.getAddress(), t);
287287
}
288288
});
289289

bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/listener/ConnectionListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface ConnectionListener {
3131
*/
3232
final String CONNECTION_LOST = "connLost";
3333
/**
34-
* State, if a ssl handshake problem occured while communicating with the digitalSTROM-Server.
34+
* State, if a ssl handshake problem occurred while communicating with the digitalSTROM-Server.
3535
*/
3636
final String SSL_HANDSHAKE_ERROR = "sslHandshakeError";
3737
/**

bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/handler/EnOceanBridgeHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ public void responseReceived(RDLearnedClientsResponse response) {
497497
}
498498

499499
@Override
500-
public void errorOccured(Throwable exception) {
500+
public void errorOccurred(Throwable exception) {
501501
EnOceanTransceiver localTransceiver = transceiver;
502502
if (localTransceiver != null) {
503503
localTransceiver.shutDown();

bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EnOceanESP2Transceiver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ protected void processMessage(byte firstByte) {
162162
logger.trace("Unable to process message", ioexception);
163163
TransceiverErrorListener localListener = errorListener;
164164
if (localListener != null) {
165-
localListener.errorOccured(ioexception);
165+
localListener.errorOccurred(ioexception);
166166
}
167167
return;
168168
}

bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EnOceanESP3Transceiver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ protected void processMessage(byte firstByte) {
193193
logger.trace("Unable to process message", ioexception);
194194
TransceiverErrorListener localListener = errorListener;
195195
if (localListener != null) {
196-
localListener.errorOccured(ioexception);
196+
localListener.errorOccurred(ioexception);
197197
}
198198
return;
199199
}

bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/EnOceanTransceiver.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private synchronized void send() throws IOException {
135135
logger.trace("Unable to process message", e);
136136
TransceiverErrorListener localListener = errorListener;
137137
if (localListener != null) {
138-
localListener.errorOccured(e);
138+
localListener.errorOccurred(e);
139139
}
140140
return;
141141
}
@@ -253,7 +253,7 @@ public void shutDown() {
253253
try {
254254
localInputStream.close();
255255
} catch (IOException e) {
256-
logger.debug("IOException occured while closing the stream", e);
256+
logger.debug("IOException occurred while closing the stream", e);
257257
}
258258
}
259259
this.readingTask = null;
@@ -269,7 +269,7 @@ public void shutDown() {
269269
try {
270270
localOutputStream.close();
271271
} catch (IOException e) {
272-
logger.debug("IOException occured while closing the output stream", e);
272+
logger.debug("IOException occurred while closing the output stream", e);
273273
}
274274
}
275275

@@ -278,7 +278,7 @@ public void shutDown() {
278278
try {
279279
localInputStream.close();
280280
} catch (IOException e) {
281-
logger.debug("IOException occured while closing the input stream", e);
281+
logger.debug("IOException occurred while closing the input stream", e);
282282
}
283283
}
284284

@@ -315,7 +315,7 @@ protected int read(byte[] buffer, int length) {
315315
try {
316316
return localInputStream.read(buffer, 0, length);
317317
} catch (IOException e) {
318-
logger.debug("IOException occured while reading the input stream", e);
318+
logger.debug("IOException occurred while reading the input stream", e);
319319
return 0;
320320
}
321321
} else {
@@ -327,7 +327,7 @@ protected int read(byte[] buffer, int length) {
327327
}
328328
TransceiverErrorListener localListener = errorListener;
329329
if (localListener != null) {
330-
localListener.errorOccured(new IOException("Cannot read from null stream"));
330+
localListener.errorOccurred(new IOException("Cannot read from null stream"));
331331
}
332332
return 0;
333333
}

bundles/org.openhab.binding.enocean/src/main/java/org/openhab/binding/enocean/internal/transceiver/TransceiverErrorListener.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
@NonNullByDefault
2222
public interface TransceiverErrorListener {
2323

24-
void errorOccured(Throwable exception);
24+
void errorOccurred(Throwable exception);
2525
}

bundles/org.openhab.binding.flicbutton/src/main/java/org/openhab/binding/flicbutton/internal/discovery/FlicSimpleclientDiscoveryServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected void startScan() {
7777
discoverVerifiedButtons();
7878
}
7979
} catch (IOException e) {
80-
logger.warn("Error occured during button discovery", e);
80+
logger.warn("Error occurred during button discovery", e);
8181
if (this.scanListener != null) {
8282
scanListener.onErrorOccurred(e);
8383
}

bundles/org.openhab.binding.flicbutton/src/main/java/org/openhab/binding/flicbutton/internal/handler/FlicDaemonBridgeHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private void startFlicdClientAsync() throws IOException {
102102
flicClient.close();
103103
logger.debug("Listening to flicd ended");
104104
} catch (IOException e) {
105-
logger.debug("Error occured while listening to flicd", e);
105+
logger.debug("Error occurred while listening to flicd", e);
106106
} finally {
107107
if (Thread.currentThread().isInterrupted()) {
108108
onClientFailure();

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ channel-type.freeboxos.telephony-service.description = Status of the telephony s
371371
channel-type.freeboxos.temperature.label = Temperature
372372
channel-type.freeboxos.temperature.description = Actual measured temperature of the sensor
373373
channel-type.freeboxos.timestamp.label = Timestamp
374-
channel-type.freeboxos.transfer-bytes.label = Transfered Bytes
375-
channel-type.freeboxos.transfer-bytes.description = Total data transfered since last connection
374+
channel-type.freeboxos.transfer-bytes.label = Transferred Bytes
375+
channel-type.freeboxos.transfer-bytes.description = Total data transferred since last connection
376376
channel-type.freeboxos.transfer-rate-bps.label = Transfer Rate
377377
channel-type.freeboxos.transfer-rate-bps.description = Current transfer rate
378378
channel-type.freeboxos.transfer-rate.label = Transfer Rate

bundles/org.openhab.binding.freeboxos/src/main/resources/OH-INF/thing/channel-types.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126

127127
<channel-type id="transfer-bytes" advanced="true">
128128
<item-type unitHint="GB">Number:DataAmount</item-type>
129-
<label>Transfered Bytes</label>
130-
<description>Total data transfered since last connection</description>
129+
<label>Transferred Bytes</label>
130+
<description>Total data transferred since last connection</description>
131131
<state readOnly="true" pattern="%.2f %unit%"/>
132132
</channel-type>
133133

bundles/org.openhab.binding.ftpupload/src/main/java/org/openhab/binding/ftpupload/internal/ftp/SimpleFtpFile.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public byte[] getData() {
184184
logger.debug("File len: {}", d.length);
185185
return d;
186186
} catch (IllegalArgumentException e) {
187-
logger.debug("Exception occured during data conversion: {}", e.getMessage());
187+
logger.debug("Exception occurred during data conversion: {}", e.getMessage());
188188
}
189189
return null;
190190
}

bundles/org.openhab.binding.icalendar/src/main/java/org/openhab/binding/icalendar/internal/handler/ICalendarHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private void executeEventCommands(List<Event> events, CommandTagType execTime) {
268268
} catch (IllegalArgumentException | IllegalStateException e) {
269269
logger.warn("Event: {}, Command Tag: {} => Unable to push command to target item!", event.title,
270270
cmdTag.getFullTag());
271-
logger.debug("Exception occured while pushing to item!", e);
271+
logger.debug("Exception occurred while pushing to item!", e);
272272
}
273273
}
274274
}

bundles/org.openhab.binding.icloud/src/main/java/org/openhab/binding/icloud/internal/handler/ICloudAccountBridgeHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public void initialize() {
198198
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
199199
return null;
200200
} catch (Exception e) {
201-
logger.debug("Unexpected exception occured", e);
201+
logger.debug("Unexpected exception occurred", e);
202202
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
203203
return null;
204204
}

bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ChannelUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public static void addChannelsFromProjectFile(Thing thing, Document projectFile,
101101
}
102102
}
103103
} catch (RuntimeException e) {
104-
LOGGER.warn("Error occured when adding channels, reason: {}", e.getMessage(), e);
104+
LOGGER.warn("Error occurred when adding channels, reason: {}", e.getMessage(), e);
105105
}
106106

107107
try {
@@ -122,7 +122,7 @@ public static void addChannelsFromProjectFile(Thing thing, Document projectFile,
122122
}
123123
}
124124
} catch (RuntimeException e) {
125-
LOGGER.warn("Error occured when adding channels, reason: {}", e.getMessage(), e);
125+
LOGGER.warn("Error occurred when adding channels, reason: {}", e.getMessage(), e);
126126
}
127127
} else {
128128
LOGGER.warn("Project file data doesn't exist, can't automatically create channels!");

bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/handler/IhcHandler.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ private void loadProject() throws IhcExecption {
572572
try {
573573
projectFile = ProjectFileUtils.readFromFile(filePath);
574574
} catch (IhcExecption e) {
575-
logger.debug("Error occured when read project file from file '{}', reason {}", filePath,
575+
logger.debug("Error occurred when read project file from file '{}', reason {}", filePath,
576576
e.getMessage(), e);
577577
loadProject = true;
578578
}
@@ -591,7 +591,7 @@ private void loadProject() throws IhcExecption {
591591
try {
592592
ProjectFileUtils.saveToFile(filePath, data);
593593
} catch (IhcExecption e) {
594-
logger.warn("Error occured when trying to write data to file '{}', reason {}", filePath,
594+
logger.warn("Error occurred when trying to write data to file '{}', reason {}", filePath,
595595
e.getMessage(), e);
596596
}
597597
projectFile = ProjectFileUtils.converteBytesToDocument(data);
@@ -671,7 +671,7 @@ private void clearLastUpdateTimeCache() {
671671
}
672672

673673
@Override
674-
public void errorOccured(IhcExecption e) {
674+
public void errorOccurred(IhcExecption e) {
675675
logger.warn("Error occurred on communication to IHC controller: {}", e.getMessage(), e);
676676
logger.debug("Reconnection request");
677677
setReconnectRequest(true);
@@ -724,7 +724,7 @@ public void resourceValueUpdateReceived(WSResourceValue value) {
724724
} catch (ConversionException e) {
725725
logger.warn("Channel param error, reason: {}.", e.getMessage(), e);
726726
} catch (RuntimeException e) {
727-
logger.warn("Unknown error occured, reason: {}.", e.getMessage(), e);
727+
logger.warn("Unknown error occurred, reason: {}.", e.getMessage(), e);
728728
}
729729
});
730730

@@ -875,7 +875,7 @@ private void updateRfDeviceStates() {
875875
});
876876
});
877877
} catch (IhcExecption e) {
878-
logger.debug("Error occured when fetching RF device information, reason: : {} ", e.getMessage(), e);
878+
logger.debug("Error occurred when fetching RF device information, reason: : {} ", e.getMessage(), e);
879879
return;
880880
}
881881
}

0 commit comments

Comments
 (0)