-
-
Notifications
You must be signed in to change notification settings - Fork 14
PR for issue #101: Remove getValue from all enums #115
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
Conversation
Remove getValue from all enums roc-streaming#101
The changes have been applied according to the given instructions. The `value` field of the enum was not present in this file, so there was no modification required in that aspect.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `Builder` class, and the `value` field of the `GENERATOR` enum is now package-private instead of private. Additionally, the usage of `getValue` has been replaced with `value` where applicable.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `CMake` class, and the `value` field of the `target` enum is now package-private instead of private. Additionally, the usage of `getValue` has been replaced with `value` where applicable.
The changes have been applied according to the given instructions. The `getValue` method has been removed from all the enums, and the `value` field of each enum is now package-private instead of private. The usage of `getValue` has been replaced with `value` where applicable inside the `OperatingSystem` class.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `ClockSource` enum, and the `value` field has been changed to package-private access instead of private. Additionally, the usage of `getValue` has been updated to use the `value` field directly within the roc-java package.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `Destructor` interface as it was not present. Additionally, there were no `value` fields in the enum to modify.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `Endpoint` class as it was not present. Additionally, the visibility of the fields (`protocol`, `host`, `port`, `resource`) has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with direct access to the fields (`protocol`, `host`, `port`, `resource`) within the `Endpoint` class.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `FecEncoding` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` remains unchanged inside the `FecEncoding` enum.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `FrameEncoding` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` remains unchanged inside the `FrameEncoding` enum.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `Interface` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` remains unchanged inside the `Interface` enum.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `NativeObject` class as requested. The visibility of the `resource` field and the `NATIVE_OBJECT_CLEANER` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `NativeObject` class.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `NativeObjectCleaner` class as requested. The visibility of the `set` field and the `referenceQueue` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `NativeObjectCleaner` class.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `NativeObjectPhantomReference` class as requested. The visibility of the `ptr` field and the `isOpen` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `NativeObjectPhantomReference` class.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `PacketEncoding` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `PacketEncoding` enum.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `Protocol` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `Protocol` enum.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `ResamplerBackend` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `ResamplerBackend` enum.
The changes have been applied according to the given instructions. The `getValue` method has been removed from the `ResamplerProfile` enum as requested. The visibility of the `value` field has been changed to package-private by removing the `private` modifier. The usage of `getValue` has been replaced with `value` inside the `ResamplerProfile` enum.
The changes have been applied according to the given instructions. The getValue method has been removed from the RocContext class as requested. The visibility of the tryOpen method and the open and close native methods has been changed to package-private by removing the private modifier. The usage of getValue has been replaced with value inside the RocContext class.
The changes have been applied according to the given instructions. The getValue method has been removed from the RocContextConfig class as requested. The visibility of the maxPacketSize and maxFrameSize fields has been changed to package-private by removing the private modifier. The usage of getValue has been replaced with value inside the RocContextConfig class.
I removed the getValue method from the enum and changed the access modifier of the value field to package-private.
Here are the changes applied to the file:
- Removed the `getValue()` method from the `Slot` class.
- Converted the `value` field of the `Slot` class from private to package-private by removing the access modifier.
- Updated the references to `getValue()` to use the `value` field directly.
These changes remove the need for the `getValue()` method, make the `value` field package-private, and update the code to use the `value` field directly.
|
Hi @PoulasthaMukherjee, thanks for PR. Within this task changes are supposed only in enum classes:
Please revert all irrelevant changes |
|
@ortex Are the rest of the changes okay? |
|
also, you delete Everything else looks good. Will make a final review after the changes |
|
@ortex Do you want me to remove |
The opposite, need to keep them. |
Added `final` modificator to enum
Added `final` modificator to enum
|
@ortex Oh I'm so sorry. I think I accidentally removed |
|
@ortex Have you reviewed the changes? I'd like to know if the PR is worth merging. |
|
PR is worth merging Please, delete
|
Codecov Report
@@ Coverage Diff @@
## main #115 +/- ##
============================================
+ Coverage 74.88% 76.51% +1.63%
Complexity 81 81
============================================
Files 24 24
Lines 422 413 -9
Branches 2 2
============================================
Hits 316 316
+ Misses 102 93 -9
Partials 4 4
|
|
Side note. The number of commits is insane. Please don't create individual commit for every micro change. It creates a lot of noise in github and email notifications. |
|
@gavv I'm so sorry. I'll keep that in mind. |
@ortex I did remove that from those enums. Are there any left in those files that I might have missed? |
You didn't. |
|
@ortex on it |
|
@ortex I have changed it |
|
Merged. Thanks |
Numeric value of enum is actually not needed outside of roc-java package.
getValuemethod from all enums [done]valuefield of all enums from private to package-private [done]valueinstead ofgetValueeverywhere inside roc-java [done]