Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1041 - 1050 of 1,148 for SuppressWarnings (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      private static final byte GREATEST = (byte) 255;
    
      // Only in this class, VALUES must be strictly ascending
      private static final byte[] VALUES = {LEAST, 127, (byte) 128, (byte) 129, GREATEST};
    
      @SuppressWarnings("InlineMeInliner") // We need to test our method.
      public void testToInt() {
        assertThat(UnsignedBytes.toInt((byte) 0)).isEqualTo(0);
        assertThat(UnsignedBytes.toInt((byte) 1)).isEqualTo(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 14K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/FunctionsTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testIdentitySerializable() {
        checkCanReserializeSingleton(Functions.identity());
      }
    
      @SuppressWarnings("nullness") // test of a bogus call
      public void testToStringFunction_apply() {
        assertThat(Functions.toStringFunction().apply(3)).isEqualTo("3");
        assertThat(Functions.toStringFunction().apply("hiya")).isEqualTo("hiya");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java

        private static final Logger LOGGER = LoggerFactory.getLogger(MojoExecutor.class);
        private static final SessionData.Key<ProjectIndex> PROJECT_INDEX = SessionData.key(ProjectIndex.class);
    
        @SuppressWarnings({"unchecked", "rawtypes"})
        private static final SessionData.Key<Map<MavenProject, OwnerReentrantLock>> PROJECT_LOCKS =
                (SessionData.Key) SessionData.key(Map.class, ProjectLock.class);
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jun 12 14:55:55 GMT 2025
    - 21K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/net/MediaType.java

      @LazyInit private @Nullable String toString;
    
      @LazyInit private int hashCode;
    
      // We need to differentiate between "not computed" and "computed to be absent."
      @SuppressWarnings("NullableOptional")
      @LazyInit
      private @Nullable Optional<Charset> parsedCharset;
    
      private MediaType(String type, String subtype, ImmutableListMultimap<String, String> parameters) {
        this.type = type;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

        return MapTestSuiteBuilder.using(
                new TestStringMapGenerator() {
                  @Override
                  // We are testing Hashtable / testing our tests on Hashtable.
                  @SuppressWarnings("JdkObsolete")
                  protected Map<String, String> create(Entry<String, String>[] entries) {
                    return populate(new Hashtable<String, String>(), entries);
                  }
                })
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/DiscreteDomain.java

     * <p>See the Guava User Guide section on <a href=
     * "https://github.com/google/guava/wiki/RangesExplained#discrete-domains">{@code
     * DiscreteDomain}</a>.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989
    @GwtCompatible
    public abstract class DiscreteDomain<C extends Comparable> {
    
      /**
       * Returns the discrete domain for values of type {@code Integer}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      public MonitorBasedArrayBlockingQueue(int capacity, boolean fair, Collection<? extends E> c) {
        this(capacity, fair);
        checkArgument(capacity >= c.size());
    
        for (E e : c) add(e);
      }
    
      @SuppressWarnings("unchecked") // please don't try this home, kids
      private static <E> E[] newEArray(int capacity) {
        return (E[]) new Object[capacity];
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertEquals("test", updated.get(FieldNames.TEXT));
            assertEquals(25L, updated.get(FieldNames.QUERY_FREQ)); // 20 + 5
            assertEquals(20L, updated.get(FieldNames.DOC_FREQ)); // 10 + 10
    
            @SuppressWarnings("unchecked")
            List<String> tags = (List<String>) updated.get(FieldNames.TAGS);
            assertTrue(tags.contains("existing"));
        }
    
        @Test
        public void testConcatValues() {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/util/ComponentUtil.java

        /**
         * Gets a component by its class type.
         * @param <T> The type of the component.
         * @param clazz The class of the component to retrieve.
         * @return The component instance.
         */
        @SuppressWarnings("unchecked")
        public static <T> T getComponent(final Class<T> clazz) {
            try {
                return SingletonLaContainer.getComponent(clazz);
            } catch (final NullPointerException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 30.9K bytes
    - Click Count (0)
  10. compat/maven-model/src/main/java/org/apache/maven/model/InputLocation.java

     * under the License.
     */
    package org.apache.maven.model;
    
    import java.util.stream.Collectors;
    
    /**
     * Class InputLocation.
     *
     * @version $Revision$ $Date$
     */
    @SuppressWarnings("all")
    public final class InputLocation implements java.io.Serializable, Cloneable, InputLocationTracker {
    
        // --------------------------/
        // - Class/Member Variables -/
        // --------------------------/
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 13.5K bytes
    - Click Count (0)
Back to Top