Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
  • Loading branch information
Skrilltrax committed Jun 30, 2020
1 parent 27c9acf commit 848a142
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public class SshApiSessionFactory extends JschConfigSessionFactory {
*/
public static final int POST_SIGNATURE = 301;

private String username;
private Identity identity;
private final String username;
private final Identity identity;

public SshApiSessionFactory(String username, Identity identity) {
this.username = username;
Expand Down Expand Up @@ -109,12 +109,12 @@ public boolean get(URIish uri, CredentialItem... items)
* build.
*/
public static class IdentityBuilder {
private SshAuthenticationConnection connection;
private final SshAuthenticationConnection connection;
private SshAuthenticationApi api;
private String keyId, description, alg;
private byte[] publicKey;
private BaseGitActivity callingActivity;
private SharedPreferences settings;
private final BaseGitActivity callingActivity;
private final SharedPreferences settings;

/**
* Construct a new IdentityBuilder
Expand Down Expand Up @@ -285,10 +285,12 @@ public void onError() {
* A Jsch identity that delegates key operations via the OpenKeychain SSH API
*/
public static class ApiIdentity implements Identity {
private String keyId, description, alg;
private byte[] publicKey;
private Activity callingActivity;
private SshAuthenticationApi api;
private final String keyId;
private final String description;
private final String alg;
private final byte[] publicKey;
private final Activity callingActivity;
private final SshAuthenticationApi api;
private CountDownLatch latch;
private byte[] signature;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ class SshKeyGenFragment : Fragment(R.layout.fragment_ssh_keygen) {
}
}

override fun onDestroyView() {
super.onDestroyView()
}

// Invoked when 'Generate' button of SshKeyGenFragment clicked. Generates a
// private and public key, then replaces the SshKeyGenFragment with a
// ShowSshKeyFragment which displays the public key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ open class PasswordRepository protected constructor() {
companion object {
@JvmStatic
fun getSortOrder(settings: SharedPreferences): PasswordSortOrder {
return valueOf(settings.getString(PreferenceKeys.SORT_ORDER, null) ?: FOLDER_FIRST.name)
return valueOf(settings.getString(PreferenceKeys.SORT_ORDER, null)
?: FOLDER_FIRST.name)
}
}
}
Expand Down

0 comments on commit 848a142

Please sign in to comment.