toString fixed

This commit is contained in:
Francesco Mangiacrapa 2024-04-11 14:38:45 +02:00
parent a32e90757f
commit 6205e125d8
1 changed files with 2 additions and 20 deletions

View File

@ -14,6 +14,7 @@ import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
@Getter
@ -21,6 +22,7 @@ import lombok.extern.slf4j.Slf4j;
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
@ToString
public class ItemObserved<T extends Project> implements ItemObservable {
User userCaller;
Context context;
@ -79,24 +81,4 @@ public class ItemObserved<T extends Project> implements ItemObservable {
}
return null;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ItemObserved [userCaller=");
builder.append(userCaller);
builder.append(", context=");
builder.append(context);
builder.append(", useCaseDescriptor=");
builder.append(useCaseDescriptor.getId());
builder.append(", project=");
builder.append(project.getId());
builder.append(", event=");
builder.append(event);
builder.append("]");
return builder.toString();
}
}