-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java.Intreop] Clarify JniValueManager method names (#238)
Appease Gendarme's [UseCorrectDisposeSignaturesRule][0] logic: [0]: https://github.com/spouliot/gendarme/wiki/Gendarme.Rules.Design.UseCorrectDisposeSignaturesRule(2.10) Gendarme doesn't like `Dispose()` overloads except those which implement the `IDisposable` pattern. Meaning, specifically, Gendarme doesn't like `JniRuntime.JniValueManager.Dispose(IJavaPeerable)`. Rename `JniRuntime.JniValueManager.Dispose(IJavaPeerable)` to `JniRuntime.JniValueManager.DisposePeer(IJavaPeerable)`, and then for consistency rename many of the other `JniRuntime.JniValueManager` methods to likewise have a `Peer` suffix. * `Add(IJavaPeerable)` becomes `AddPeer(IJavaPeerable)` * `Collect()` becomes `CollectPeers()` * `Construct(IJavaPeerable)` becomes `ConstructPeer(IJavaPeerable)` * `Dispose(IJavaPeerable)` becomes `DisposePeer(IJavaPeerable)` * `DisposeUnlessReferenced(IJavaPeerable)` becomes `DisposePeerUnlessReferenced(IJavaPeerable)` * `Finalize(IJavaPeerable)` becomes `FinalizePeer(IJavaPeerable)` * `Remove(IJavaPeerable)` becomes `RemovePeer(IJavaPeerable)`
- Loading branch information
1 parent
9ab5290
commit 19379a3
Showing
10 changed files
with
47 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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