-
Notifications
You must be signed in to change notification settings - Fork 1.2k
removed code in comments #11145
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
base: main
Are you sure you want to change the base?
removed code in comments #11145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR cleans up commented-out code across multiple modules and updates various comment headers and Javadoc links.
- Removed leftover debug and commented code in Java and Python files
- Corrected license header comments in API commands
- Updated Javadoc
@see
link formatting
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
utils/src/main/java/com/cloud/utils/xmlobject/XmlObjectParser.java | Removed commented-out debug System.out.println |
utils/src/main/java/com/cloud/utils/xmlobject/XmlObject.java | Removed commented-out debug System.out.println |
services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/template/UploadManagerImpl.java | Removed commented-out method call |
services/secondary-storage/server/src/main/java/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java | Removed commented-out path logic |
services/console-proxy/rdpconsole/src/main/java/vncclient/vnc/Vnc33Hello.java | Removed commented debug properties |
services/console-proxy/rdpconsole/src/main/java/rdpclient/rdp/ClientConfirmActivePDU.java | Updated Javadoc @see link formatting |
services/console-proxy/rdpconsole/src/main/java/rdpclient/clip/ClipboardDataFormat.java | Removed commented-out clipboard formats |
services/console-proxy/rdpconsole/src/main/java/rdpclient/RdpClient.java | Removed commented-out debug override |
scripts/vm/hypervisor/xenserver/xenserver56fp1/NFSSR.py | Removed commented-out directory-creation logic |
scripts/vm/hypervisor/xenserver/xcpserver/NFSSR.py | Removed commented-out directory-creation logic |
scripts/vm/hypervisor/xenserver/xcposs/NFSSR.py | Removed commented-out directory-creation logic |
scripts/vm/hypervisor/xenserver/perfmon.py | Removed commented-out XenAPI pool code |
scripts/vm/hypervisor/ovm3/cloudstack.py | Removed commented-out OVS agent commands |
plugins/storage/volume/storpool/src/main/java/org/apache/cloudstack/storage/datastore/util/StorPoolHelper.java | Removed commented-out custom logger setup |
plugins/storage/volume/nexenta/src/main/java/org/apache/cloudstack/storage/datastore/driver/NexentaPrimaryDataStoreDriver.java | Removed commented-out DAO update call |
plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management/ManagementServerMock.java | Simplified exception handling in test mock |
plugins/network-elements/cisco-vnmc/src/main/java/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java | Removed commented-out XML concatenation logic |
engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/VolumeDataStoreVO.java | Removed commented-out constructor calls |
engine/schema/src/main/java/com/cloud/dc/dao/ClusterVSMMapDaoImpl.java | Removed redundant super() call |
engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java | Removed commented ISO-handling code |
api/src/main/java/org/apache/cloudstack/api/command/user/template/ListTemplatePermissionsCmd.java | Corrected license header comment |
api/src/main/java/org/apache/cloudstack/api/command/user/iso/ListIsoPermissionsCmd.java | Corrected license header comment |
api/src/main/java/org/apache/cloudstack/api/command/admin/template/ListTemplatePermissionsCmdByAdmin.java | Corrected license header comment |
api/src/main/java/org/apache/cloudstack/api/command/admin/iso/ListIsoPermissionsCmdByAdmin.java | Corrected license header comment |
Comments suppressed due to low confidence (2)
services/console-proxy/rdpconsole/src/main/java/rdpclient/rdp/ClientConfirmActivePDU.java:30
- [nitpick] The Javadoc link text is not descriptive; consider updating the anchor text to something like 'MSDN documentation for Client Confirm Active PDU' to improve clarity.
* @see <a href="http://msdn.microsoft.com/en-us/library/cc240488.aspx">microsoft msdn explanation</a>
api/src/main/java/org/apache/cloudstack/api/command/user/template/ListTemplatePermissionsCmd.java:1
- The license header seems incomplete and ends abruptly; please restore the full standard ASF header (e.g., 'under one or more contributor license agreements').
// Licensed to the Apache Software Foundation (ASF) under one
...il/src/test/java/org/apache/cloudstack/network/contrail/management/ManagementServerMock.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11145 +/- ##
=============================================
- Coverage 16.58% 3.90% -12.68%
=============================================
Files 5743 414 -5329
Lines 510706 33743 -476963
Branches 62119 6065 -56054
=============================================
- Hits 84689 1319 -83370
+ Misses 416543 32266 -384277
+ Partials 9474 158 -9316
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…ache/cloudstack/network/contrail/management/ManagementServerMock.java Co-authored-by: Copilot <[email protected]>
@blueorangutan package |
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 14052 |
Description
This PR fixes: #3777 using ai help a lot of code in comments was removed. By far not complete yet as “token expired”. Also I had to revert a lot of the suggestions as they where either completely invalid or not relevant to the premise “not-explanetary code in comment” , like dimand operators 🤯 or log refrasings 😡 .
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?