diff options
author | Shawn Pearce <sop@google.com> | 2014-11-25 09:53:57 -0800 |
---|---|---|
committer | Shawn Pearce <sop@google.com> | 2014-11-25 10:21:48 -0800 |
commit | 61b632ee5a915cb5e30676aab4349402bcd8196f (patch) | |
tree | c0f5276040ac8032d89d6cd7fe573ca3cd346ea8 /org.eclipse.jgit.test/exttst | |
parent | 4206ea43b81eadf5c3e9d80cf286968cb134a45c (diff) | |
download | jgit-61b632ee5a915cb5e30676aab4349402bcd8196f.tar.gz jgit-61b632ee5a915cb5e30676aab4349402bcd8196f.zip |
Deprecate TemporaryBuffer.LocalFile without parent directory
Encourage callers to explicitly name a directory to hold any
overflow data. Call sites have more information about what is
going into the buffer and how it should be protected at the
filesystem level than just throwing content to the system wide
temporary directory.
Callers that still really don't care (or need to care) can pass
null for the File argument to have the system directory used.
Change-Id: I89009bbee49d3850d42cd82c2c462e51043acda0
Diffstat (limited to 'org.eclipse.jgit.test/exttst')
-rw-r--r-- | org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java b/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java index dc5821b5cc..76930f2b86 100644 --- a/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java +++ b/org.eclipse.jgit.test/exttst/org/eclipse/jgit/patch/EGitPatchHistoryTest.java @@ -216,7 +216,7 @@ public class EGitPatchHistoryTest { buf.destroy(); } commitId = line.substring("commit ".length()); - buf = new TemporaryBuffer.LocalFile(); + buf = new TemporaryBuffer.LocalFile(null); } else if (buf != null) { buf.write(line.getBytes("ISO-8859-1")); buf.write('\n'); |