- Sort Score
- Num 10 results
- Language All
Results 1481 - 1490 of 3,804 for throws (0.47 seconds)
-
benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadLongBenchmark.java
pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) { throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]"); } this.streamInput = pagedBytes.streamInput(); } @Benchmark public long readLong() throws IOException { long res = 0L; streamInput.reset(); final int reads = pagedBytes.length() / 8;
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/convert/BooleanConversionUtilTest.java
package org.codelibs.core.convert; import junit.framework.TestCase; /** * @author higa * */ public class BooleanConversionUtilTest extends TestCase { /** * @throws Exception */ public void testToBoolean() throws Exception { assertEquals("1", Boolean.TRUE, BooleanConversionUtil.toBoolean(Integer.valueOf(1))); assertEquals("2", Boolean.FALSE, BooleanConversionUtil.toBoolean(Integer.valueOf(0)));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 1.5K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/GraphTest.java
@Deprecated public class GraphTest { @Test void testCycle() throws Graph.CycleDetectedException { Graph graph = new Graph(); graph.addEdge("a1", "a2"); assertThrows(Graph.CycleDetectedException.class, () -> graph.addEdge("a2", "a1")); } @Test public void testPerf() throws IOException { List<String[]> data = new ArrayList<>(); String k = null;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
@Deprecated @Override public void install(String basedir, String finalName, Artifact artifact, ArtifactRepository localRepository) throws ArtifactInstallationException { String extension = artifact.getArtifactHandler().getExtension(); File source = new File(basedir, finalName + "." + extension); install(source, artifact, localRepository);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
} /* * Tests for Predicates.alwaysFalse(). */ public void testAlwaysFalse_apply() throws Exception { assertEvalsToFalse(Predicates.alwaysFalse()); } public void testAlwaysFalse_equality() throws Exception { new EqualsTester() .addEqualityGroup(FALSE, Predicates.alwaysFalse()) .addEqualityGroup(isOdd())
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 32.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java
*/ public byte[] getContextHandle() { return contextHandle != null ? contextHandle.clone() : null; } @Override protected void encodeWitnessParameters(NdrBuffer buf) throws NdrException { // Encode input parameters for WitnessUnregister // Context handle (20 bytes) - this is both input and output (modified) if (contextHandle != null) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 3.8K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/Artifact.java
void setAvailableVersions(List<ArtifactVersion> versions); boolean isOptional(); void setOptional(boolean optional); ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException; boolean isSelectedVersionKnown() throws OverConstrainedVersionException;
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.1K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/UnsignedInteger.java
/** * Returns the result of dividing this by {@code val}. * * @throws ArithmeticException if {@code val} is zero * @since 14.0 */ public UnsignedInteger dividedBy(UnsignedInteger val) { return fromIntBits(UnsignedInts.divide(value, checkNotNull(val).value)); } /** * Returns this mod {@code val}. * * @throws ArithmeticException if {@code val} is zero * @since 14.0 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 8.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractIterator.java
* the first invocation of {@code hasNext} or {@code next} following each successful call to * {@code next}. Once the implementation either invokes {@code endOfData} or throws an exception, * {@code computeNext} is guaranteed to never be called again. * * <p>If this method throws an exception, it will propagate outward to the {@code hasNext} or * {@code next} invocation that invoked this method. Any further attempts to use the iterator willCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 6.3K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java
@Override protected String getProjectsDirectory() { return "src/test/projects/project-dependencies-resolver"; } @Test void testSystemScopeDependencies() throws Exception { MavenSession session = createMavenSession(null); MavenProject project = session.getCurrentProject(); new ProjectBuilder(project) .addDependency(Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 3.1K bytes - Click Count (0)