Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 4,230 for new1 (0.18 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/AsynchronousGet.java

    import okhttp3.ResponseBody;
    
    public final class AsynchronousGet {
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build();
    
        client.newCall(request).enqueue(new Callback() {
          @Override public void onFailure(Call call, IOException e) {
            e.printStackTrace();
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

    import okhttp3.Response;
    
    public final class ParseResponseWithMoshi {
      private final OkHttpClient client = new OkHttpClient();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build();
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlRequestTest.java

            CurlRequest request = new CurlRequest(Method.GET, url);
    
            assertEquals(Method.GET, request.method());
            assertEquals("UTF-8", request.encoding());
            assertEquals(1024 * 1024, request.threshold());
            assertNull(request.proxy());
            assertNull(request.body());
        }
    
        @Test
        public void testProxyMethod() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

      }
    
      public void testMissingException() {
        List<Integer> emptyList = new ArrayList<>();
    
        IteratorTester<Integer> tester =
            new IteratorTester<Integer>(
                1, MODIFIABLE, emptyList, IteratorTester.KnownOrder.KNOWN_ORDER) {
              @Override
              protected Iterator<Integer> newTargetIterator() {
                return new Iterator<Integer>() {
                  @Override
                  public void remove() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

        AtomicReference<Object> valueRef = new AtomicReference<>();
        Cache<Object, Object> cache =
            new AbstractCache<Object, Object>() {
              @Override
              public @Nullable Object getIfPresent(Object key) {
                return valueRef.get();
              }
            };
    
        assertNull(cache.getIfPresent(new Object()));
    
        Object newValue = new Object();
        valueRef.set(newValue);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

                            return new String(InputStreamUtil.getBytes(is), Constants.UTF_8);
                        } catch (IOException e) {
                            throw new IORuntimeException(e);
                        }
                    } else if (url.contains("plugin/repo2")) {
                        try (InputStream is = ResourceUtil.getResourceAsStream(url)) {
                            return new String(InputStreamUtil.getBytes(is), Constants.UTF_8);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/NbtSocket.java

                final int errorCode = in.read() & 0xFF;
                close();
                throw new NbtException(NbtException.ERR_SSN_SRVC, errorCode);
            case -1:
                throw new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
            default:
                close();
                throw new NbtException(NbtException.ERR_SSN_SRVC, 0);
            }
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/StaticJAASConfigurationTest.java

        void customOptions_arePropagated() {
            // Arrange
            Map<String, Object> opts = new HashMap<>();
            opts.put("useKeyTab", "true");
            opts.put("storeKey", "true");
            opts.put("principal", "******@****.***");
            StaticJAASConfiguration cfg = new StaticJAASConfiguration(opts);
    
            // Act
            AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("any");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/TestsForQueuesInJavaUtil.java

     *
     * @author Jared Levy
     */
    @GwtIncompatible
    public class TestsForQueuesInJavaUtil {
      public static Test suite() {
        return new TestsForQueuesInJavaUtil().allTests();
      }
    
      public Test allTests() {
        TestSuite suite = new TestSuite();
        suite.addTest(testsForArrayDeque());
        suite.addTest(testsForLinkedList());
        suite.addTest(testsForArrayBlockingQueue());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 16:28:01 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/BufferCacheImplTest.java

        void cacheCapacityAndRetrievalOrder() {
            BufferCacheImpl impl = new BufferCacheImpl(2, 3);
            byte[] a = new byte[1];
            byte[] c = new byte[2];
            byte[] d = new byte[4];
    
            impl.releaseBuffer(a); // goes to slot 0
            impl.releaseBuffer(c); // goes to slot 1
            impl.releaseBuffer(d); // dropped (cache full)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top