Commit 6bc902756bf86c2da95f381dc9a2cdd166e98395

Authored by Andrew Volostnykh
Committed by Andrew Shvayka
1 parent e70df09b

Code cleaning after review

@@ -17,7 +17,6 @@ package org.thingsboard.server.common.data.query; @@ -17,7 +17,6 @@ package org.thingsboard.server.common.data.query;
17 17
18 import com.fasterxml.jackson.annotation.JsonIgnore; 18 import com.fasterxml.jackson.annotation.JsonIgnore;
19 import lombok.Data; 19 import lombok.Data;
20 -import lombok.Getter;  
21 import lombok.RequiredArgsConstructor; 20 import lombok.RequiredArgsConstructor;
22 21
23 @Data 22 @Data
@@ -27,17 +26,14 @@ public class DynamicValue<T> { @@ -27,17 +26,14 @@ public class DynamicValue<T> {
27 @JsonIgnore 26 @JsonIgnore
28 private T resolvedValue; 27 private T resolvedValue;
29 28
  29 + private final DynamicValueSourceType sourceType;
  30 + private final String sourceAttribute;
  31 + private final boolean inherit;
  32 +
30 public DynamicValue(DynamicValueSourceType sourceType, String sourceAttribute) { 33 public DynamicValue(DynamicValueSourceType sourceType, String sourceAttribute) {
31 this.sourceAttribute = sourceAttribute; 34 this.sourceAttribute = sourceAttribute;
32 this.sourceType = sourceType; 35 this.sourceType = sourceType;
33 this.inherit = false; 36 this.inherit = false;
34 } 37 }
35 38
36 - @Getter  
37 - private final DynamicValueSourceType sourceType;  
38 - @Getter  
39 - private final String sourceAttribute;  
40 - @Getter  
41 - private final boolean inherit;  
42 -  
43 } 39 }