Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
csowada committed Feb 6, 2021
2 parents 79c19b7 + 8a47b11 commit cf398ad
Show file tree
Hide file tree
Showing 137 changed files with 197 additions and 177 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.

## Unreleased

## [1.1.6] - 2021-02-06
### Changed
- Change interuppted behaviour in ``EBusLowLevelController`` thread
- Enhance @Null check in ``EBusDeviceTableService``
- Simplified checks due to safe @Null checks

## [1.1.5] - 2021-01-31
### Changed
- Removed clone() from DataType objects
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description>eBUS core library - This library handles the communication with heating engineering via the BUS specification. This protocol is used by many heating manufacturers in Europe.</description>
<groupId>de.cs-dev.ebus</groupId>
<artifactId>ebus-core</artifactId>
<version>1.1.5</version>
<version>1.1.6</version>
<url>https://github.com/csowada/ebus</url>
<packaging>bundle</packaging>

Expand All @@ -17,7 +17,7 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.release>8</maven.compiler.release>
<license.year>2020</license.year>
<license.year>2021</license.year>
<bundle.version>${project.version}</bundle.version>
<sonar.projectKey>csowada_ebus</sonar.projectKey>
<sonar.organization>csowada</sonar.organization>
Expand Down
2 changes: 1 addition & 1 deletion src/etc/header.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2016-${year} by the respective copyright holders.
Copyright (c) 2017-${year} by the respective copyright holders.

All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/cfg/std/dto/EBusValueDTO.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
18 changes: 6 additions & 12 deletions src/main/java/de/csdev/ebus/client/EBusClient.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down Expand Up @@ -80,11 +80,7 @@ public EBusClient(final @NonNull EBusCommandRegistry commandRegistry) {
*/
public void addEBusDeviceTableListener(final @NonNull IEBusDeviceTableListener listener) {
Objects.requireNonNull(listener, LABEL_LISTENER);
if (deviceTable != null) {
deviceTable.addEBusDeviceTableListener(listener);
} else {
throw new IllegalStateException("Device Table is not initialized!");
}
deviceTable.addEBusDeviceTableListener(listener);
}

/**
Expand All @@ -110,11 +106,7 @@ public void addEBusEventListener(final @NonNull IEBusConnectorEventListener list
*/
public void addEBusParserListener(final @NonNull IEBusParserListener listener) {
Objects.requireNonNull(listener, LABEL_LISTENER);
if (resolverService != null) {
resolverService.addEBusParserListener(listener);
} else {
throw new IllegalStateException("Resolver Service is not initialized!");
}
resolverService.addEBusParserListener(listener);
}

/**
Expand Down Expand Up @@ -182,7 +174,7 @@ public void addEBusParserListener(final @NonNull IEBusParserListener listener) {
*/
public void connect(final @NonNull IEBusController controller, final byte masterAddress) {

Objects.requireNonNull(controller, "Parameter controller can't be null!");
Objects.requireNonNull(controller, "controller");

controller.addEBusEventListener(resolverService);

Expand All @@ -206,10 +198,12 @@ public void connect(final @NonNull IEBusController controller, final byte master
public void dispose() {
if (controller != null) {
controller.interrupt();
controller = null;
}

if (deviceTableService != null) {
deviceTableService.dispose();
deviceTableService = null;
}

if (deviceTable != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/EBusCommand.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/EBusCommandMethod.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/EBusCommandUtils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/EBusCommandValue.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/IEBusCommand.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/IEBusNestedValue.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/csdev/ebus/command/IEBusValue.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2020 by the respective copyright holders.
* Copyright (c) 2017-2021 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down
Loading

0 comments on commit cf398ad

Please sign in to comment.