- Sort Score
- Num 10 results
- Language All
Results 1081 - 1090 of 3,637 for throwIf (0.07 seconds)
-
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AlphabeticalAcceptedApiChangesTask.kt
import org.gradle.api.tasks.TaskAction import java.io.File /** * This [Task][org.gradle.api.Task] checks that the contents of a given accepted API changes files * are present in alphabetical order (by type, then member), and throws an exception and reports * any changes that are not. */ @CacheableTask abstract class AlphabeticalAcceptedApiChangesTask : AbstractAcceptedApiChangesMaintenanceTask() { @TaskAction fun execute() {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Nov 29 14:03:44 GMT 2024 - 2.5K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/XslTransformer.java
import java.io.File; import java.io.FileOutputStream; import java.io.IOException; public class XslTransformer { public static void main(String[] args) throws TransformerException, IOException { if (args.length < 3 || args.length > 4) { throw new IllegalArgumentException("USAGE: <style-sheet> <source-file> <dest-file> [dest-dir]"); } File stylesheet = new File(args[0]);Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Thu Oct 05 19:36:14 GMT 2023 - 2.2K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt
internal class AndroidCertificateChainCleaner( private val trustManager: X509TrustManager, private val x509TrustManagerExtensions: X509TrustManagerExtensions, ) : CertificateChainCleaner() { @Suppress("UNCHECKED_CAST") @Throws(SSLPeerUnverifiedException::class) @SuppressSignatureCheck override fun clean( chain: List<Certificate>, hostname: String, ): List<Certificate> {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableAsList.java
} @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } @GwtIncompatible @J2ktIncompatible private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use SerializedForm"); } @GwtIncompatible @J2ktIncompatible @Override Object writeReplace() { return new SerializedForm(delegateCollection()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 2.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
// Any accessor that triggers canonicalizePath should throw assertThrows(RuntimeCIFSException.class, a::getURLPath); assertThrows(RuntimeCIFSException.class, a::getUNCPath); } @Test @DisplayName("Server, port, URL passthrough getters") void testServerPortUrl() throws Exception { // No context mocks needed for this testCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/main/java/jcifs/util/Encdec.java
* @param si the starting index in the source array * @param slim the limit index in the source array * @return the decoded String * @throws IOException if a decoding error occurs */ public static String dec_utf8(final byte[] src, int si, final int slim) throws IOException { final char[] uni = new char[slim - si]; int ui, ch; for (ui = 0; si < slim && (ch = src[si++] & 0xFF) != 0; ui++) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CompactHashSet.java
} @J2ktIncompatible private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); stream.writeInt(size()); for (E e : this) { stream.writeObject(e); } } @SuppressWarnings("unchecked") @J2ktIncompatible private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { stream.defaultReadObject();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 23.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicLongMapBasherTest.java
*/ @J2ktIncompatible // threads @GwtIncompatible // threads @NullUnmarked public class AtomicLongMapBasherTest extends TestCase { private final Random random = new Random(301); public void testModify_basher() throws Exception { int nTasks = 3000; int nThreads = 100; int getsPerTask = 1000; int deltaRange = 10000; String key = "key"; AtomicLongMap<String> map = AtomicLongMap.create();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 4.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java
*/ public int getEpoch() { return epoch; } @Override public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { int start = bufferIndex; if (len < 52) { throw new SMBProtocolDecodingException("Lease V2 context data too short: " + len); } // Read lease V2 data (52 bytes)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 3.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java
byte[] buffer = new byte[0]; assertThrows(ArrayIndexOutOfBoundsException.class, () -> cmd.readBytesWireFormat(buffer, 0)); } /** * Test round‑trip encoding/decoding of ranges using the public * {@link LockingAndXRange} encode/decode methods. */ @Test void lockRangeEncodeDecodeRoundTrip() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.1K bytes - Click Count (0)