-
Notifications
You must be signed in to change notification settings - Fork 186
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
Cleanup code #2198
Conversation
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
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
@@ -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
Will fix up more toString issues after, was only dealing with the first it highlighted. |
No description provided.