mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed unnecessary unicode symbols
This commit is contained in:
+1
-1
@@ -271,7 +271,7 @@ class ProjectInspectionProfileManager(val project: Project,
|
||||
@Synchronized fun useApplicationProfile(name: String) {
|
||||
schemeManager.currentSchemeName = null
|
||||
state.useProjectProfile = false
|
||||
// yes, we reuse the same field - useProjectProfile field will be used to distinguish — is it app or project level
|
||||
// yes, we reuse the same field - useProjectProfile field will be used to distinguish - is it app or project level
|
||||
// to avoid data format change
|
||||
state.projectProfile = name
|
||||
}
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ abstract class MacDistributionCustomizer {
|
||||
String icnsPathForEAP = null
|
||||
|
||||
/**
|
||||
* An unique identifier string that specifies the app type of the bundle. The string should be in reverse DNS format using only the Roman alphabet in upper and lower case (A–Z, a–z), the dot (“.”), and the hyphen (“-”)
|
||||
* An unique identifier string that specifies the app type of the bundle. The string should be in reverse DNS format using only the Roman alphabet in upper and lower case (A-Z, a-z), the dot ("."), and the hyphen ("-")
|
||||
* See <a href="https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070">CFBundleIdentifier</a> for details
|
||||
*/
|
||||
String bundleIdentifier
|
||||
|
||||
@@ -254,7 +254,7 @@ fun HttpRequest.isSignedRequest(): Boolean {
|
||||
?: QueryStringDecoder(uri()).parameters().get(TOKEN_PARAM_NAME)?.firstOrNull()
|
||||
?: referrer?.let { QueryStringDecoder(it).parameters().get(TOKEN_PARAM_NAME)?.firstOrNull() }
|
||||
|
||||
// we don't invalidate token — allow to make subsequent requests using it (it is required for our javadoc DocumentationComponent)
|
||||
// we don't invalidate token - allow to make subsequent requests using it (it is required for our javadoc DocumentationComponent)
|
||||
return token != null && tokens.getIfPresent(token) != null
|
||||
}
|
||||
|
||||
|
||||
@@ -169,7 +169,7 @@ internal class KeePassCredentialStore(keyToValue: Map<CredentialAttributes, Cred
|
||||
}
|
||||
else {
|
||||
val group = db.rootGroup.getOrCreateGroup(GROUP_NAME)
|
||||
// should be the only credentials per service name — find without user name
|
||||
// should be the only credentials per service name - find without user name
|
||||
val userName = attributes.userName ?: credentials.userName
|
||||
var entry = group.getEntry(attributes.serviceName, if (attributes.serviceName == SERVICE_NAME_PREFIX) userName else null)
|
||||
if (entry == null) {
|
||||
|
||||
@@ -33,7 +33,7 @@ import gnu.trove.THashSet
|
||||
|
||||
/**
|
||||
* Why this class is required if we have StorageVirtualFileTracker?
|
||||
* Because StorageVirtualFileTracker doesn't detect (intentionally) parent file changes —
|
||||
* Because StorageVirtualFileTracker doesn't detect (intentionally) parent file changes -
|
||||
*
|
||||
* If module file is foo/bar/hello.iml and directory foo is renamed to oof then we must update module path.
|
||||
* And StorageVirtualFileTracker doesn't help us here (and is not going to help by intention).
|
||||
|
||||
@@ -93,12 +93,12 @@ fun OneTimeString(value: ByteArray, offset: Int = 0, length: Int = value.size -
|
||||
/**
|
||||
* clearable only if specified explicitly.
|
||||
*
|
||||
* Case —
|
||||
* Case
|
||||
* 1) you create OneTimeString manually on user input.
|
||||
* 2) you store it in CredentialStore
|
||||
* 3) you consume it... BUT native credentials store do not store credentials immediately — write is postponed, so, will be an critical error.
|
||||
* 3) you consume it... BUT native credentials store do not store credentials immediately - write is postponed, so, will be an critical error.
|
||||
*
|
||||
* so, currently — only credentials store implementations should set this flag on get.
|
||||
* so, currently - only credentials store implementations should set this flag on get.
|
||||
*/
|
||||
@Suppress("EqualsOrHashCode")
|
||||
class OneTimeString @JvmOverloads constructor(value: CharArray, offset: Int = 0, length: Int = value.size, private var clearable: Boolean = false) : CharArrayCharSequence(value, offset, offset + length) {
|
||||
|
||||
@@ -28,7 +28,7 @@ internal const val VERTICAL_GAP = 5
|
||||
fun createLayoutBuilder() = LayoutBuilder(MigLayoutBuilder())
|
||||
|
||||
// cannot use the same approach as in case of Row because cannot access to `build` method in inlined `panel` method,
|
||||
// in any case Kotlin compiler does the same thing —
|
||||
// in any case Kotlin compiler does the same thing -
|
||||
// "When a protected member is accessed from an inline function, a public accessor method is created to provide an access to that protected member from the outside of the class where the function will be inlined to."
|
||||
// (https://youtrack.jetbrains.com/issue/KT-12215)
|
||||
interface LayoutBuilderImpl {
|
||||
|
||||
@@ -52,7 +52,7 @@ abstract class HttpRequestHandler {
|
||||
@SuppressWarnings("SpellCheckingInspection")
|
||||
open fun isAccessible(request: HttpRequest): Boolean {
|
||||
val host = request.host
|
||||
// If attacker.com DNS rebound to 127.0.0.1 and user open site directly — no Origin or Referrer headers.
|
||||
// If attacker.com DNS rebound to 127.0.0.1 and user open site directly - no Origin or Referrer headers.
|
||||
// So we should check Host header.
|
||||
return host != null && request.isLocalOrigin() && parseAndCheckIsLocalHost("http://$host")
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ abstract class SchemeManagerFactory {
|
||||
}
|
||||
|
||||
/**
|
||||
* directoryName — like "keymaps".
|
||||
* directoryName - like "keymaps".
|
||||
*/
|
||||
@JvmOverloads
|
||||
fun <SCHEME : Scheme, MUTABLE_SCHEME : SCHEME> create(directoryName: String, processor: SchemeProcessor<SCHEME, MUTABLE_SCHEME>, presentableName: String? = null, directoryPath: Path? = null): SchemeManager<SCHEME> {
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ public class PublicSshKeyFilePanel {
|
||||
private void createUIComponents() {
|
||||
myPublicSshKeyTooltipHyperlink =
|
||||
TooltipUtil.createTooltip(
|
||||
"Specify the location of your public SSH key file (.pub). You won’t be able to use the cloud unless you register you public key there. However, if you’ve already done that, you don’t have to specify the key now.");
|
||||
"Specify the location of your public SSH key file (.pub). You won't be able to use the cloud unless you register you public key there. However, if you've already done that, you don't have to specify the key now.");
|
||||
}
|
||||
|
||||
public JComponent getMainPanel() {
|
||||
|
||||
+1
-1
@@ -98,7 +98,7 @@ abstract class MappingList(private val mappings: List<MappingEntry>) : Mappings
|
||||
}
|
||||
else {
|
||||
// https://code.google.com/p/google-web-toolkit/issues/detail?id=9103
|
||||
// We skipIfColumnEquals because GWT has two entries — source position equals, but generated no. We must use first entry (at least, in case of GWT it is correct)
|
||||
// We skipIfColumnEquals because GWT has two entries - source position equals, but generated no. We must use first entry (at least, in case of GWT it is correct)
|
||||
val nextMapping = getNextOnTheSameLine(middle)
|
||||
if (nextMapping == null) {
|
||||
return middle
|
||||
|
||||
@@ -91,7 +91,7 @@ public class TestStatusLine extends JPanel {
|
||||
myState.append(result + " done: ");
|
||||
appendFailuresAndIgnores(failuresCount, ignoredTestsCount);
|
||||
}
|
||||
myState.append(" – " + StringUtil.formatDuration(duration), SimpleTextAttributes.GRAY_ATTRIBUTES);
|
||||
myState.append(" - " + StringUtil.formatDuration(duration), SimpleTextAttributes.GRAY_ATTRIBUTES);
|
||||
}
|
||||
|
||||
private static String getTestsTotalMessage(int testsTotal) {
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ public class GradleCommandLineOptionsProvider {
|
||||
//options.addOption(OptionBuilder.withLongOpt("build-file").withDescription("Specifies the build file.").hasArg().create('b'));
|
||||
//options.addOption(OptionBuilder.withLongOpt("help").withDescription("Shows a help message.").create('h'));
|
||||
//options.addOption(OptionBuilder.withLongOpt("version").withDescription("Prints version info.").create('v'));
|
||||
//options.addOption(OptionBuilder.withLongOpt("all").withDescription("Shows additional detail in the task listing. See Section 11.6.2, “Listing tasks”.").create());
|
||||
//options.addOption(OptionBuilder.withLongOpt("all").withDescription("Shows additional detail in the task listing. See Section 11.6.2, "Listing tasks".").create());
|
||||
|
||||
ourOptions = options;
|
||||
}
|
||||
|
||||
+3
-3
@@ -35,9 +35,9 @@ import static org.jetbrains.plugins.groovy.lang.psi.impl.utils.ParenthesesUtils.
|
||||
|
||||
/**
|
||||
* e.g.
|
||||
* !a.asBoolean() → !a
|
||||
* a.asBoolean() → !!a
|
||||
* if(a.asBoolean()) → if(a)
|
||||
* !a.asBoolean() -> !a
|
||||
* a.asBoolean() -> !!a
|
||||
* if(a.asBoolean()) -> if(a)
|
||||
*/
|
||||
class AsBooleanTransformation extends Transformation {
|
||||
public static final String NEGATION = mLNOT.toString();
|
||||
|
||||
+2
-2
@@ -24,8 +24,8 @@ import java.util.Objects;
|
||||
|
||||
/**
|
||||
* e.g.
|
||||
* a.equals(b) → (a == b)
|
||||
* !a.equals(b) → (a != b)
|
||||
* a.equals(b) -> (a == b)
|
||||
* !a.equals(b) -> (a != b)
|
||||
*/
|
||||
abstract class BinaryTransformation extends Transformation {
|
||||
|
||||
|
||||
@@ -99,7 +99,7 @@ private fun deleteRepository(icsManager: IcsManager) {
|
||||
val repositoryManager = icsManager.repositoryManager
|
||||
|
||||
// attempt to fetch, merge and push to ensure that latest changes in the deleted user repository will be not lost
|
||||
// yes, — delete repository doesn't mean "AAA, delete it, delete". It means just that user doesn't need it at this moment.
|
||||
// yes, - delete repository doesn't mean "AAA, delete it, delete". It means just that user doesn't need it at this moment.
|
||||
// It is user responsibility later to delete git repository or do whatever user want. Our responsibility is to not loose user changes.
|
||||
if (!repositoryManager.canCommit()) {
|
||||
LOG.info("Commit on repository delete skipped: repository is not committable")
|
||||
|
||||
@@ -98,7 +98,7 @@ internal class SyncManager(private val icsManager: IcsManager, private val autoS
|
||||
|
||||
if (localRepositoryInitializer == null) {
|
||||
try {
|
||||
// we commit before even if sync "OVERWRITE_LOCAL" — preserve history and ability to undo
|
||||
// we commit before even if sync "OVERWRITE_LOCAL" - preserve history and ability to undo
|
||||
repositoryManager.commit(indicator, syncType)
|
||||
// well, we cannot commit? No problem, upcoming action must do something smart and solve the situation
|
||||
}
|
||||
|
||||
@@ -78,9 +78,9 @@ interface ULabeled : UElement {
|
||||
|
||||
/**
|
||||
* In some cases (user typing, syntax error) elements, which are supposed to exist, are missing.
|
||||
* The obvious example — the lack of the condition expression in [UIfExpression], e.g. `if () return`.
|
||||
* The obvious example - the lack of the condition expression in [UIfExpression], e.g. 'if () return'.
|
||||
* [UIfExpression.condition] is required to return not-null values,
|
||||
* and Uast implementation should return something instead of `null` in this case.
|
||||
* and Uast implementation should return something instead of 'null' in this case.
|
||||
*
|
||||
* Use [UastEmptyExpression] in this case.
|
||||
*/
|
||||
|
||||
@@ -2043,19 +2043,19 @@ div {
|
||||
attribute inheritnum { db.orderedlist.inheritnum.enumeration }
|
||||
db.orderedlist.numeration.enumeration =
|
||||
|
||||
## Specifies Arabic numeration (1, 2, 3, …)
|
||||
## Specifies Arabic numeration (1, 2, 3, ...)
|
||||
"arabic"
|
||||
|
|
||||
## Specifies upper-case alphabetic numeration (A, B, C, …)
|
||||
## Specifies upper-case alphabetic numeration (A, B, C, ...)
|
||||
"upperalpha"
|
||||
|
|
||||
## Specifies lower-case alphabetic numeration (a, b, c, …)
|
||||
## Specifies lower-case alphabetic numeration (a, b, c, ...)
|
||||
"loweralpha"
|
||||
|
|
||||
## Specifies upper-case Roman numeration (I, II, III, …)
|
||||
## Specifies upper-case Roman numeration (I, II, III, ...)
|
||||
"upperroman"
|
||||
|
|
||||
## Specifies lower-case Roman numeration (i, ii, iii …)
|
||||
## Specifies lower-case Roman numeration (i, ii, iii ...)
|
||||
"lowerroman"
|
||||
db.orderedlist.numeration.attribute =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user