Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1811 - 1820 of 5,478 for newE (0.02 seconds)

  1. samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java

      private static final Moshi MOSHI = new Moshi.Builder().build();
      private static final JsonAdapter<List<Contributor>> CONTRIBUTORS_JSON_ADAPTER = MOSHI.adapter(
          Types.newParameterizedType(List.class, Contributor.class));
    
      static class Contributor {
        String login;
        int contributions;
      }
    
      public static void main(String... args) throws Exception {
        OkHttpClient client = new OkHttpClient();
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/artifact/deployer/SimpleArtifactMetadataSource.java

            throw new UnsupportedOperationException("Cannot retrieve metadata in this test case");
        }
    
        @Override
        public List<ArtifactVersion> retrieveAvailableVersions(
                Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) {
            return Collections.singletonList(new DefaultArtifactVersion("10.1.3"));
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

            File basedir = new File("target/spacy path").getAbsoluteFile();
            ArtifactRepository repo = repositorySystem.createLocalRepository(basedir);
            assertEquals(basedir, new File(repo.getBasedir()));
        }
    
        @Test
        void testAuthenticationHandling() {
            Server server = new Server();
            server.setId("repository");
            server.setUsername("jason");
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            this.transportContext = tc;
            this.requestProperties = new HashMap<>();
            copySettings();
        }
    
        /**
         *
         */
        private final void copySettings() {
            try {
                this.setRequestMethod(this.connection.getRequestMethod());
            } catch (final ProtocolException e) {
                throw new RuntimeCIFSException("Failed to set request method", e);
            }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                byte[] buffer = new byte[16];
                buffer[0] = 0x0F; // Invalid size (15 instead of 16)
                buffer[1] = 0x00;
    
                // When & Then - InvocationTargetException wraps the actual exception when using reflection
                Exception exception = assertThrows(Exception.class,
                        () -> invokeMethod(response, "readBytesWireFormat", new Class[] { byte[].class, int.class }, buffer, 0),
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

     * </p>
     *
     * <pre>
     * XmlTransformer transformer = new XmlTransformer();
     * transformer.setNamespaceAware(true);
     * transformer.setCacheDuration(30);
     * transformer.addFieldRule("title", "/book/title/text()");
     * transformer.addFieldRule("author", "/book/author/name/text()");
     *
     * ResponseData responseData = new ResponseData();
     * responseData.setResponseBody(new ByteArrayInputStream(xmlContent.getBytes(StandardCharsets.UTF_8)));
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Jul 06 02:13:03 GMT 2025
    - 23.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Queues.java

      public static <E> ArrayBlockingQueue<E> newArrayBlockingQueue(int capacity) {
        return new ArrayBlockingQueue<>(capacity);
      }
    
      // ArrayDeque
    
      /**
       * Creates an empty {@code ArrayDeque}.
       *
       * @since 12.0
       */
      public static <E> ArrayDeque<E> newArrayDeque() {
        return new ArrayDeque<>();
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Nov 04 17:24:58 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        if (capacity <= 0) throw new IllegalArgumentException();
        this.items = newEArray(capacity);
        monitor = new Monitor(fair);
        notEmpty =
            new Monitor.Guard(monitor) {
              @Override
              public boolean isSatisfied() {
                return count > 0;
              }
            };
        notFull =
            new Monitor.Guard(monitor) {
              @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java

            FileModelSource instance = new FileModelSource(tempFile);
    
            assertFalse(instance.equals(null), "Expected " + instance + " to not equal " + null);
            assertFalse(instance.equals(new Object()));
            assertTrue(instance.equals(instance), "Expected " + instance + " to equal " + instance);
            assertTrue(instance.equals(new FileModelSource(tempFile)));
        }
    
        @Test
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/PostMultipart.java

      private static final MediaType MEDIA_TYPE_PNG = MediaType.get("image/png");
    
      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image
        RequestBody requestBody = new MultipartBody.Builder()
            .setType(MultipartBody.FORM)
            .addFormDataPart("title", "Square Logo")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jun 24 12:59:42 GMT 2019
    - 2.2K bytes
    - Click Count (0)
Back to Top