aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/util
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2022-08-18 18:10:47 +0200
committerHan-Wen NIenhuys <hanwen@google.com>2022-08-23 04:24:37 -0400
commitddb1a0c3a27c9a226601a7d909dcbca0c7a9da18 (patch)
tree99031d1706eab893b070de5c3ca134803b11cfe9 /org.eclipse.jgit/src/org/eclipse/jgit/util
parentd718127a7ec756015561def88271e5e253fcb84b (diff)
downloadjgit-ddb1a0c3a27c9a226601a7d909dcbca0c7a9da18.tar.gz
jgit-ddb1a0c3a27c9a226601a7d909dcbca0c7a9da18.zip
WorkTreeUpdater#Result: hide data members
This is the standard across JGit. Change-Id: Ie52ad7000d8725657b33dd4f3adcc05ab9666875
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java25
1 files changed, 19 insertions, 6 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java
index 98eaf931b8..a9f56c2ac9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java
@@ -74,20 +74,33 @@ public class WorkTreeUpdater implements Closeable {
*/
public static class Result {
+ private final List<String> modifiedFiles = new LinkedList<>();
+
+
+ private final List<String> failedToDelete = new LinkedList<>();
+
+ private ObjectId treeId = null;
+
/**
- * Files modified during this operation.
+ * @return Modified tree ID if any, or null otherwise.
*/
- public List<String> modifiedFiles = new LinkedList<>();
+ public ObjectId getTreeId() {
+ return treeId;
+ }
/**
- * Files in this list were failed to be deleted.
+ * @return Files that couldn't be deleted.
*/
- public List<String> failedToDelete = new LinkedList<>();
+ public List<String> getFailedToDelete() {
+ return failedToDelete;
+ }
/**
- * Modified tree ID if any, or null otherwise.
+ * @return Files modified during this operation.
*/
- public ObjectId treeId = null;
+ public List<String> getModifiedFiles() {
+ return modifiedFiles;
+ }
}
Result result = new Result();