Skip to content
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

migrate CheckRemoteWipeRemoteOperation to NextcloudClient #1472

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tobiasKaminsky
Copy link
Member

No description provided.

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Copy link
Contributor

SpotBugs

CategoryBaseNew
Bad practice3535
Correctness3434
Dodgy code2626
Internationalization66
Malicious code vulnerability4949
Multithreaded correctness33
Performance88
Total161161

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 49.34%. Comparing base (8471187) to head (78167d8).
Report is 14 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1472      +/-   ##
============================================
+ Coverage     49.18%   49.34%   +0.16%     
- Complexity     1001     1004       +3     
============================================
  Files           208      208              
  Lines          7817     7820       +3     
  Branches       1016     1016              
============================================
+ Hits           3845     3859      +14     
+ Misses         3419     3406      -13     
- Partials        553      555       +2     
Files Coverage Δ
...esources/users/CheckRemoteWipeRemoteOperation.java 53.57% <68.75%> (+53.57%) ⬆️

... and 1 file with indirect coverage changes

@@ -89,7 +90,7 @@ public static void beforeAll() throws InterruptedException,

url = Uri.parse(arguments.getString("TEST_SERVER_URL"));
String loginName = arguments.getString("TEST_SERVER_USERNAME");
String password = arguments.getString("TEST_SERVER_PASSWORD");
password = arguments.getString("TEST_SERVER_PASSWORD");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this variable was made static.

Comment on lines 69 to +72
if (json.getBoolean(WIPE)) {
result = new RemoteOperationResult(true, postMethod);
result = new RemoteOperationResult<>(true, postMethod);
} else {
result = new RemoteOperationResult(false, postMethod);
result = new RemoteOperationResult<>(false, postMethod);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm not mistaken, this if statement can be simplified to the following expression:

result = new RemoteOperationResult<>(json.getBoolean(WIPE), postMethod);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants