- Sort Score
- Num 10 results
- Language All
Results 1131 - 1140 of 2,371 for Try (0.01 seconds)
-
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/OldestConflictResolver.java
* org.apache.maven.artifact.resolver.ResolutionNode) */ @Override public ResolutionNode resolveConflict(ResolutionNode node1, ResolutionNode node2) { try { ArtifactVersion version1 = node1.getArtifact().getSelectedVersion(); ArtifactVersion version2 = node2.getArtifact().getSelectedVersion();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.2K bytes - Click Count (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/UrlSourceTest.java
} @Test void testGetInputStream() throws Exception { URL txtFile = new File("target/test-classes/source.txt").toURI().toURL(); UrlSource source = new UrlSource(txtFile); try (InputStream is = source.getInputStream(); Scanner scanner = new Scanner(is)) { assertEquals("Hello World!", scanner.nextLine()); } } @TestCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java
} else { k = line; } } Collections.shuffle(data); Graph g = new Graph(); data.parallelStream().forEach(s -> { try { g.addEdge(s[0], s[1]); } catch (Exception e) { throw new RuntimeException(e); } }); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/config/exbhv/ScheduledJobBhv.java
return indexName; } @Override public OptionalEntity<ScheduledJob> selectByPK(final String id) { Exception lastException = null; for (int i = 0; i < 30; i++) { try { return super.selectByPK(id); } catch (final Exception e) { if (logger.isDebugEnabled()) { logger.debug("Failed to select a job by {}", id, e); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 15 06:53:53 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/opensearch/user/exbhv/GroupBhv.java
} return indexName; } @Override protected <RESULT extends Group> RESULT createEntity(final Map<String, Object> source, final Class<? extends RESULT> entityType) { try { final RESULT result = entityType.newInstance(); result.setName(DfTypeUtil.toString(source.get("name"))); result.setAttributes(source.entrySet() .stream()Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Aug 07 03:06:29 GMT 2025 - 2.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java
if (comparator != null) { return comparator; } return NATURAL_ORDER; } @Override public boolean containsKey(Object key) { try { return delegate.containsKey(checkValid(key)); } catch (NullPointerException | ClassCastException e) { return false; } } @Override public boolean containsValue(Object value) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 7.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
val ready = CountDownLatch(2) val waiting = CountDownLatch(1) client = client .newBuilder() .addInterceptor( Interceptor { chain: Interceptor.Chain? -> try { ready.countDown() waiting.await() } catch (e: InterruptedException) { throw AssertionError() } throw IOException() },
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 15.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
} // Utility: reflectively set a private/protected field (searches up the hierarchy) private static void setField(Object target, String name, Object value) { try { Field f = findField(target.getClass(), name); f.setAccessible(true); f.set(target, value); } catch (Exception e) { throw new RuntimeException(e); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
private static ImmutableList<URL> parseJavaClassPath() { ImmutableList.Builder<URL> urls = ImmutableList.builder(); for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) { try { try { urls.add(new File(entry).toURI().toURL()); } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 26 02:41:17 GMT 2026 - 7.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java
.build(); } public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string()); } }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Nov 05 07:46:46 GMT 2018 - 2.1K bytes - Click Count (0)