Search Options

Results per page
Sort
Preferred Languages
Advance

Results 991 - 1000 of 1,007 for SuppressWarnings (0.08 sec)

  1. guava-tests/test/com/google/common/math/LongMathTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for LongMath.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullUnmarked
    public class LongMathTest extends TestCase {
      @SuppressWarnings("ConstantOverflow")
      public void testMaxSignedPowerOfTwo() {
        assertTrue(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO));
        assertFalse(LongMath.isPowerOfTwo(LongMath.MAX_SIGNED_POWER_OF_TWO * 2));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteSource.java

          return Optional.of((long) length);
        }
    
        @Override
        public byte[] read() {
          return Arrays.copyOfRange(bytes, offset, offset + length);
        }
    
        @SuppressWarnings("CheckReturnValue") // it doesn't matter what processBytes returns here
        @Override
        @ParametricNullness
        public <T extends @Nullable Object> T read(ByteProcessor<T> processor) throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 20:55:20 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Floats.java

      /**
       * The number of bytes required to represent a primitive {@code float} value.
       *
       * <p>Prefer {@link Float#BYTES} instead.
       *
       * @since 10.0
       */
      // The constants value gets inlined here.
      @SuppressWarnings("AndroidJdkLibsChecker")
      public static final int BYTES = Float.BYTES;
    
      /**
       * Returns a hash code for {@code value}; obsolete alternative to {@link Float#hashCode(float)}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/QueryResponseListTest.java

            Object[] array = qrList.toArray();
            assertEquals(2, array.length);
            assertEquals(doc1, array[0]);
            assertEquals(doc2, array[1]);
    
            @SuppressWarnings("unchecked")
            Map<String, Object>[] typedArray = qrList.toArray(new Map[0]);
            assertEquals(2, typedArray.length);
            assertEquals(doc1, typedArray[0]);
            assertEquals(doc2, typedArray[1]);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 39.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            return designJspFileNameMap.get(fileName);
        }
    
        /**
         * Gets an array of design JSP file names.
         *
         * @return An array of pairs of keys and file names.
         */
        @SuppressWarnings("unchecked")
        public Pair<String, String>[] getDesignJspFileNames() {
            return designJspFileNameMap.entrySet().stream().map(e -> new Pair<>(e.getKey(), e.getValue())).toArray(n -> new Pair[n]);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/primitives/Doubles.java

       * The number of bytes required to represent a primitive {@code double} value.
       *
       * <p>Prefer {@link Double#BYTES} instead.
       *
       * @since 10.0
       */
      // The constants value gets inlined here.
      @SuppressWarnings("AndroidJdkLibsChecker")
      public static final int BYTES = Double.BYTES;
    
      /**
       * Returns a hash code for {@code value}; obsolete alternative to {@link Double#hashCode(double)}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        }
      }
    
      // J2kt cannot translate the Comparable rawtype in a usable way (it becomes Comparable<Object>
      // but types are typically only Comparable to themselves).
      @SuppressWarnings({"rawtypes", "unchecked"})
      private static MinMaxPriorityQueue.Builder<Comparable<?>> rawtypeToWildcard(
          MinMaxPriorityQueue.Builder<Comparable> builder) {
        return (MinMaxPriorityQueue.Builder) builder;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Longs.java

      private Longs() {}
    
      /**
       * The number of bytes required to represent a primitive {@code long} value.
       *
       * <p>Prefer {@link Long#BYTES} instead.
       */
      // The constants value gets inlined here.
      @SuppressWarnings("AndroidJdkLibsChecker")
      public static final int BYTES = Long.BYTES;
    
      /**
       * The largest power of two that can be represented as a {@code long}.
       *
       * @since 10.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *     cancelled regardless
       * @return {@code false} if the step could not be cancelled, typically because it has already
       *     completed normally; {@code true} otherwise
       */
      @CanIgnoreReturnValue
      @SuppressWarnings("Interruption") // We are propagating an interrupt from a caller.
      public boolean cancel(boolean mayInterruptIfRunning) {
        logger.get().log(FINER, "cancelling {0}", this);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/Files.java

       * the same name.
       *
       * @param file the file to create or update
       * @throws IOException if an I/O error occurs
       */
      @SuppressWarnings("GoodTime") // reading system time without TimeSource
      public static void touch(File file) throws IOException {
        checkNotNull(file);
        if (!file.createNewFile() && !file.setLastModified(System.currentTimeMillis())) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top