#355 clean up
This commit is contained in:
parent
f3110de130
commit
c229ec23b3
@ -38,7 +38,7 @@ public abstract class AbstractDocument implements Document {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(getClass().getName()).append("[");
|
||||
properties.entrySet().forEach(e ->
|
||||
builder.append("[").append(e.getKey()).append(" : ").append(e.getValue()).append("]")
|
||||
|
@ -8,7 +8,7 @@ import com.iluwatar.abstractdocument.AbstractDocument;
|
||||
public class Car extends AbstractDocument implements HasModel, HasPrice, HasParts {
|
||||
|
||||
protected Car() {
|
||||
super(new HashMap<String, Object>());
|
||||
super(new HashMap<>());
|
||||
}
|
||||
|
||||
protected Car(Map<String,Object> properties) {
|
||||
|
@ -8,7 +8,7 @@ import com.iluwatar.abstractdocument.AbstractDocument;
|
||||
public class Part extends AbstractDocument implements HasModel, HasPrice {
|
||||
|
||||
protected Part() {
|
||||
super(new HashMap<String, Object>());
|
||||
super(new HashMap<>());
|
||||
}
|
||||
|
||||
protected Part(Map<String, Object> properties) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user