- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 137 for isStale (0.04 seconds)
-
src/test/java/jcifs/SmbPipeHandleTest.java
/** * Verifies that isStale returns false for a fresh handle. */ @Test public void testIsStale_ReturnsFalseWhenNotStale() { when(smbPipeHandle.isStale()).thenReturn(false); assertFalse(smbPipeHandle.isStale(), "isStale() should return false for a fresh handle."); } /** * Verifies that isStale returns true for a stale handle. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
// Initially not open (isStale returns false when handle is null, not true) assertFalse(target.isOpen()); assertFalse(target.isStale()); // After ensureOpen, handle valid -> open SmbFileHandleImpl fh = target.ensureOpen(); assertSame(fileHandle, fh); assertTrue(target.isOpen()); assertFalse(target.isStale());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
return sess.getSessionKey(); } } /** * {@inheritDoc} * * @see jcifs.SmbPipeHandle#isStale() */ @Override public boolean isStale() { return !this.open || this.handle != null && !this.handle.isValid(); } @Override public synchronized SmbFileHandleImpl ensureOpen() throws CIFSException {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 10.2K bytes - Click Count (0) -
src/main/java/jcifs/SmbPipeHandle.java
boolean isOpen(); /** * Tests whether this file descriptor was previously open but has become invalid. * * @return whether the FD was previously open but became invalid */ boolean isStale(); /** * Unwraps this handle to the specified type. * * @param <T> the type to unwrap to * @param type the class of the type to unwrap to * @return unwrapped instance */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
} @Test @DisplayName("isOpen/isStale reflect handle validity and lifecycle") void isOpen_isStale_transitions() throws Exception { SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\w"); assertFalse(handle.isOpen(), "Initially not open"); assertFalse(handle.isStale(), "Initially not stale"); // After ensureOpen with valid fhCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 16.7K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java
return managedVersions; } public List<ArtifactRepository> getRemoteRepositories() { return remoteRepositories; } public boolean isStale() { File pomFile = pomArtifact.getFile(); if (pomFile != null) { if (pomFile.canRead()) { return length != pomFile.length() || timestamp != pomFile.lastModified();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 11.8K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java
} @Test @DisplayName("Should throw IOException when handle is stale") void testDoSendReceiveFragment_StaleHandle() throws Exception { DcerpcPipeHandle handle = createMockedDcerpcPipeHandle(); when(mockSmbPipeHandleInternal.isStale()).thenReturn(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java
*/ @Override protected int doSendReceiveFragment(final byte[] buf, final int off, final int length, final byte[] inB) throws IOException { if (this.handle.isStale()) { throw new IOException("DCERPC pipe is no longer open"); } int have = this.handle.sendrecv(buf, off, length, inB, getMaxRecv());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.6K bytes - Click Count (0) -
.github/stale.yml
# Number of days of inactivity before an Issue or Pull Request becomes stale daysUntilStale: 30 # Number of days of inactivity before an Issue or Pull Request with the stale label is closed. # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. daysUntilClose: 15
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Jan 24 04:36:59 GMT 2022 - 2K bytes - Click Count (0) -
.github/workflows/stale.yml
name: "Stale" on: schedule: - cron: "0 2 * * *" permissions: contents: read jobs: stale: permissions: issues: write # for actions/stale to close stale issues pull-requests: write # for actions/stale to close stale PRs runs-on: ubuntu-latest env: ACTIONS_STEP_DEBUG: true steps: - name: Close Stale Issues uses: actions/stale@v9 with:Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:51:39 GMT 2026 - 972 bytes - Click Count (0)