- Sort Score
- Result 10 results
- Languages All
Results 731 - 740 of 2,742 for throws (0.13 sec)
-
okhttp/src/test/java/okhttp3/CacheControlTest.kt
import assertk.assertions.isEqualTo import assertk.assertions.isFalse import assertk.assertions.isTrue import kotlin.test.Test import kotlin.time.Duration.Companion.seconds class CacheControlTest { @Test @Throws(Exception::class) fun emptyBuilderIsEmpty() { val cacheControl = CacheControl.Builder().build() assertThat(cacheControl.toString()).isEqualTo("") assertThat(cacheControl.noCache).isFalse()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 2.7K bytes - Viewed (0) -
guava/src/com/google/common/math/BigIntegerMath.java
} throw new AssertionError(); } private static final double LN_10 = Math.log(10); private static final double LN_2 = Math.log(2); /** * Returns the square root of {@code x}, rounded with the specified rounding mode. * * @throws IllegalArgumentException if {@code x < 0}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java
/** * */ public SecurityDescriptor () {} /** * @param buffer * @param bufferIndex * @param len * @throws IOException */ public SecurityDescriptor ( byte[] buffer, int bufferIndex, int len ) throws IOException { this.decode(buffer, bufferIndex, len); } /** * @return the type */ public final int getType () {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 4.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostFile.java
public void run() throws Exception { File file = new File("README.md"); Request request = new Request.Builder() .url("https://api.github.com/markdown/raw") .post(RequestBody.create(file, MEDIA_TYPE_MARKDOWN)) .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat May 25 18:02:55 UTC 2019 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/SamrPolicyHandle.java
if ( de.getErrorCode() != DcerpcError.DCERPC_FAULT_OP_RNG_ERROR ) { throw de; } MsrpcSamrConnect2 rpc2 = new MsrpcSamrConnect2(server, access, this); handle.sendrecv(rpc2); } this.opened = true; } @Override public synchronized void close () throws IOException { if ( this.opened ) { this.opened = false;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 2.2K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/DefaultClasspathTransformationTestType.java
MetadataGraphVertex v2; MetadataGraphVertex v3; MetadataGraphVertex v4; // ------------------------------------------------------------------------------------------ @BeforeEach void setUp() throws Exception { graph = new MetadataGraph(4, 3); /* * v2 * v1< * v3-v4 * */
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.7K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java
} String toXml(Model model) throws IOException, XMLStreamException { StringWriter sw = new StringWriter(); MavenStaxWriter writer = new MavenStaxWriter(); writer.setAddLocationInformation(false); writer.write(sw, model); return sw.toString(); } Model fromXml(String xml) throws XMLStreamException {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type1Message.java
return DEFAULT_WORKSTATION; } private void parse(byte[] material) throws IOException { for (int i = 0; i < 8; i++) { if (material[i] != NTLMSSP_SIGNATURE[i]) { throw new IOException("Not an NTLMSSP message."); } } if (readULong(material, 8) != 1) { throw new IOException("Not a Type 1 message."); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java
} @Override public ModelBuildingResult build(ModelBuildingRequest request) throws ModelBuildingException { return build(request, new LinkedHashSet<>()); } protected ModelBuildingResult build(ModelBuildingRequest request, Collection<String> importIds) throws ModelBuildingException { // phase 1
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 83.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/MapsTest.java
import static org.junit.Assert.assertThat; import java.util.Map; import org.junit.Test; /** * @author koichik */ public class MapsTest { /** * @throws Exception */ @Test public void test() throws Exception { final Map<String, Integer> map = map("a", 1).$("b", 2).$("c", 3).$(); assertThat(map.size(), is(3)); assertThat(map.get("a"), is(1));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.2K bytes - Viewed (0)