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
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("]")

View File

@ -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) {

View File

@ -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) {