Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1931 - 1940 of 2,917 for throwIf (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/primitives/SignedBytes.java

      /**
       * Returns the {@code byte} value that is equal to {@code value}, if possible.
       *
       * @param value any value in the range of the {@code byte} type
       * @return the {@code byte} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Byte#MAX_VALUE} or
       *     less than {@link Byte#MIN_VALUE}
       */
      public static byte checkedCast(long value) {
        byte result = (byte) value;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 7.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

                assertEquals(unixTime * 1000L, readTime);
            } finally {
                TimeZone.setDefault(original);
            }
        }
    
        @Test
        void testStringReadWriteASCII() throws UnsupportedEncodingException {
            smb.useUnicode = false;
            String testString = "Hello World";
            byte[] buffer = new byte[testString.length() + 1];
            int len = smb.writeString(testString, buffer, 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/DecodableTest.java

    @DisplayName("Decodable Interface Tests")
    class DecodableTest extends BaseTest {
    
        @Mock
        private Decodable mockDecodable;
    
        @Test
        @DisplayName("Should define decode method")
        void testDecodeMethod() throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[10];
            int bufferIndex = 0;
            int len = 10;
            when(mockDecodable.decode(buffer, bufferIndex, len)).thenReturn(10);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 1K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java

                String resource = "/org/apache/maven/model/pom-" + version + ".xml";
    
                InputStream is = getClass().getResourceAsStream(resource);
    
                if (is == null) {
                    throw new IllegalStateException("The super POM " + resource + " was not found"
                            + ", please verify the integrity of your Maven installation");
                }
    
                try {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BuildPlugin.java

            project.getRootProject().getPluginManager().apply(GlobalBuildInfoPlugin.class);
    
            if (project.getPluginManager().hasPlugin("elasticsearch.standalone-rest-test")) {
                throw new InvalidUserDataException(
                    "elasticsearch.standalone-test, " + "elasticsearch.standalone-rest-test, and elasticsearch.build are mutually exclusive"
                );
            }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 14:34:07 GMT 2021
    - 3.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

                System.arraycopy(ctxBytes, 0, packet, ctxOffsetFromHeader, ctxBytes.length);
            }
            return packet;
        }
    
        @Test
        void decode_basic_noContexts() throws Exception {
            Configuration config = Mockito.mock(Configuration.class);
            Smb2CreateResponse resp = new Smb2CreateResponse(config, "file.txt");
    
            byte[] fileId = new byte[16];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

            return hasNext;
        }
    
        @Override
        public E next() {
            if (!hasNext) {
                throw new NoSuchElementException();
            }
            hasNext = false;
            return value;
        }
    
        @Override
        public void remove() {
            throw new ClUnsupportedOperationException("remove");
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/HeadersReader.kt

     */
    package okhttp3.internal.http1
    
    import okhttp3.Headers
    import okhttp3.internal.HEADER_LIMIT
    import okio.BufferedSource
    
    /**
     * Parse all headers delimited by "\r\n" until an empty line. This throws if headers exceed 256 KiB.
     */
    class HeadersReader(
      val source: BufferedSource,
    ) {
      private var headerLimit = HEADER_LIMIT
    
      /** Read a single line counted against the header size limit. */
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 1.4K bytes
    - Click Count (0)
  9. regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java

    import org.junit.Test;
    import org.junit.runner.RunWith;
    
    /**
     * OkHttp.
     *
     * https://square.github.io/okhttp/
     */
    @RunWith(AndroidJUnit4.class)
    public class OkHttpClientTest {
      @Test public void get() throws IOException {
        OkHttpClient client = new OkHttpClient();
        Request request = new Request.Builder()
            .url("https://google.com/robots.txt")
            .build();
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Nov 14 17:38:22 GMT 2020
    - 1.4K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateDefaultAtomicHelperTest.java

     * under Android.
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class AggregateFutureStateDefaultAtomicHelperTest extends TestCase {
      public void testUsingExpectedAtomicHelper() throws Exception {
        assertThat(AggregateFutureState.atomicHelperTypeForTest()).isEqualTo("SafeAtomicHelper");
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.5K bytes
    - Click Count (0)
Back to Top