Fix some issues found by qodana (#2083)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -11,6 +11,7 @@ package org.eclipse.hawkbit.repository.builder;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import lombok.Getter;
|
||||
import org.eclipse.hawkbit.repository.ValidString;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
@@ -22,6 +23,7 @@ import org.springframework.util.StringUtils;
|
||||
public abstract class AbstractMetadataUpdateCreate<T> {
|
||||
|
||||
@ValidString
|
||||
@Getter
|
||||
protected String key;
|
||||
@ValidString
|
||||
protected String value;
|
||||
@@ -31,10 +33,6 @@ public abstract class AbstractMetadataUpdateCreate<T> {
|
||||
return (T) this;
|
||||
}
|
||||
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
public T value(final String value) {
|
||||
this.value = StringUtils.trimWhitespace(value);
|
||||
return (T) this;
|
||||
|
||||
Reference in New Issue
Block a user