- Sort Score
- Result 10 results
- Languages All
Results 1391 - 1400 of 1,808 for try (0.01 sec)
-
src/test/java/jcifs/SmbResourceTest.java
SmbResource resource = createMockResource(); // When/Then assertDoesNotThrow(() -> { try (SmbResource r = resource) { // Resource will be automatically closed } }, "Should work in try-with-resources"); } @Test @DisplayName("multiple operations should work together")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsDataConfigBhv.java
return DataConfigDbm.getInstance(); } @Override protected <RESULT extends DataConfig> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) { try { final RESULT result = entityType.newInstance(); result.setAvailable(DfTypeUtil.toBoolean(source.get("available"))); result.setBoost(DfTypeUtil.toFloat(source.get("boost")));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/bsbhv/BsLabelTypeBhv.java
return LabelTypeDbm.getInstance(); } @Override protected <RESULT extends LabelType> RESULT createEntity(Map<String, Object> source, Class<? extends RESULT> entityType) { try { final RESULT result = entityType.newInstance(); result.setCreatedBy(DfTypeUtil.toString(source.get("createdBy"))); result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Mar 15 06:53:53 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java
final Map<String, Map<String, List<Tuple3<String, QueryBuilder, ScoreFunctionBuilder<?>>>>> keyMatchQueryMap = new HashMap<>(); getAvailableKeyMatchList().stream().forEach(keyMatch -> { try { final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery(); if (logger.isDebugEnabled()) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 10K bytes - Viewed (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
this.cachedSubject = null; } @Override public synchronized Subject getSubject() { if (this.cachedSubject != null) { return this.cachedSubject; } try { log.debug("Logging on"); LoginContext lc; Subject ps = super.getSubject(); if (this.configuration != null) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
} @Test @DisplayName("Should work in catch blocks for IOException") void testCatchAsIOException() { assertDoesNotThrow(() -> { try { throw new TransportException("Test exception"); } catch (IOException e) { // Should catch TransportException as IOException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/ds/AbstractDataStore.java
protected long getReadInterval(final DataStoreParams paramMap) { long readInterval = 0; final String value = paramMap.getAsString("readInterval"); if (StringUtil.isNotBlank(value)) { try { readInterval = Long.parseLong(value); } catch (final NumberFormatException e) { logger.warn("Invalid read interval: {}", value); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/score/QueryRescorerTest.java
assertNotNull(queryRescorer.evaluate(normalParams)); // Test exception case Map<String, Object> exceptionParams = new HashMap<>(); exceptionParams.put("throwException", true); try { queryRescorer.evaluate(exceptionParams); fail("Expected RuntimeException"); } catch (RuntimeException e) { assertEquals("Test exception", e.getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
* @return the content as a string. * @throws CurlException if an error occurs while accessing the content. */ public String getContentAsString() { final byte[] bytes = new byte[4096]; try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream()); ByteArrayOutputStream baos = new ByteArrayOutputStream()) { int length = bis.read(bytes); while (length != -1) {
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 6.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
assertEquals(3500507768004279527L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8))); } public void testStringsConsistency() { for (String s : Arrays.asList("", "some", "test", "strings", "to", "try")) { assertEquals(HASH_FN.newHasher().putUnencodedChars(s).hash(), HASH_FN.hashUnencodedChars(s)); } } public void testUtf8() { char[] charsA = new char[128]; char[] charsB = new char[128];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 6.3K bytes - Viewed (0)