Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Jan 26, 2016
1 parent 8fa19de commit 3236f9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/main/java/net/sf/jabref/model/entry/BibEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class BibEntry {
public static final String TYPE_HEADER = "entrytype";
public static final String KEY_FIELD = "bibtexkey";
private static final String ID_FIELD = "id";
private static final String DEFAULT_TYPE = "misc";

private String id;

Expand Down Expand Up @@ -76,7 +77,7 @@ public BibEntry() {
}

public BibEntry(String id) {
this(id, "misc");
this(id, DEFAULT_TYPE);
}

public BibEntry(String id, String type) {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/net/sf/jabref/model/entry/TypedBibEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public class TypedBibEntry {
private final BibDatabaseType type;

public TypedBibEntry(BibEntry entry, BibDatabaseType type) {
this.type = type;
this.entry = Objects.requireNonNull(entry);
this.database = Optional.empty();
this(entry, Optional.empty(), type);
}

public TypedBibEntry(BibEntry entry, Optional<BibDatabase> database, BibDatabaseType type) {
Expand Down

0 comments on commit 3236f9e

Please sign in to comment.