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

Cleanup code #2198

Merged
merged 2 commits into from
Jan 21, 2024
Merged

Cleanup code #2198

merged 2 commits into from
Jan 21, 2024

Conversation

hazendaz
Copy link
Member

No description provided.

@hazendaz hazendaz self-assigned this Jan 21, 2024
final IWindowsIdentity identity = prov.logonUser(userInfo.usri1_name.toString(),
userInfo.usri1_password.toString());
Assertions.assertTrue(identity.getFqn().endsWith("\\" + userInfo.usri1_name.toString()));
final IWindowsIdentity identity = prov.logonUser(userInfo.usri1_name, userInfo.usri1_password.toString());

Check notice

Code scanning / CodeQL

Useless toString on String Note test

Redundant call to 'toString' on a String object.
final IWindowsIdentity identity = prov.logonUser(userInfo.usri1_name.toString(),
userInfo.usri1_password.toString());
Assertions.assertTrue(identity.getFqn().endsWith("\\" + userInfo.usri1_name.toString()));
final IWindowsIdentity identity = prov.logonUser(userInfo.usri1_name, userInfo.usri1_password.toString());

Check notice

Code scanning / CodeQL

Useless toString on String Note test

Redundant call to 'toString' on a String object.
@@ -113,16 +111,14 @@
Assumptions.assumeTrue(LMErr.NERR_Success == Netapi32.INSTANCE.NetUserAdd(null, 1, userInfo, null));
try {
final IWindowsAuthProvider prov = new WindowsAuthProviderImpl();
final IWindowsIdentity identity = prov.logonUser(userInfo.usri1_name.toString(),
userInfo.usri1_password.toString());
final IWindowsIdentity identity = prov.logonUser(userInfo.usri1_name, userInfo.usri1_password.toString());

Check notice

Code scanning / CodeQL

Useless toString on String Note test

Redundant call to 'toString' on a String object.
@hazendaz hazendaz merged commit a8cfa81 into Waffle:master Jan 21, 2024
10 of 11 checks passed
@hazendaz
Copy link
Member Author

Will fix up more toString issues after, was only dealing with the first it highlighted.

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

Successfully merging this pull request may close these issues.

1 participant