Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1381 - 1390 of 1,450 for SuppressWarnings (0.15 seconds)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

    import static org.apache.maven.cling.invoker.CliUtils.stripLeadingAndTrailingQuotes;
    import static org.apache.maven.cling.invoker.CliUtils.toMap;
    
    public abstract class BaseParser implements Parser {
    
        @SuppressWarnings("VisibilityModifier")
        public static class LocalContext {
            public final ParserRequest parserRequest;
            public final Map<String, String> systemPropertiesOverrides;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/io/MoreFiles.java

            // overload taking OpenOptions, meaning we can't guarantee the same behavior w.r.t. things
            // like following/not following symlinks.)
            return new AsCharSource(charset) {
              @SuppressWarnings("FilesLinesLeak") // the user needs to close it in this case
              @Override
              public Stream<String> lines() throws IOException {
                return Files.lines(path, charset);
              }
            };
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/net/MediaTypeTest.java

        MediaType mediaType = MediaType.parse("text/plain");
        assertThrows(
            IllegalArgumentException.class, () -> mediaType.withParameters("a", ImmutableSet.of("…")));
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testWithParametersIterable_nullValue() {
        MediaType mediaType = MediaType.parse("text/plain");
        assertThrows(
            NullPointerException.class,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 20.4K bytes
    - Click Count (0)
  4. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        @Override
        public E next() {
          if (cursor >= array.length) throw new NoSuchElementException();
          lastRet = cursor;
    
          // array comes from q.toArray() and so should have only E's in it
          @SuppressWarnings("unchecked")
          E e = (E) array[cursor++];
          return e;
        }
    
        @Override
        public void remove() {
          if (lastRet < 0) throw new IllegalStateException();
          Object x = array[lastRet];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/primitives/Booleans.java

        INSTANCE;
    
        @Override
        public int compare(boolean[] left, boolean[] right) {
          // do not static import Math.min due to https://bugs.openjdk.org/browse/JDK-8357219
          @SuppressWarnings("StaticImportPreferred")
          int minLength = Math.min(left.length, right.length);
          for (int i = 0; i < minLength; i++) {
            int result = Boolean.compare(left[i], right[i]);
            if (result != 0) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Sep 25 15:01:23 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // quite expensive (quadratic in the size of PSEUDORANDOM_DATASET).
        double[] dataset = Doubles.toArray(PSEUDORANDOM_DATASET);
        @SuppressWarnings("unused")
        double actual = percentiles().index(33).computeInPlace(dataset);
        assertThat(dataset).usingExactEquality().containsExactlyElementsIn(PSEUDORANDOM_DATASET);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/math/QuantilesTest.java

        // quite expensive (quadratic in the size of PSEUDORANDOM_DATASET).
        double[] dataset = Doubles.toArray(PSEUDORANDOM_DATASET);
        @SuppressWarnings("unused")
        double actual = percentiles().index(33).computeInPlace(dataset);
        assertThat(dataset).usingExactEquality().containsExactlyElementsIn(PSEUDORANDOM_DATASET);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

       */
      protected Map<K, V> makeEitherMap() {
        try {
          return makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return makeEmptyMap();
        }
      }
    
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      protected final boolean supportsValuesHashCode(Map<K, V> map) {
        // get the first non-null value
        Collection<V> values = map.values();
        for (V value : values) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/Traverser.java

        ImmutableSet<N> validated = validate(startNodes);
        return () -> newTraversal().postOrder(validated.iterator());
      }
    
      abstract Traversal<N> newTraversal();
    
      @SuppressWarnings("CheckReturnValue")
      private ImmutableSet<N> validate(Iterable<? extends N> startNodes) {
        ImmutableSet<N> copy = ImmutableSet.copyOf(startNodes);
        for (N node : copy) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 19.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

        static final String UNSAFE_COMPARATOR_NAME =
            LexicographicalComparatorHolder.class.getName() + "$UnsafeComparator";
    
        static final Comparator<byte[]> BEST_COMPARATOR = getBestComparator();
    
        @SuppressWarnings({
          // b/345822163
          "SunApi",
          "deprecation",
          // The `deprecation` suppression is for Unsafe APIs that aren't deprecated under some versions
          "UnnecessaryJavacSuppressWarnings"
        })
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
Back to Top