- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 2,098 for try (0.01 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java
private static void joinUninterruptibly(Thread thread, long timeout, TimeUnit unit) { boolean interrupted = false; try { long remainingNanos = unit.toNanos(timeout); long end = System.nanoTime() + remainingNanos; while (true) { try { // TimeUnit.timedJoin() treats negative timeouts just like zero. NANOSECONDS.timedJoin(thread, remainingNanos);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java
Facade<Integer> facade = list.get(i); try { facade.get(); r++; } catch (CancellationException e) { r += 2; } } return r; } @Benchmark public long timeGetWith0Timeout(long reps) throws Exception { Facade<?> f = notDoneFuture; long r = 0; for (int i = 0; i < reps; i++) { try { f.get(0, SECONDS); r += 1;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractor.java
try { final String filename = getDecodeText(bodyPart.getFileName()); final String mimeType = mimeTypeHelper.getContentType(null, filename); if (mimeType != null) { final Extractor extractor = extractorFactory.getExtractor(mimeType); if (extractor != null) { try (final InputStream in = bodyPart.getInputStream()) {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 12.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
// (which seems to make more sense). try { UnsignedInts.parseUnsignedInt("0", Character.MIN_RADIX - 1); fail(); } catch (NumberFormatException expected) { } catch (IllegalArgumentException expected) { // Kotlin native, see above } try { UnsignedInts.parseUnsignedInt("0", Character.MAX_RADIX + 1); fail();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
abstract File createTempFile(String prefix) throws IOException; private static TempFileCreator pickSecureCreator() { try { Class.forName("java.nio.file.Path"); return new JavaNioCreator(); } catch (ClassNotFoundException runningUnderAndroid) { // Try another way. } try { int version = (int) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); int jellyBean =
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 29 18:50:14 UTC 2025 - 11.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Dec 09 16:35:21 UTC 2025 - 46.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProcessHelper.java
try { ist.interrupt(); } catch (final Exception e) { logger.warn("Could not interrupt a thread of an input stream.", e); } final CountDownLatch latch = new CountDownLatch(3); final Process process = jobProcess.getProcess(); new Thread(() -> { try {Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 20 06:54:47 UTC 2025 - 10.9K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java
} /** * Test that validateInputStream throws CrawlerSystemException for null input. */ public void test_validateInputStream_throwsExceptionForNull() { try { extractor.testValidateInputStream(null); fail("Expected CrawlerSystemException"); } catch (final CrawlerSystemException e) { assertEquals("The inputstream is null.", e.getMessage());Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 8.4K bytes - Viewed (0) -
compat/maven-repository-metadata/src/main/java/org/apache/maven/artifact/repository/metadata/io/xpp3/MetadataXpp3Reader.java
* @throws XmlPullParserException XmlPullParserException if * any. */ public Metadata read(Reader reader, boolean strict) throws IOException, XmlPullParserException { try { return new Metadata(delegate.read(reader, strict)); } catch (XMLStreamException e) { throw new XmlPullParserException(e.getMessage(), null, e); } } /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.7K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java
// the basics try { context.cwd = getCwd(context); } catch (Exception e) { context.parsingFailed = true; context.cwd = getCanonicalPath(Paths.get(".")); parserRequest.logger().error("Error determining working directory", e); } try { context.installationDirectory = getInstallationDirectory(context);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 10 07:39:11 UTC 2025 - 25.5K bytes - Viewed (0)