Code cleaning after review

This commit is contained in:
Andrew Volostnykh 2021-02-15 14:22:37 +02:00 committed by Andrew Shvayka
parent e70df09b08
commit 6bc902756b

View File

@ -17,7 +17,6 @@ package org.thingsboard.server.common.data.query;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@Data
@ -27,17 +26,14 @@ public class DynamicValue<T> {
@JsonIgnore
private T resolvedValue;
private final DynamicValueSourceType sourceType;
private final String sourceAttribute;
private final boolean inherit;
public DynamicValue(DynamicValueSourceType sourceType, String sourceAttribute) {
this.sourceAttribute = sourceAttribute;
this.sourceType = sourceType;
this.inherit = false;
}
@Getter
private final DynamicValueSourceType sourceType;
@Getter
private final String sourceAttribute;
@Getter
private final boolean inherit;
}