Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1561 - 1570 of 6,020 for new1 (0.5 seconds)

  1. android/guava-testlib/src/com/google/common/testing/TearDownStack.java

    @NullMarked
    public class TearDownStack implements TearDownAccepter {
      private static final Logger logger = Logger.getLogger(TearDownStack.class.getName());
    
      @VisibleForTesting final Object lock = new Object();
    
      @GuardedBy("lock")
      final Deque<TearDown> stack = new ArrayDeque<>();
    
      private final boolean suppressThrows;
    
      public TearDownStack() {
        this.suppressThrows = false;
      }
    
      public TearDownStack(boolean suppressThrows) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 01 13:14:50 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/CycleDetectingLockFactoryBenchmark.java

      void setUp() throws Exception {
        this.factory = CycleDetectingLockFactory.newInstance(CycleDetectingLockFactory.Policies.WARN);
        this.plainLocks = new Lock[lockNestingDepth];
        for (int i = 0; i < lockNestingDepth; i++) {
          plainLocks[i] = new ReentrantLock();
        }
        this.detectingLocks = new Lock[lockNestingDepth];
        for (int i = 0; i < lockNestingDepth; i++) {
          detectingLocks[i] = factory.newReentrantLock("Lock" + i);
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  3. guava-testlib/src/com/google/common/testing/TearDownStack.java

    @NullMarked
    public class TearDownStack implements TearDownAccepter {
      private static final Logger logger = Logger.getLogger(TearDownStack.class.getName());
    
      @VisibleForTesting final Object lock = new Object();
    
      @GuardedBy("lock")
      final Deque<TearDown> stack = new ArrayDeque<>();
    
      private final boolean suppressThrows;
    
      public TearDownStack() {
        this.suppressThrows = false;
      }
    
      public TearDownStack(boolean suppressThrows) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 01 13:14:50 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

      }
    
      public void testNoForwardingOfDefaultMethod() throws Exception {
        ExecutorService delegate =
            new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60, SECONDS, new SynchronousQueue<>()) {
              @Override
              public void close() {
                throw new AssertionError(
                    "ForwardingExecutorService should have used the default method"
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  5. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

                throw new PlexusConfigurationException(e.getMessage(), e);
            }
        }
    
        private static BufferedInputStream reset(StreamSupplier inputSupplier, BufferedInputStream bis) throws IOException {
            try {
                bis.reset();
                return bis;
            } catch (IOException e) {
                return new BufferedInputStream(inputSupplier.open(), BUFFER_SIZE);
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

      }
    
      public void testTreeMapDerived() {
        TreeMap<Derived, Integer> map = Maps.newTreeMap();
        assertEquals(emptyMap(), map);
        map.put(new Derived("foo"), 1);
        map.put(new Derived("bar"), 2);
        assertThat(map.keySet()).containsExactly(new Derived("bar"), new Derived("foo")).inOrder();
        assertThat(map.values()).containsExactly(2, 1).inOrder();
        assertThat(map.comparator()).isNull();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

                    .status(ApiResult.Status.OK)
                    .result());
        }
    
        /**
         * Create a new protected words entry for the specified dictionary.
         *
         * @param dictId identifier of the dictionary
         * @param body create request payload
         * @return JSON response containing creation result and new entry ID
         */
        // POST /api/admin/dict/protwords/setting/{dictId}
        @Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  8. build-tools-internal/src/test/java/org/elasticsearch/gradle/internal/BwcVersionsTests.java

        }
    
        @Test(expected = IllegalArgumentException.class)
        public void testExceptionOnEmpty() {
            new BwcVersions(asList("foo", "bar"), Version.fromString("7.0.0"));
        }
    
        @Test(expected = IllegalStateException.class)
        public void testExceptionOnNonCurrent() {
            new BwcVersions(singletonList(formatVersionToLine("6.5.0")), Version.fromString("7.0.0"));
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 23.7K bytes
    - Click Count (0)
  9. docs/features/events.md

    ```java
    Request washingtonPostRequest = new Request.Builder()
        .url("https://www.washingtonpost.com/")
        .build();
    client.newCall(washingtonPostRequest).enqueue(new Callback() {
      ...
    });
    
    Request newYorkTimesRequest = new Request.Builder()
        .url("https://www.nytimes.com/")
        .build();
    client.newCall(newYorkTimesRequest).enqueue(new Callback() {
      ...
    });
    ```
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

         */
        @Test
        void testReadDataWireFormat_SmbInfoAllocation() {
            Trans2QueryFSInformationResponse response =
                    new Trans2QueryFSInformationResponse(Trans2QueryFSInformationResponse.SMB_INFO_ALLOCATION);
            byte[] buffer = new byte[20];
            // Mock data for SmbInfoAllocation
            // idFileSystem (4 bytes, skipped)
            writeInt4(100, buffer, 4); // sectPerAlloc
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.6K bytes
    - Click Count (0)
Back to Top