Commit b5c87036 authored by Daniel Bluhm's avatar Daniel Bluhm

Use lombok annotations more selectively

And other minor fixes.
Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <bluhmdj@ornl.gov>
parent e3be6ef2
......@@ -12,7 +12,7 @@
package org.eclipse.ice.dev.annotations.processors;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
/**
* POJO representing metadata extracted from DataElement and associated
......@@ -20,7 +20,7 @@ import lombok.Data;
*
* @author Daniel Bluhm
*/
@Data
@Getter
@Builder
public class DataElementMetadata {
/**
......@@ -37,12 +37,4 @@ public class DataElementMetadata {
* Collected fields of the DataElement.
*/
protected Fields fields;
/**
* Fully qualified name (package + name) of the DataElement.
* @return fully qualified name.
*/
public String getFullyQualifiedName() {
return String.format("%s.%s", this.packageName, this.name);
}
}
}
\ No newline at end of file
......@@ -29,7 +29,8 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Singular;
/**
......@@ -38,7 +39,8 @@ import lombok.Singular;
*
* @author Daniel Bluhm
*/
@Data
@EqualsAndHashCode
@Getter
@Builder
@JsonDeserialize(builder = Field.FieldBuilder.class)
public class Field {
......@@ -136,10 +138,6 @@ public class Field {
@Builder.Default
Set<String> modifiers = Set.of("protected");
String validator;
TypeMirror mirror;
/**
* Get the name of the variable representing this field.
*
......@@ -261,7 +259,6 @@ public class Field {
@JsonIgnore
public FieldBuilder type(TypeMirror type) {
this.type = type.toString();
this.mirror = type;
this.primitive = type.getKind().isPrimitive();
return this;
}
......
......@@ -12,13 +12,13 @@
package org.eclipse.ice.dev.annotations.processors;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
/**
* Metadata extracted from persistence annotations.
* @author Daniel Bluhm
*/
@Data
@Getter
@Builder
public class PersistenceMetadata {
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment