- Sort Score
- Result 10 results
- Languages All
Results 1041 - 1050 of 2,976 for throw (0.02 sec)
-
android/guava/src/com/google/common/base/Utf8.java
utf8Length += encodedLengthGeneral(sequence, i); break; } } if (utf8Length < utf16Length) { // Necessary and sufficient condition for overflow because of maximum 3x expansion throw new IllegalArgumentException( "UTF-8 length does not fit in int: " + (utf8Length + (1L << 32))); } return utf8Length; } private static int encodedLengthGeneral(CharSequence sequence, int start) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 7K bytes - Viewed (0) -
okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt
try { val buffer = Buffer() body!!.writeTo(buffer) buffer.readString(body.contentType()!!.charset()!!) } catch (e: IOException) { throw RuntimeException(e) } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/design/AdminDesignAction.java
try { form.content = encodeJsp(new String(FileUtil.readBytes(jspFile), Constants.UTF_8)); } catch (final UnsupportedEncodingException e) { throw new FessSystemException("Invalid encoding", e); } saveToken(); return asEditHtml(form); } /** * Show the edit page with the default content.
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 17.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java
} public void test_throwAndCatch() { // Test throwing and catching the exception String expectedMessage = "LDAP authentication failed"; try { throw new LdapOperationException(expectedMessage); } catch (LdapOperationException e) { assertEquals(expectedMessage, e.getMessage()); assertNull(e.getCause()); } catch (Exception e) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 8.1K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
try { try { ProviderInstaller.installIfNeeded(InstrumentationRegistry.getInstrumentation().targetContext) } catch (gpsnae: GooglePlayServicesNotAvailableException) { throw TestAbortedException("Google Play Services not available", gpsnae) } val request = Request.Builder().url("https://facebook.com/robots.txt").build() var socketClass: String? = null
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 14:12:28 UTC 2025 - 29K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
case STRING_ITEM -> 1; case COMBINATION_ITEM -> 1; // 1.1 > 1-sp case LIST_ITEM -> 1; // 1.1 > 1-1 default -> throw new IllegalStateException("invalid item: " + item.getClass()); }; } @Override public boolean equals(Object o) { if (this == o) { return true;
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 26.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
@Override public Integer call() throws Exception { runLatch.countDown(); taskLatch.await(); if (throwException) { throw new IllegalStateException("Fail"); } return 25; } }); @Override protected void setUp() throws Exception { super.setUp(); exec = newCachedThreadPool();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmServletTest.java
/** * Test the service method with a valid NTLM Authorization header. * Simulates a successful NTLM authentication. * @throws ServletException * @throws IOException * @throws CIFSException */ @Test void testService_NtlmAuth_Success() throws Exception { ntlmServlet.init(servletConfig); setupMocksForAuth(); byte[] challenge = new byte[8];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2SetInfoResponse.java
} /** * {@inheritDoc} * * @throws SMBProtocolDecodingException * if the response data is malformed * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java
* @return the filesystem info cast to the specified type * @throws CIFSException if the information cannot be cast to the specified type */ @SuppressWarnings("unchecked") public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException { if (!clazz.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5K bytes - Viewed (0)