This commit is contained in:
qza 2016-06-02 07:41:32 +02:00
parent f3110de130
commit c229ec23b3
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ public abstract class AbstractDocument implements Document {
@Override @Override
public String toString() { public String toString() {
final StringBuilder builder = new StringBuilder(); StringBuilder builder = new StringBuilder();
builder.append(getClass().getName()).append("["); builder.append(getClass().getName()).append("[");
properties.entrySet().forEach(e -> properties.entrySet().forEach(e ->
builder.append("[").append(e.getKey()).append(" : ").append(e.getValue()).append("]") builder.append("[").append(e.getKey()).append(" : ").append(e.getValue()).append("]")

View File

@ -8,7 +8,7 @@ import com.iluwatar.abstractdocument.AbstractDocument;
public class Car extends AbstractDocument implements HasModel, HasPrice, HasParts { public class Car extends AbstractDocument implements HasModel, HasPrice, HasParts {
protected Car() { protected Car() {
super(new HashMap<String, Object>()); super(new HashMap<>());
} }
protected Car(Map<String,Object> properties) { protected Car(Map<String,Object> properties) {

View File

@ -8,7 +8,7 @@ import com.iluwatar.abstractdocument.AbstractDocument;
public class Part extends AbstractDocument implements HasModel, HasPrice { public class Part extends AbstractDocument implements HasModel, HasPrice {
protected Part() { protected Part() {
super(new HashMap<String, Object>()); super(new HashMap<>());
} }
protected Part(Map<String, Object> properties) { protected Part(Map<String, Object> properties) {