-
Notifications
You must be signed in to change notification settings - Fork 0
Improved macOS support #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
47df093
Add temporary PR target branch to trigger build
sungshik cdc0b70
Merge branch 'main' into improved-macos-support-main
sungshik 0c16dae
Add interfaces to access native macOS APIs (Dispatch Objects; Dispatc…
sungshik c063710
Add smoke test (and a corresponding auxiliary `main`) to start/stop a…
sungshik 9e0a0c4
Add a facade-like class to open/close an FS event stream without expo…
sungshik 7490e1b
Add license
sungshik 3fe8d47
Add implementation of the `java.nio.file`'s Watch Service API
sungshik 2495559
Add an experimental/untested/unused extension of `MacWatchService` th…
sungshik 587c01a
Add `MacWatchService` and `MacWatchable` to the poller
sungshik d33858f
Improve comments
sungshik ca8ff64
Remove unnecessary volatile modifiers
sungshik 19d1c9b
Merge branch 'file-move-test' into improved-macos-support/file-moves
sungshik 9da18b5
Update minimal working example with support for `USE_EXTENDED_DATA` t…
sungshik ccce387
Make a few static methods non-static to directly use fields (instead …
sungshik c6f901f
Fix exception message
sungshik 7b5ad2b
Merge branch 'main' into improved-macos-support-main
sungshik 9aed20f
Enable macOS-specific test only on macOS
sungshik 0798afd
Reduce visibility of classes/interfaces where possible
sungshik 3589680
Simplify code in a few places (nits)
sungshik c22ca44
Fix confusing comments about deallocation
sungshik d17f342
Fix Checker Framework idioms
sungshik 8b71de6
Merge branch 'improved-macos-support/jna' into improved-macos-support…
sungshik 73b0238
Merge pull request #40 from SWAT-engineering/improved-macos-support/jna
sungshik 8161950
Merge branch 'improved-macos-support-main' into improved-macos-suppor…
sungshik 57ba87e
Disable move/rename test (temporarily)
sungshik 8d85f1f
Make `stream` in `MacWatchKey` final
sungshik 3c14f6a
Fix NPE
sungshik feb2f9b
Simplify code in a few places (nits)
sungshik 76eb623
Use `computeIfAbsent` instead of `putIfAbsent`
sungshik 442b98c
Add system property to configure which WatchService implementation sh…
sungshik 4087179
Remove `MacBlockingWatchService`
sungshik 1cccd6e
Reduce visibility of `MacWatchKey` to package-private
sungshik 1c5742e
Reduce visibility of `MacWatchable` to package-private
sungshik 10692a7
Reduce visibility of internal methods to package-private
sungshik cb07075
Clarify logic for when to ignore events
sungshik ee77302
Add comment to clarify why we don't need to interrupt threads when a …
sungshik 5b04d16
Add helper inner class to group thread-safety-critical code together …
sungshik e21382d
Merge pull request #41 from SWAT-engineering/improved-macos-support/n…
sungshik 51ae70b
Merge branch 'improved-macos-support-main' into improved-macos-suppor…
sungshik e361b18
Refactor variable name in test to use JDK terminology "regular file"
sungshik 3899227
Add extra test for moving directories
sungshik b63c4e6
Add support for renames/moves
sungshik 5652cc2
Add property for JNA version to pom.xml
sungshik edd905b
Rename header in README
sungshik cc62112
Fix system property name
sungshik ec40ead
Extend build workflow to run tests on macOS with/without JNA
sungshik 06da23f
Merge branch 'improved-macos-support/small-fixes' into improved-macos…
sungshik 4aba4b8
Improve test output
sungshik da4156c
Use JNA version property consistently in pom.xml
sungshik 4e3f180
Merge pull request #47 from SWAT-engineering/improved-macos-support/s…
sungshik 3d244ad
Merge pull request #44 from SWAT-engineering/improved-macos-support/f…
sungshik 1d99274
Rename system property key to use FSEvents
sungshik 1b61857
Update README.md
sungshik f2959da
Make sure coverage is still collected
DavyLandman b98ad66
Avoid quoting the command
DavyLandman 4a4a94c
Another CI quote issue solved
DavyLandman 97dc29d
Fix referencing parameter that came in
DavyLandman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package java.nio.file; | ||
|
||
import org.checkerframework.checker.nullness.qual.Nullable; | ||
|
||
public interface WatchService { | ||
@Nullable WatchKey poll(); | ||
|
||
@Nullable WatchKey poll(long timeout, TimeUnit unit) | ||
throws InterruptedException; | ||
} | ||
|
||
public interface WatchEvent<T> { | ||
@Nullable T context(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.