- Sort Score
- Num 10 results
- Language All
Results 2321 - 2330 of 3,670 for throwIf (0.07 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt
level = DeprecationLevel.ERROR, ) fun parts(): List<Part> = parts @Throws(IOException::class) override fun contentLength(): Long { var result = contentLength if (result == -1L) { result = writeOrCountBytes(null, true) contentLength = result } return result } @Throws(IOException::class) override fun writeTo(sink: BufferedSink) { writeOrCountBytes(sink, false)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
* SigningDigest spy that records whether sign() was invoked. */ static class TestSigningDigest extends SigningDigest { boolean called; int lastLength; TestSigningDigest() throws SmbException { super(new byte[16], false); } @Override void sign(byte[] data, int offset, int length, ServerMessageBlock request, ServerMessageBlock response) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Bytes.java
* * @param arrays zero or more {@code byte} arrays * @return a single array containing all the values from the source arrays, in order * @throws IllegalArgumentException if the total number of elements in {@code arrays} does not fit * in an {@code int} */ public static byte[] concat(byte[]... arrays) { long length = 0;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 15.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 67.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java
* Processes a non-streaming chat request. * * @param request the HTTP request * @param response the HTTP response * @throws IOException if an I/O error occurs */ protected void processChatRequest(final HttpServletRequest request, final HttpServletResponse response) throws IOException { if (!"POST".equalsIgnoreCase(request.getMethod())) { if (logger.isDebugEnabled()) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 06:06:55 GMT 2026 - 25.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
.put("SHA-1", sha1()) .put("SHA-256", sha256()) .put("SHA-384", sha384()) .put("SHA-512", sha512()) .build(); public void testHashing() throws Exception { for (String stringToTest : INPUTS) { for (String algorithmToTest : ALGORITHMS.keySet()) { assertMessageDigestHashing(HashTestUtils.ascii(stringToTest), algorithmToTest); } } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 4.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/xml/DocumentBuilderFactoryUtil.java
} } } try { factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); } catch (final ParserConfigurationException e) { throw new ParserConfigurationRuntimeException(e); } return factory; } /** * Creates a new {@link DocumentBuilder}. * * @return A new {@link DocumentBuilder}. */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 2.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java
} @Test public void test_throwAndCatch() { // Test throwing and catching the exception String errorMessage = "LDAP server not reachable"; try { throw new LdapConfigurationException(errorMessage); } catch (LdapConfigurationException e) { assertEquals(errorMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 7.8K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/publicsuffix/AssetPublicSuffixList.kt
if (assets == null) { if (Build.FINGERPRINT == null) { throw IOException( "Platform applicationContext not initialized. " + "Possibly running Android unit test without Robolectric. " + "Android tests should run with Robolectric " + "and call OkHttp.initialize before test", ) } else { throw IOException( "Platform applicationContext not initialized. " +
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 1.7K bytes - Click Count (0) -
build-logic-commons/publishing/src/main/kotlin/gradlebuild.publish-defaults.gradle.kts
if (artifactoryUrl.isEmpty()) { throw GradleException("artifactoryUrl is not set!") } if (artifactoryUserName.isNullOrEmpty()) { throw GradleException("artifactoryUserName is not set!") } if (artifactoryUserPassword.isNullOrEmpty()) { throw GradleException("artifactoryUserPassword is not set!") } }
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Feb 06 07:41:19 GMT 2026 - 3.4K bytes - Click Count (0)