- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 218 for requireNonNull (0.06 sec)
-
impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
import org.eclipse.aether.version.VersionRange; import org.eclipse.aether.version.VersionScheme; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static java.util.Objects.requireNonNull; /** * @since 3.3.0 */ @Named @Singleton public class DefaultRepositorySystemSessionFactory implements RepositorySystemSessionFactory {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jul 17 05:56:35 UTC 2025 - 25.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/MemoryUtil.java
return byteCountToDisplaySize(BigInteger.valueOf(size)); } private static String byteCountToDisplaySize(final BigInteger size) { Objects.requireNonNull(size, "size"); final String displaySize; if (size.divide(ONE_EB_BI).compareTo(BigInteger.ZERO) > 0) { displaySize = new BigDecimal(size.divide(ONE_PB_BI)).divide(BigDecimal.valueOf(1000)) + "EB";
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
import static com.google.common.base.Preconditions.checkState; import static com.google.common.collect.NullnessCasts.uncheckedCastNullableTToT; import static java.util.Objects.requireNonNull; import com.google.common.annotations.GwtCompatible; import com.google.common.annotations.GwtIncompatible; import com.google.common.annotations.J2ktIncompatible;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 15:50:50 UTC 2025 - 14.3K bytes - Viewed (0) -
architecture/standards/0008-use-nullaway.md
Do not suppress NullAway errors without a justification. Prefer rearranging the code to avoid the error, unless there is a provable performance penalty or a significant loss of code readability. Use `Objects.requireNonNull` statement or `Preconditions` rather than `assert` or `@SuppressWarning` annotation to suppress if possible. For gradual adoption, enable checks project-by-project. Do not rely on `@NullMarked` annotations.
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Dec 11 10:24:40 UTC 2025 - 4K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeRangeMap.java
public @Nullable V remove(@Nullable Object key) { V value = get(key); if (value != null) { // it's definitely in the map, so the cast and requireNonNull are safe @SuppressWarnings("unchecked") Range<K> range = (Range<K>) requireNonNull(key); TreeRangeMap.this.remove(range); return value; } return null; } @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 26.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/LegacyLocalRepositoryManager.java
return new DefaultRepositorySystemSession(session).setLocalRepositoryManager(llrm); } private LegacyLocalRepositoryManager(ArtifactRepository delegate) { this.delegate = Objects.requireNonNull(delegate, "delegate cannot be null"); ArtifactRepositoryLayout layout = delegate.getLayout(); repo = new LocalRepository( new File(delegate.getBasedir()),Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 13.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycles.java
Map<String, Lifecycle> lifecyclesMap = lookupLifecycles(); // ensure canonical order of standard lifecycles return lifecyclesMap.values().stream() .peek(l -> Objects.requireNonNull(l.getId(), "A lifecycle must have an id.")) .sorted(Comparator.comparing(Lifecycle::getId, comparator)) .collect(Collectors.toList()); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Sat Apr 05 11:52:05 UTC 2025 - 6.6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/graph/FilteredProjectDependencyGraph.java
*/ FilteredProjectDependencyGraph( ProjectDependencyGraph projectDependencyGraph, Collection<? extends MavenProject> whiteList) { this.projectDependencyGraph = Objects.requireNonNull(projectDependencyGraph, "projectDependencyGraph cannot be null"); this.whiteList = new IdentityHashMap<>(); for (MavenProject project : whiteList) { this.whiteList.put(project, null); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Jun 19 16:34:39 UTC 2025 - 6.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
valueItr = entry.getValue().iterator(); } /* * requireNonNull is safe: The first call to this method always enters the !hasNext() case * and populates currentKey, after which it's never cleared. */ return immutableEntry(requireNonNull(currentKey), valueItr.next()); } }; } /**
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Dec 09 15:58:48 UTC 2025 - 27.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/PathMatcherFactory.java
* * @param matcher the matcher to test */ default boolean isIncludesAll(@Nonnull PathMatcher matcher) { return Objects.requireNonNull(matcher) == includesAll(); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Jul 21 19:37:56 UTC 2025 - 7.5K bytes - Viewed (0)