Metadata: Rename noteDbFileName to noteDbFilePath

It's the full path that is stored in this field. Make this clearer by
the field name.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Ic8b60468c6f9f1a16734e18d15fa0d9bddb8980c
This commit is contained in:
Edwin Kempin
2019-07-15 09:03:46 +02:00
parent a02aa0ac5d
commit e017a1fe4c
2 changed files with 5 additions and 5 deletions

View File

@@ -505,7 +505,7 @@ public abstract class VersionedMetaData {
.projectName(projectName.get())
.noteDbRefName(getRefName())
.revision(revision.name())
.noteDbFileName(fileName)
.noteDbFilePath(fileName)
.build());
TreeWalk tw = TreeWalk.forPath(reader, fileName, revision.getTree())) {
if (tw != null) {
@@ -585,7 +585,7 @@ public abstract class VersionedMetaData {
Metadata.builder()
.projectName(projectName.get())
.noteDbRefName(getRefName())
.noteDbFileName(fileName)
.noteDbFilePath(fileName)
.build())) {
DirCacheEditor editor = newTree.editor();
if (raw != null && 0 < raw.length) {

View File

@@ -86,8 +86,8 @@ public abstract class Metadata {
// Boolean: one or more
public abstract Optional<Boolean> multiple();
// Name of a metadata file in NoteDb.
public abstract Optional<String> noteDbFileName();
// Path of a metadata file in NoteDb.
public abstract Optional<String> noteDbFilePath();
// Name of a metadata ref in NoteDb.
public abstract Optional<String> noteDbRefName();
@@ -174,7 +174,7 @@ public abstract class Metadata {
public abstract Builder multiple(boolean multiple);
public abstract Builder noteDbFileName(@Nullable String noteDbFileName);
public abstract Builder noteDbFilePath(@Nullable String noteDbFilePath);
public abstract Builder noteDbRefName(@Nullable String noteDbRefName);