- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for DELETE (0.16 sec)
-
android/guava-tests/test/com/google/common/io/IoTestCase.java
@CanIgnoreReturnValue private boolean delete(File file) { if (file.isDirectory()) { File[] files = file.listFiles(); if (files != null) { for (File f : files) { if (!delete(f)) { return false; } } } } if (!file.delete()) { logger.log(Level.WARNING, "couldn't delete file: {0}", new Object[] {file}); return false;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
if (!from.renameTo(to)) { copy(from, to); if (!from.delete()) { if (!to.delete()) { throw new IOException("Unable to delete " + to); } throw new IOException("Unable to delete " + from); } } } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 33.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/IoTestCase.java
@CanIgnoreReturnValue private boolean delete(File file) { if (file.isDirectory()) { File[] files = file.listFiles(); if (files != null) { for (File f : files) { if (!delete(f)) { return false; } } } } if (!file.delete()) { logger.log(Level.WARNING, "couldn't delete file: {0}", new Object[] {file}); return false;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 5.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
assertThat( new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader()) .scanResources()) .hasSize(1); } finally { jarFile.delete(); } } public void testScanFromFile_fileNotExists() throws IOException { ClassLoader classLoader = ClassPathTest.class.getClassLoader(); assertThat(
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Jul 07 16:50:33 GMT 2023 - 24.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
assertThat( new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader()) .scanResources()) .hasSize(1); } finally { jarFile.delete(); } } @AndroidIncompatible // Path (for symlink creation) public void testScanDirectory_symlinkCycle() throws IOException { if (isWindows()) {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Jul 10 17:06:37 GMT 2023 - 27.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/SourceSinkFactories.java
} protected File getFile() { return fileThreadLocal.get(); } public final void tearDown() throws IOException { if (!fileThreadLocal.get().delete()) { logger.warning("Unable to delete file: " + fileThreadLocal.get()); } fileThreadLocal.remove(); } } private static class FileByteSourceFactory extends FileFactory implements ByteSourceFactory {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Apr 06 12:56:11 GMT 2023 - 12.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
E x = items[takeIndex]; items[takeIndex] = null; takeIndex = inc(takeIndex); --count; return x; } /** * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying * monitor. */ void removeAt(int i) { final E[] items = this.items; // if removing front item, just advance if (i == takeIndex) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 22.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactLinkedHashMap.java
setSucceeds(lastEntry, entryIndex); setSucceeds(entryIndex, ENDPOINT); } @Override void accessEntry(int index) { if (accessOrder) { // delete from previous position... setSucceeds(getPredecessor(index), getSuccessor(index)); // ...and insert at the end. setSucceeds(lastEntry, index); setSucceeds(index, ENDPOINT);
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 10.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
E x = items[takeIndex]; items[takeIndex] = null; takeIndex = inc(takeIndex); --count; return x; } /** * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying * monitor. */ void removeAt(int i) { final E[] items = this.items; // if removing front item, just advance if (i == takeIndex) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 22.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/HashBiMap.java
if (oldEntryForValue != null) { if (force) { delete(oldEntryForValue); } else { throw new IllegalArgumentException("value already present: " + value); } } BiEntry<K, V> newEntry = new BiEntry<>(key, keyHash, value, valueHash); if (oldEntryForKey != null) { delete(oldEntryForKey); insert(newEntry, oldEntryForKey);
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 24.5K bytes - Viewed (0)