Make getter return readonly collection.

This commit is contained in:
Florian Nücke
2022-02-13 16:54:49 +01:00
parent fad198e9d1
commit 3fdf49f3af

View File

@@ -35,7 +35,7 @@ public abstract class AbstractDeviceBusElement implements DeviceBusElement {
@Override
public Collection<DeviceBusController> getControllers() {
return controllers;
return Collections.unmodifiableSet(controllers);
}
@Override