Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for violations (0.25 sec)

  1. guava/src/com/google/common/cache/CacheBuilderSpec.java

     * CacheBuilder#from(CacheBuilderSpec)} or {@link CacheBuilder#from(String)}.
     *
     * @author Adam Winer
     * @since 12.0
     */
    @SuppressWarnings("GoodTime") // lots of violations (nanosecond math)
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class CacheBuilderSpec {
      /** Parses a single value. */
      private interface ValueParser {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Stopwatch.java

     *        }
     *      });
     * }</pre>
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("GoodTime") // lots of violations
    @ElementTypesAreNonnullByDefault
    public final class Stopwatch {
      private final Ticker ticker;
      private boolean isRunning;
      private long elapsedNanos;
      private long startTick;
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

        return new ExpiringMemoizingSupplier<>(delegate, toNanosSaturated(duration));
      }
    
      @VisibleForTesting
      @SuppressWarnings("GoodTime") // lots of violations
      static class ExpiringMemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        final Supplier<T> delegate;
        final long durationNanos;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        lockB.lock();
        lockA.lock(); // Should not assert on lockB -> reentrant(lockA)
      }
    
      public void testExplicitOrdering_noViolations() {
        lock1.lock();
        lock3.lock();
        lock3.unlock();
        lock2.lock();
        lock3.lock();
      }
    
      public void testExplicitOrdering_violations() {
        lock3.lock();
        PotentialDeadlockException expected =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Stopwatch.java

     *        }
     *      });
     * }</pre>
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @GwtCompatible(emulated = true)
    @SuppressWarnings("GoodTime") // lots of violations
    @ElementTypesAreNonnullByDefault
    public final class Stopwatch {
      private final Ticker ticker;
      private boolean isRunning;
      private long elapsedNanos;
      private long startTick;
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Nov 15 21:38:09 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  6. android/pom.xml

                    <!-- TODO(cpovirk): Enable NullArgumentForNonNullParameter for
                         prod code. It's disabled automatically for "test code"
                         (which is good: our tests have intentional violations), but
                         Error Prone doesn't know it's building test code unless we
                         pass -XepCompilingTestOnlyCode, and that argument needs to
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        lockB.lock();
        lockA.lock(); // Should not assert on lockB -> reentrant(lockA)
      }
    
      public void testExplicitOrdering_noViolations() {
        lock1.lock();
        lock3.lock();
        lock3.unlock();
        lock2.lock();
        lock3.lock();
      }
    
      public void testExplicitOrdering_violations() {
        lock3.lock();
        PotentialDeadlockException expected =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

     * CacheBuilder#from(CacheBuilderSpec)} or {@link CacheBuilder#from(String)}.
     *
     * @author Adam Winer
     * @since 12.0
     */
    @SuppressWarnings("GoodTime") // lots of violations (nanosecond math)
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class CacheBuilderSpec {
      /** Parses a single value. */
      private interface ValueParser {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Suppliers.java

        return new ExpiringMemoizingSupplier<>(delegate, toNanosSaturated(duration));
      }
    
      @VisibleForTesting
      @SuppressWarnings("GoodTime") // lots of violations
      static class ExpiringMemoizingSupplier<T extends @Nullable Object>
          implements Supplier<T>, Serializable {
        final Supplier<T> delegate;
        final long durationNanos;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

     *
     * @author Charles Fry
     * @author Bob Lee ({@code com.google.common.collect.MapMaker})
     * @author Doug Lea ({@code ConcurrentHashMap})
     */
    @SuppressWarnings({
      "GoodTime", // lots of violations (nanosecond math)
      "nullness", // too much trouble for the payoff
    })
    @GwtCompatible(emulated = true)
    // TODO(cpovirk): Annotate for nullness.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top