From 863fca645ab53810a00bcbeb858b0bd1945d710b Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Fri, 11 Jan 2019 17:45:10 +0100 Subject: [PATCH] get rid of getOrCreateEntry to make code more clear --- .../com/intellij/credentialStore/CredentialAttributes.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt b/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt index d7174e2e3917..602f343cf010 100644 --- a/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt +++ b/platform/platform-api/src/com/intellij/credentialStore/CredentialAttributes.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.credentialStore import com.intellij.ide.passwordSafe.PasswordSafe @@ -17,7 +17,10 @@ fun generateServiceName(subsystem: String, key: String) = "$SERVICE_NAME_PREFIX * * [requestor] is deprecated (never use it in a new code). */ -data class CredentialAttributes @JvmOverloads constructor(val serviceName: String, val userName: String? = null, val requestor: Class<*>? = null, val isPasswordMemoryOnly: Boolean = false) +data class CredentialAttributes @JvmOverloads constructor(val serviceName: String, + val userName: String? = null, + val requestor: Class<*>? = null, + val isPasswordMemoryOnly: Boolean = false) // user cannot be empty, but password can be class Credentials(user: String?, val password: OneTimeString? = null) {