Search Options

Results per page
Sort
Preferred Languages
Advance

Results 981 - 990 of 1,693 for threw (0.02 sec)

  1. guava-tests/test/com/google/common/primitives/BytesTest.java

        List<Byte> one = Arrays.asList((byte) 1);
        assertThat(Bytes.toArray(one)).isEqualTo(ARRAY1);
    
        byte[] array = {(byte) 0, (byte) 1, (byte) 0x55};
    
        List<Byte> three = Arrays.asList((byte) 0, (byte) 1, (byte) 0x55);
        assertThat(Bytes.toArray(three)).isEqualTo(array);
    
        assertThat(Bytes.toArray(Bytes.asList(array))).isEqualTo(array);
      }
    
      public void testToArray_threadSafe() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

     *
     * @throws IllegalArgumentException if this is not a well-formed media type.
     */
    internal fun String.commonToMediaType(): MediaType {
      val typeSubtype: MatchResult =
        TYPE_SUBTYPE.matchAtPolyfill(this, 0)
          ?: throw IllegalArgumentException("No subtype found for: \"$this\"")
      val type = typeSubtype.groupValues[1].lowercase()
      val subtype = typeSubtype.groupValues[2].lowercase()
    
      val parameterNamesAndValues = mutableListOf<String>()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

              val first = allExceptions.firstOrNull() ?: UnknownHostException("No results for $hostname")
    
              allExceptions.drop(1).forEach {
                first.addSuppressed(it)
              }
    
              throw first
            }
    
            allAddresses
          }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponse.java

            int start = bufferIndex;
    
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if ( structureSize != 9 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 9");
            }
    
            int bufferOffset = SMBUtil.readInt2(buffer, bufferIndex + 2) + getHeaderStart();
            bufferIndex += 4;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 05 07:13:17 UTC 2018
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ResponseBodyTest.kt

              val source = Buffer().writeUtf8("hello")
              return object : ForwardingSource(source) {
                @Throws(IOException::class)
                override fun close() {
                  throw IOException("Broken!")
                }
              }.buffer()
            }
          }
        assertThat(body.source().readUtf8()).isEqualTo("hello")
        body.close()
      }
    
      @Test
      fun unicodeText() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/MimeMap.java

            inLen = 0;
            while(( n = is.read( in, inLen, IN_SIZE - inLen )) != -1 ) {
                inLen += n;
            }
            if( inLen < 100 || inLen == IN_SIZE ) {
                throw new IOException( "Error reading jcifs/smb1/util/mime.map resource" );
            }
            is.close();
        }
    
        public String getMimeType( String extension ) throws IOException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 4.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/AbstractIterator.java

          return true;
        }
        return false;
      }
    
      @CanIgnoreReturnValue // TODO(kak): Should we remove this?
      @Override
      @ParametricNullness
      public final T next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        state = State.NOT_READY;
        // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`.
        T result = uncheckedCastNullableTToT(next);
        next = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileHandleImpl.java

         */
        public int getFid () throws SmbException {
            if ( !isValid() ) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fid;
        }
    
    
        public byte[] getFileId () throws SmbException {
            if ( !isValid() ) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fileId;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.6K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt

            url = "https://api.github.com/markdown/raw".toHttpUrl(),
            body = file.asRequestBody(MEDIA_TYPE_MARKDOWN),
          )
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    
      companion object {
        val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
      }
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMapWithBadHashesMapInterfaceTest.java

    @GwtCompatible
    public class ImmutableMapWithBadHashesMapInterfaceTest
        extends AbstractImmutableMapMapInterfaceTest<Object, Integer> {
      @Override
      protected Map<Object, Integer> makeEmptyMap() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      protected Map<Object, Integer> makePopulatedMap() {
        Colliders colliders = new Colliders();
        return ImmutableMap.of(
            colliders.e0(), 0,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 09 02:18:08 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top