[findbugs] Do not ignore exceptional return value of mkdir
java.io.File.mkdir() and mkdirs() report failure as an exceptional return value false. Fix the code which silently ignored this exceptional return value. Change-Id: I41244f4b9d66176e68e2c07e2329cf08492f8619 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
f5fe2dca3c
commit
38eec8f4a2
|
@ -62,6 +62,7 @@
|
||||||
import org.eclipse.jgit.storage.file.FileBasedConfig;
|
import org.eclipse.jgit.storage.file.FileBasedConfig;
|
||||||
import org.eclipse.jgit.storage.file.LockFile;
|
import org.eclipse.jgit.storage.file.LockFile;
|
||||||
import org.eclipse.jgit.util.FS;
|
import org.eclipse.jgit.util.FS;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manages the {@code .eclipse_iplog} file in a project.
|
* Manages the {@code .eclipse_iplog} file in a project.
|
||||||
|
@ -187,8 +188,7 @@ private List<Project> parseProjects(final Config cfg,
|
||||||
*/
|
*/
|
||||||
public void syncCQs(File file, FS fs, URL base, String username,
|
public void syncCQs(File file, FS fs, URL base, String username,
|
||||||
String password) throws IOException, ConfigInvalidException {
|
String password) throws IOException, ConfigInvalidException {
|
||||||
if (!file.getParentFile().exists())
|
FileUtils.mkdirs(file.getParentFile(), true);
|
||||||
file.getParentFile().mkdirs();
|
|
||||||
|
|
||||||
LockFile lf = new LockFile(file, fs);
|
LockFile lf = new LockFile(file, fs);
|
||||||
if (!lf.lock())
|
if (!lf.lock())
|
||||||
|
|
|
@ -69,6 +69,7 @@
|
||||||
import org.eclipse.jgit.storage.file.WindowCache;
|
import org.eclipse.jgit.storage.file.WindowCache;
|
||||||
import org.eclipse.jgit.storage.file.WindowCacheConfig;
|
import org.eclipse.jgit.storage.file.WindowCacheConfig;
|
||||||
import org.eclipse.jgit.util.FS;
|
import org.eclipse.jgit.util.FS;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.eclipse.jgit.util.IO;
|
import org.eclipse.jgit.util.IO;
|
||||||
import org.eclipse.jgit.util.SystemReader;
|
import org.eclipse.jgit.util.SystemReader;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
@ -389,7 +390,7 @@ protected File write(final String body) throws IOException {
|
||||||
* the file could not be written.
|
* the file could not be written.
|
||||||
*/
|
*/
|
||||||
protected void write(final File f, final String body) throws IOException {
|
protected void write(final File f, final String body) throws IOException {
|
||||||
f.getParentFile().mkdirs();
|
FileUtils.mkdirs(f.getParentFile(), true);
|
||||||
Writer w = new OutputStreamWriter(new FileOutputStream(f), "UTF-8");
|
Writer w = new OutputStreamWriter(new FileOutputStream(f), "UTF-8");
|
||||||
try {
|
try {
|
||||||
w.write(body);
|
w.write(body);
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
import org.eclipse.jgit.revwalk.RevTag;
|
import org.eclipse.jgit.revwalk.RevTag;
|
||||||
import org.eclipse.jgit.revwalk.RevWalk;
|
import org.eclipse.jgit.revwalk.RevWalk;
|
||||||
import org.eclipse.jgit.storage.file.LockFile;
|
import org.eclipse.jgit.storage.file.LockFile;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.kohsuke.args4j.Argument;
|
import org.kohsuke.args4j.Argument;
|
||||||
import org.kohsuke.args4j.Option;
|
import org.kohsuke.args4j.Option;
|
||||||
|
|
||||||
|
@ -96,8 +97,7 @@ else if (version == null)
|
||||||
log.scan(db, rw.parseCommit(start), version);
|
log.scan(db, rw.parseCommit(start), version);
|
||||||
|
|
||||||
if (output != null) {
|
if (output != null) {
|
||||||
if (!output.getParentFile().exists())
|
FileUtils.mkdirs(output.getParentFile(), true);
|
||||||
output.getParentFile().mkdirs();
|
|
||||||
LockFile lf = new LockFile(output, db.getFS());
|
LockFile lf = new LockFile(output, db.getFS());
|
||||||
if (!lf.lock())
|
if (!lf.lock())
|
||||||
throw die(MessageFormat.format(CLIText.get().cannotLock, output));
|
throw die(MessageFormat.format(CLIText.get().cannotLock, output));
|
||||||
|
|
|
@ -90,7 +90,7 @@ public void testAddNonExistingSingleFile() throws NoFilepatternException {
|
||||||
@Test
|
@Test
|
||||||
public void testAddExistingSingleFile() throws IOException, NoFilepatternException {
|
public void testAddExistingSingleFile() throws IOException, NoFilepatternException {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -106,9 +106,9 @@ public void testAddExistingSingleFile() throws IOException, NoFilepatternExcepti
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAddExistingSingleFileInSubDir() throws IOException, NoFilepatternException {
|
public void testAddExistingSingleFileInSubDir() throws IOException, NoFilepatternException {
|
||||||
new File(db.getWorkTree(), "sub").mkdir();
|
FileUtils.mkdir(new File(db.getWorkTree(), "sub"));
|
||||||
File file = new File(db.getWorkTree(), "sub/a.txt");
|
File file = new File(db.getWorkTree(), "sub/a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -125,7 +125,7 @@ public void testAddExistingSingleFileInSubDir() throws IOException, NoFilepatter
|
||||||
@Test
|
@Test
|
||||||
public void testAddExistingSingleFileTwice() throws IOException, NoFilepatternException {
|
public void testAddExistingSingleFileTwice() throws IOException, NoFilepatternException {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -149,7 +149,7 @@ public void testAddExistingSingleFileTwice() throws IOException, NoFilepatternEx
|
||||||
@Test
|
@Test
|
||||||
public void testAddExistingSingleFileTwiceWithCommit() throws Exception {
|
public void testAddExistingSingleFileTwiceWithCommit() throws Exception {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -175,7 +175,7 @@ public void testAddExistingSingleFileTwiceWithCommit() throws Exception {
|
||||||
@Test
|
@Test
|
||||||
public void testAddRemovedFile() throws Exception {
|
public void testAddRemovedFile() throws Exception {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -197,7 +197,7 @@ public void testAddRemovedFile() throws Exception {
|
||||||
@Test
|
@Test
|
||||||
public void testAddRemovedCommittedFile() throws Exception {
|
public void testAddRemovedCommittedFile() throws Exception {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -223,13 +223,13 @@ public void testAddWithConflicts() throws Exception {
|
||||||
// prepare conflict
|
// prepare conflict
|
||||||
|
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "b.txt");
|
File file2 = new File(db.getWorkTree(), "b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -275,13 +275,13 @@ public void testAddWithConflicts() throws Exception {
|
||||||
@Test
|
@Test
|
||||||
public void testAddTwoFiles() throws Exception {
|
public void testAddTwoFiles() throws Exception {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "b.txt");
|
File file2 = new File(db.getWorkTree(), "b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -296,15 +296,15 @@ public void testAddTwoFiles() throws Exception {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAddFolder() throws Exception {
|
public void testAddFolder() throws Exception {
|
||||||
new File(db.getWorkTree(), "sub").mkdir();
|
FileUtils.mkdir(new File(db.getWorkTree(), "sub"));
|
||||||
File file = new File(db.getWorkTree(), "sub/a.txt");
|
File file = new File(db.getWorkTree(), "sub/a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -319,21 +319,21 @@ public void testAddFolder() throws Exception {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAddIgnoredFile() throws Exception {
|
public void testAddIgnoredFile() throws Exception {
|
||||||
new File(db.getWorkTree(), "sub").mkdir();
|
FileUtils.mkdir(new File(db.getWorkTree(), "sub"));
|
||||||
File file = new File(db.getWorkTree(), "sub/a.txt");
|
File file = new File(db.getWorkTree(), "sub/a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File ignoreFile = new File(db.getWorkTree(), ".gitignore");
|
File ignoreFile = new File(db.getWorkTree(), ".gitignore");
|
||||||
ignoreFile.createNewFile();
|
FileUtils.createNewFile(ignoreFile);
|
||||||
writer = new PrintWriter(ignoreFile);
|
writer = new PrintWriter(ignoreFile);
|
||||||
writer.print("sub/b.txt");
|
writer.print("sub/b.txt");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -348,15 +348,15 @@ public void testAddIgnoredFile() throws Exception {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAddWholeRepo() throws Exception {
|
public void testAddWholeRepo() throws Exception {
|
||||||
new File(db.getWorkTree(), "sub").mkdir();
|
FileUtils.mkdir(new File(db.getWorkTree(), "sub"));
|
||||||
File file = new File(db.getWorkTree(), "sub/a.txt");
|
File file = new File(db.getWorkTree(), "sub/a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -375,15 +375,15 @@ public void testAddWholeRepo() throws Exception {
|
||||||
// file c exists in workdir but not in index -> added
|
// file c exists in workdir but not in index -> added
|
||||||
@Test
|
@Test
|
||||||
public void testAddWithoutParameterUpdate() throws Exception {
|
public void testAddWithoutParameterUpdate() throws Exception {
|
||||||
new File(db.getWorkTree(), "sub").mkdir();
|
FileUtils.mkdir(new File(db.getWorkTree(), "sub"));
|
||||||
File file = new File(db.getWorkTree(), "sub/a.txt");
|
File file = new File(db.getWorkTree(), "sub/a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -400,7 +400,7 @@ public void testAddWithoutParameterUpdate() throws Exception {
|
||||||
|
|
||||||
// new unstaged file sub/c.txt
|
// new unstaged file sub/c.txt
|
||||||
File file3 = new File(db.getWorkTree(), "sub/c.txt");
|
File file3 = new File(db.getWorkTree(), "sub/c.txt");
|
||||||
file3.createNewFile();
|
FileUtils.createNewFile(file3);
|
||||||
writer = new PrintWriter(file3);
|
writer = new PrintWriter(file3);
|
||||||
writer.print("content c");
|
writer.print("content c");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -429,15 +429,15 @@ public void testAddWithoutParameterUpdate() throws Exception {
|
||||||
// file c exists in workdir but not in index -> unchanged
|
// file c exists in workdir but not in index -> unchanged
|
||||||
@Test
|
@Test
|
||||||
public void testAddWithParameterUpdate() throws Exception {
|
public void testAddWithParameterUpdate() throws Exception {
|
||||||
new File(db.getWorkTree(), "sub").mkdir();
|
FileUtils.mkdir(new File(db.getWorkTree(), "sub"));
|
||||||
File file = new File(db.getWorkTree(), "sub/a.txt");
|
File file = new File(db.getWorkTree(), "sub/a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
||||||
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
File file2 = new File(db.getWorkTree(), "sub/b.txt");
|
||||||
file2.createNewFile();
|
FileUtils.createNewFile(file2);
|
||||||
writer = new PrintWriter(file2);
|
writer = new PrintWriter(file2);
|
||||||
writer.print("content b");
|
writer.print("content b");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
@ -454,7 +454,7 @@ public void testAddWithParameterUpdate() throws Exception {
|
||||||
|
|
||||||
// new unstaged file sub/c.txt
|
// new unstaged file sub/c.txt
|
||||||
File file3 = new File(db.getWorkTree(), "sub/c.txt");
|
File file3 = new File(db.getWorkTree(), "sub/c.txt");
|
||||||
file3.createNewFile();
|
FileUtils.createNewFile(file3);
|
||||||
writer = new PrintWriter(file3);
|
writer = new PrintWriter(file3);
|
||||||
writer.print("content c");
|
writer.print("content c");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
import org.eclipse.jgit.lib.RepositoryTestCase;
|
import org.eclipse.jgit.lib.RepositoryTestCase;
|
||||||
import org.eclipse.jgit.revwalk.RevCommit;
|
import org.eclipse.jgit.revwalk.RevCommit;
|
||||||
import org.eclipse.jgit.treewalk.TreeWalk;
|
import org.eclipse.jgit.treewalk.TreeWalk;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
|
|
||||||
public class CommitAndLogCommandTests extends RepositoryTestCase {
|
public class CommitAndLogCommandTests extends RepositoryTestCase {
|
||||||
public void testSomeCommits() throws NoHeadException, NoMessageException,
|
public void testSomeCommits() throws NoHeadException, NoMessageException,
|
||||||
|
@ -169,7 +170,7 @@ public void testAddUnstagedChanges() throws IOException, NoHeadException,
|
||||||
JGitInternalException, WrongRepositoryStateException,
|
JGitInternalException, WrongRepositoryStateException,
|
||||||
NoFilepatternException {
|
NoFilepatternException {
|
||||||
File file = new File(db.getWorkTree(), "a.txt");
|
File file = new File(db.getWorkTree(), "a.txt");
|
||||||
file.createNewFile();
|
FileUtils.createNewFile(file);
|
||||||
PrintWriter writer = new PrintWriter(file);
|
PrintWriter writer = new PrintWriter(file);
|
||||||
writer.print("content");
|
writer.print("content");
|
||||||
writer.close();
|
writer.close();
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
|
|
||||||
import org.eclipse.jgit.lib.Repository;
|
import org.eclipse.jgit.lib.Repository;
|
||||||
import org.eclipse.jgit.lib.RepositoryTestCase;
|
import org.eclipse.jgit.lib.RepositoryTestCase;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -93,16 +94,8 @@ public void testInitBareRepository() {
|
||||||
public static File createTempDirectory(String name) throws IOException {
|
public static File createTempDirectory(String name) throws IOException {
|
||||||
final File temp;
|
final File temp;
|
||||||
temp = File.createTempFile(name, Long.toString(System.nanoTime()));
|
temp = File.createTempFile(name, Long.toString(System.nanoTime()));
|
||||||
|
FileUtils.delete(temp);
|
||||||
if (!(temp.delete())) {
|
FileUtils.mkdir(temp);
|
||||||
throw new IOException("Could not delete temp file: "
|
|
||||||
+ temp.getAbsolutePath());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(temp.mkdir())) {
|
|
||||||
throw new IOException("Could not create temp directory: "
|
|
||||||
+ temp.getAbsolutePath());
|
|
||||||
}
|
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
import org.eclipse.jgit.treewalk.FileTreeIterator;
|
import org.eclipse.jgit.treewalk.FileTreeIterator;
|
||||||
import org.eclipse.jgit.treewalk.FileTreeIteratorWithTimeControl;
|
import org.eclipse.jgit.treewalk.FileTreeIteratorWithTimeControl;
|
||||||
import org.eclipse.jgit.treewalk.NameConflictTreeWalk;
|
import org.eclipse.jgit.treewalk.NameConflictTreeWalk;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
|
|
||||||
public class RacyGitTests extends RepositoryTestCase {
|
public class RacyGitTests extends RepositoryTestCase {
|
||||||
public void testIterator() throws IllegalStateException, IOException,
|
public void testIterator() throws IllegalStateException, IOException,
|
||||||
|
@ -61,19 +62,19 @@ public void testIterator() throws IllegalStateException, IOException,
|
||||||
File lastFile = null;
|
File lastFile = null;
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
lastFile = new File(db.getWorkTree(), "0." + i);
|
lastFile = new File(db.getWorkTree(), "0." + i);
|
||||||
lastFile.createNewFile();
|
FileUtils.createNewFile(lastFile);
|
||||||
if (i == 5)
|
if (i == 5)
|
||||||
fsTick(lastFile);
|
fsTick(lastFile);
|
||||||
}
|
}
|
||||||
modTimes.add(fsTick(lastFile));
|
modTimes.add(fsTick(lastFile));
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
lastFile = new File(db.getWorkTree(), "1." + i);
|
lastFile = new File(db.getWorkTree(), "1." + i);
|
||||||
lastFile.createNewFile();
|
FileUtils.createNewFile(lastFile);
|
||||||
}
|
}
|
||||||
modTimes.add(fsTick(lastFile));
|
modTimes.add(fsTick(lastFile));
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
lastFile = new File(db.getWorkTree(), "2." + i);
|
lastFile = new File(db.getWorkTree(), "2." + i);
|
||||||
lastFile.createNewFile();
|
FileUtils.createNewFile(lastFile);
|
||||||
if (i % 4 == 0)
|
if (i % 4 == 0)
|
||||||
fsTick(lastFile);
|
fsTick(lastFile);
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,7 @@
|
||||||
import org.eclipse.jgit.lib.ObjectReader;
|
import org.eclipse.jgit.lib.ObjectReader;
|
||||||
import org.eclipse.jgit.revwalk.RevBlob;
|
import org.eclipse.jgit.revwalk.RevBlob;
|
||||||
import org.eclipse.jgit.transport.PackedObjectInfo;
|
import org.eclipse.jgit.transport.PackedObjectInfo;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -176,7 +177,7 @@ public void testAbbreviateIsActuallyUnique() throws Exception {
|
||||||
File packDir = new File(db.getObjectDatabase().getDirectory(), "pack");
|
File packDir = new File(db.getObjectDatabase().getDirectory(), "pack");
|
||||||
File idxFile = new File(packDir, packName + ".idx");
|
File idxFile = new File(packDir, packName + ".idx");
|
||||||
File packFile = new File(packDir, packName + ".pack");
|
File packFile = new File(packDir, packName + ".pack");
|
||||||
packDir.mkdir();
|
FileUtils.mkdir(packDir, true);
|
||||||
OutputStream dst = new BufferedOutputStream(new FileOutputStream(
|
OutputStream dst = new BufferedOutputStream(new FileOutputStream(
|
||||||
idxFile));
|
idxFile));
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import org.eclipse.jgit.junit.LocalDiskRepositoryTestCase;
|
import org.eclipse.jgit.junit.LocalDiskRepositoryTestCase;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class FileRepositoryBuilderTest extends LocalDiskRepositoryTestCase {
|
public class FileRepositoryBuilderTest extends LocalDiskRepositoryTestCase {
|
||||||
|
@ -55,7 +56,7 @@ public class FileRepositoryBuilderTest extends LocalDiskRepositoryTestCase {
|
||||||
public void testShouldAutomagicallyDetectGitDirectory() throws Exception {
|
public void testShouldAutomagicallyDetectGitDirectory() throws Exception {
|
||||||
FileRepository r = createWorkRepository();
|
FileRepository r = createWorkRepository();
|
||||||
File d = new File(r.getDirectory(), "sub-dir");
|
File d = new File(r.getDirectory(), "sub-dir");
|
||||||
d.mkdir();
|
FileUtils.mkdir(d);
|
||||||
|
|
||||||
assertEquals(r.getDirectory(), new FileRepositoryBuilder()
|
assertEquals(r.getDirectory(), new FileRepositoryBuilder()
|
||||||
.findGitDir(d).getGitDir());
|
.findGitDir(d).getGitDir());
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
import org.eclipse.jgit.lib.Constants;
|
import org.eclipse.jgit.lib.Constants;
|
||||||
import org.eclipse.jgit.lib.Repository;
|
import org.eclipse.jgit.lib.Repository;
|
||||||
import org.eclipse.jgit.util.FS;
|
import org.eclipse.jgit.util.FS;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -182,12 +183,12 @@ public void testExceptionThrown_BareRepoGetIndexFile() throws Exception {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private File getFile(String... pathComponents) {
|
private File getFile(String... pathComponents) throws IOException {
|
||||||
String rootPath = new File(new File("target"), "trash").getPath();
|
String rootPath = new File(new File("target"), "trash").getPath();
|
||||||
for (String pathComponent : pathComponents)
|
for (String pathComponent : pathComponents)
|
||||||
rootPath = rootPath + File.separatorChar + pathComponent;
|
rootPath = rootPath + File.separatorChar + pathComponent;
|
||||||
File result = new File(rootPath);
|
File result = new File(rootPath);
|
||||||
result.mkdir();
|
FileUtils.mkdirs(result, true);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
import org.eclipse.jgit.revwalk.RevCommit;
|
import org.eclipse.jgit.revwalk.RevCommit;
|
||||||
import org.eclipse.jgit.revwalk.RevTag;
|
import org.eclipse.jgit.revwalk.RevTag;
|
||||||
import org.eclipse.jgit.revwalk.RevWalk;
|
import org.eclipse.jgit.revwalk.RevWalk;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class T0003_BasicTest extends SampleDataRepositoryTestCase {
|
public class T0003_BasicTest extends SampleDataRepositoryTestCase {
|
||||||
|
@ -202,7 +203,7 @@ public void test000_openrepo_default_absolute_workdirconfig()
|
||||||
throws IOException {
|
throws IOException {
|
||||||
File repo1Parent = new File(trash.getParentFile(), "r1");
|
File repo1Parent = new File(trash.getParentFile(), "r1");
|
||||||
File workdir = new File(trash.getParentFile(), "rw");
|
File workdir = new File(trash.getParentFile(), "rw");
|
||||||
workdir.mkdir();
|
FileUtils.mkdir(workdir);
|
||||||
FileRepository repo1initial = new FileRepository(new File(repo1Parent,
|
FileRepository repo1initial = new FileRepository(new File(repo1Parent,
|
||||||
Constants.DOT_GIT));
|
Constants.DOT_GIT));
|
||||||
repo1initial.create();
|
repo1initial.create();
|
||||||
|
@ -231,7 +232,7 @@ public void test000_openrepo_default_relative_workdirconfig()
|
||||||
throws IOException {
|
throws IOException {
|
||||||
File repo1Parent = new File(trash.getParentFile(), "r1");
|
File repo1Parent = new File(trash.getParentFile(), "r1");
|
||||||
File workdir = new File(trash.getParentFile(), "rw");
|
File workdir = new File(trash.getParentFile(), "rw");
|
||||||
workdir.mkdir();
|
FileUtils.mkdir(workdir);
|
||||||
FileRepository repo1initial = new FileRepository(new File(repo1Parent,
|
FileRepository repo1initial = new FileRepository(new File(repo1Parent,
|
||||||
Constants.DOT_GIT));
|
Constants.DOT_GIT));
|
||||||
repo1initial.create();
|
repo1initial.create();
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
import org.eclipse.jgit.lib.ObjectInserter;
|
import org.eclipse.jgit.lib.ObjectInserter;
|
||||||
import org.eclipse.jgit.lib.ObjectLoader;
|
import org.eclipse.jgit.lib.ObjectLoader;
|
||||||
import org.eclipse.jgit.lib.ObjectStream;
|
import org.eclipse.jgit.lib.ObjectStream;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.eclipse.jgit.util.IO;
|
import org.eclipse.jgit.util.IO;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
@ -567,7 +568,7 @@ private File path(ObjectId id) {
|
||||||
|
|
||||||
private void write(ObjectId id, byte[] data) throws IOException {
|
private void write(ObjectId id, byte[] data) throws IOException {
|
||||||
File path = path(id);
|
File path = path(id);
|
||||||
path.getParentFile().mkdirs();
|
FileUtils.mkdirs(path.getParentFile());
|
||||||
FileOutputStream out = new FileOutputStream(path);
|
FileOutputStream out = new FileOutputStream(path);
|
||||||
try {
|
try {
|
||||||
out.write(data);
|
out.write(data);
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
|
|
||||||
import org.eclipse.jgit.lib.RepositoryTestCase;
|
import org.eclipse.jgit.lib.RepositoryTestCase;
|
||||||
import org.eclipse.jgit.transport.OpenSshConfig.Host;
|
import org.eclipse.jgit.transport.OpenSshConfig.Host;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -69,10 +70,10 @@ public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
|
|
||||||
home = new File(trash, "home");
|
home = new File(trash, "home");
|
||||||
home.mkdir();
|
FileUtils.mkdir(home);
|
||||||
|
|
||||||
configFile = new File(new File(home, ".ssh"), "config");
|
configFile = new File(new File(home, ".ssh"), "config");
|
||||||
configFile.getParentFile().mkdir();
|
FileUtils.mkdir(configFile.getParentFile());
|
||||||
|
|
||||||
System.setProperty("user.name", "jex_junit");
|
System.setProperty("user.name", "jex_junit");
|
||||||
osc = new OpenSshConfig(home, configFile);
|
osc = new OpenSshConfig(home, configFile);
|
||||||
|
|
|
@ -110,8 +110,7 @@ public void testEmptyIfRootDoesNotExist() throws Exception {
|
||||||
public void testEmptyIfRootIsEmpty() throws Exception {
|
public void testEmptyIfRootIsEmpty() throws Exception {
|
||||||
final File r = new File(trash, "not-existing-file");
|
final File r = new File(trash, "not-existing-file");
|
||||||
assertFalse(r.exists());
|
assertFalse(r.exists());
|
||||||
r.mkdir();
|
FileUtils.mkdir(r);
|
||||||
assertTrue(r.isDirectory());
|
|
||||||
|
|
||||||
final FileTreeIterator fti = new FileTreeIterator(r, db.getFS(),
|
final FileTreeIterator fti = new FileTreeIterator(r, db.getFS(),
|
||||||
db.getConfig().get(WorkingTreeOptions.KEY));
|
db.getConfig().get(WorkingTreeOptions.KEY));
|
||||||
|
|
|
@ -71,7 +71,7 @@ public void tearDown() throws Exception {
|
||||||
@Test
|
@Test
|
||||||
public void testDeleteFile() throws IOException {
|
public void testDeleteFile() throws IOException {
|
||||||
File f = new File(trash, "test");
|
File f = new File(trash, "test");
|
||||||
assertTrue(f.createNewFile());
|
FileUtils.createNewFile(f);
|
||||||
FileUtils.delete(f);
|
FileUtils.delete(f);
|
||||||
assertFalse(f.exists());
|
assertFalse(f.exists());
|
||||||
|
|
||||||
|
@ -92,10 +92,10 @@ public void testDeleteFile() throws IOException {
|
||||||
@Test
|
@Test
|
||||||
public void testDeleteRecursive() throws IOException {
|
public void testDeleteRecursive() throws IOException {
|
||||||
File f1 = new File(trash, "test/test/a");
|
File f1 = new File(trash, "test/test/a");
|
||||||
f1.mkdirs();
|
FileUtils.mkdirs(f1.getParentFile());
|
||||||
f1.createNewFile();
|
FileUtils.createNewFile(f1);
|
||||||
File f2 = new File(trash, "test/test/b");
|
File f2 = new File(trash, "test/test/b");
|
||||||
f2.createNewFile();
|
FileUtils.createNewFile(f2);
|
||||||
File d = new File(trash, "test");
|
File d = new File(trash, "test");
|
||||||
FileUtils.delete(d, FileUtils.RECURSIVE);
|
FileUtils.delete(d, FileUtils.RECURSIVE);
|
||||||
assertFalse(d.exists());
|
assertFalse(d.exists());
|
||||||
|
@ -132,7 +132,7 @@ public void testMkdir() throws IOException {
|
||||||
|
|
||||||
assertTrue(d.delete());
|
assertTrue(d.delete());
|
||||||
File f = new File(trash, "test");
|
File f = new File(trash, "test");
|
||||||
assertTrue(f.createNewFile());
|
FileUtils.createNewFile(f);
|
||||||
try {
|
try {
|
||||||
FileUtils.mkdir(d);
|
FileUtils.mkdir(d);
|
||||||
fail("creation of directory having same path as existing file must"
|
fail("creation of directory having same path as existing file must"
|
||||||
|
@ -164,7 +164,7 @@ public void testMkdirs() throws IOException {
|
||||||
|
|
||||||
FileUtils.delete(root, FileUtils.RECURSIVE);
|
FileUtils.delete(root, FileUtils.RECURSIVE);
|
||||||
File f = new File(trash, "test");
|
File f = new File(trash, "test");
|
||||||
assertTrue(f.createNewFile());
|
FileUtils.createNewFile(f);
|
||||||
try {
|
try {
|
||||||
FileUtils.mkdirs(d);
|
FileUtils.mkdirs(d);
|
||||||
fail("creation of directory having path conflicting with existing"
|
fail("creation of directory having path conflicting with existing"
|
||||||
|
|
|
@ -9,6 +9,13 @@
|
||||||
<Bug pattern="DM_GC" />
|
<Bug pattern="DM_GC" />
|
||||||
</Match>
|
</Match>
|
||||||
|
|
||||||
|
<!-- Silence ignoring return value of mkdirs -->
|
||||||
|
<Match>
|
||||||
|
<Class name="org.eclipse.jgit.dircache.DirCacheCheckout" />
|
||||||
|
<Method name="checkout" />
|
||||||
|
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE" />
|
||||||
|
</Match>
|
||||||
|
|
||||||
<!-- Silence the construction of our magic String instance.
|
<!-- Silence the construction of our magic String instance.
|
||||||
-->
|
-->
|
||||||
<Match>
|
<Match>
|
||||||
|
|
|
@ -509,7 +509,7 @@ private RebaseResult initFilesAndRewind() throws RefNotFoundException,
|
||||||
|
|
||||||
Collections.reverse(cherryPickList);
|
Collections.reverse(cherryPickList);
|
||||||
// create the folder for the meta information
|
// create the folder for the meta information
|
||||||
rebaseDir.mkdir();
|
FileUtils.mkdir(rebaseDir);
|
||||||
|
|
||||||
createFile(repo.getDirectory(), Constants.ORIG_HEAD, headId.name());
|
createFile(repo.getDirectory(), Constants.ORIG_HEAD, headId.name());
|
||||||
createFile(rebaseDir, REBASE_HEAD, headId.name());
|
createFile(rebaseDir, REBASE_HEAD, headId.name());
|
||||||
|
|
|
@ -419,7 +419,9 @@ public boolean checkout() throws IOException {
|
||||||
for (String path : updated.keySet()) {
|
for (String path : updated.keySet()) {
|
||||||
// ... create/overwrite this file ...
|
// ... create/overwrite this file ...
|
||||||
file = new File(repo.getWorkTree(), path);
|
file = new File(repo.getWorkTree(), path);
|
||||||
file.getParentFile().mkdirs();
|
if (!file.getParentFile().mkdirs()) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
file.createNewFile();
|
file.createNewFile();
|
||||||
DirCacheEntry entry = dc.getEntry(path);
|
DirCacheEntry entry = dc.getEntry(path);
|
||||||
checkoutEntry(repo, file, entry);
|
checkoutEntry(repo, file, entry);
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
import org.eclipse.jgit.errors.CorruptObjectException;
|
import org.eclipse.jgit.errors.CorruptObjectException;
|
||||||
import org.eclipse.jgit.errors.NotSupportedException;
|
import org.eclipse.jgit.errors.NotSupportedException;
|
||||||
import org.eclipse.jgit.events.IndexChangedEvent;
|
import org.eclipse.jgit.events.IndexChangedEvent;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.eclipse.jgit.util.RawParseUtils;
|
import org.eclipse.jgit.util.RawParseUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -937,7 +938,7 @@ public void checkoutEntry(File wd, Entry e) throws IOException {
|
||||||
ObjectLoader ol = db.open(e.sha1, Constants.OBJ_BLOB);
|
ObjectLoader ol = db.open(e.sha1, Constants.OBJ_BLOB);
|
||||||
File file = new File(wd, e.getName());
|
File file = new File(wd, e.getName());
|
||||||
file.delete();
|
file.delete();
|
||||||
file.getParentFile().mkdirs();
|
FileUtils.mkdirs(file.getParentFile(), true);
|
||||||
FileOutputStream dst = new FileOutputStream(file);
|
FileOutputStream dst = new FileOutputStream(file);
|
||||||
try {
|
try {
|
||||||
ol.copyTo(dst);
|
ol.copyTo(dst);
|
||||||
|
|
|
@ -239,11 +239,11 @@ public void create(boolean bare) throws IOException {
|
||||||
throw new IllegalStateException(MessageFormat.format(
|
throw new IllegalStateException(MessageFormat.format(
|
||||||
JGitText.get().repositoryAlreadyExists, getDirectory()));
|
JGitText.get().repositoryAlreadyExists, getDirectory()));
|
||||||
}
|
}
|
||||||
getDirectory().mkdirs();
|
FileUtils.mkdirs(getDirectory(), true);
|
||||||
refs.create();
|
refs.create();
|
||||||
objectDatabase.create();
|
objectDatabase.create();
|
||||||
|
|
||||||
new File(getDirectory(), "branches").mkdir();
|
FileUtils.mkdir(new File(getDirectory(), "branches"));
|
||||||
|
|
||||||
RefUpdate head = updateRef(Constants.HEAD);
|
RefUpdate head = updateRef(Constants.HEAD);
|
||||||
head.disableRefLog();
|
head.disableRefLog();
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
import org.eclipse.jgit.lib.Constants;
|
import org.eclipse.jgit.lib.Constants;
|
||||||
import org.eclipse.jgit.lib.ObjectId;
|
import org.eclipse.jgit.lib.ObjectId;
|
||||||
import org.eclipse.jgit.util.FS;
|
import org.eclipse.jgit.util.FS;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Git style file locking and replacement.
|
* Git style file locking and replacement.
|
||||||
|
@ -122,7 +123,7 @@ public LockFile(final File f, FS fs) {
|
||||||
* does not hold the lock.
|
* does not hold the lock.
|
||||||
*/
|
*/
|
||||||
public boolean lock() throws IOException {
|
public boolean lock() throws IOException {
|
||||||
lck.getParentFile().mkdirs();
|
FileUtils.mkdirs(lck.getParentFile(), true);
|
||||||
if (lck.createNewFile()) {
|
if (lck.createNewFile()) {
|
||||||
haveLck = true;
|
haveLck = true;
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -171,9 +171,9 @@ public boolean exists() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void create() throws IOException {
|
public void create() throws IOException {
|
||||||
objects.mkdirs();
|
FileUtils.mkdirs(objects);
|
||||||
infoDirectory.mkdir();
|
FileUtils.mkdir(infoDirectory);
|
||||||
packDirectory.mkdir();
|
FileUtils.mkdir(packDirectory);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -491,7 +491,7 @@ InsertLooseObjectResult insertUnpackedObject(File tmp, ObjectId id,
|
||||||
// directories are always lazily created. Note that we
|
// directories are always lazily created. Note that we
|
||||||
// try the rename first as the directory likely does exist.
|
// try the rename first as the directory likely does exist.
|
||||||
//
|
//
|
||||||
dst.getParentFile().mkdir();
|
FileUtils.mkdir(dst.getParentFile());
|
||||||
if (tmp.renameTo(dst)) {
|
if (tmp.renameTo(dst)) {
|
||||||
dst.setReadOnly();
|
dst.setReadOnly();
|
||||||
unpackedObjectCache.add(id);
|
unpackedObjectCache.add(id);
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
import org.eclipse.jgit.revwalk.RevTag;
|
import org.eclipse.jgit.revwalk.RevTag;
|
||||||
import org.eclipse.jgit.revwalk.RevWalk;
|
import org.eclipse.jgit.revwalk.RevWalk;
|
||||||
import org.eclipse.jgit.util.FS;
|
import org.eclipse.jgit.util.FS;
|
||||||
|
import org.eclipse.jgit.util.FileUtils;
|
||||||
import org.eclipse.jgit.util.IO;
|
import org.eclipse.jgit.util.IO;
|
||||||
import org.eclipse.jgit.util.RawParseUtils;
|
import org.eclipse.jgit.util.RawParseUtils;
|
||||||
import org.eclipse.jgit.util.RefList;
|
import org.eclipse.jgit.util.RefList;
|
||||||
|
@ -190,13 +191,14 @@ Repository getRepository() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void create() throws IOException {
|
public void create() throws IOException {
|
||||||
refsDir.mkdir();
|
FileUtils.mkdir(refsDir);
|
||||||
logsDir.mkdir();
|
FileUtils.mkdir(logsDir);
|
||||||
logsRefsDir.mkdir();
|
FileUtils.mkdir(logsRefsDir);
|
||||||
|
|
||||||
new File(refsDir, R_HEADS.substring(R_REFS.length())).mkdir();
|
FileUtils.mkdir(new File(refsDir, R_HEADS.substring(R_REFS.length())));
|
||||||
new File(refsDir, R_TAGS.substring(R_REFS.length())).mkdir();
|
FileUtils.mkdir(new File(refsDir, R_TAGS.substring(R_REFS.length())));
|
||||||
new File(logsRefsDir, R_HEADS.substring(R_REFS.length())).mkdir();
|
FileUtils.mkdir(new File(logsRefsDir,
|
||||||
|
R_HEADS.substring(R_REFS.length())));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue