From 51433a2080c596bebc79230d4979f8ed8cda3594 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Tue, 7 Feb 2023 11:00:22 +0100 Subject: [PATCH] Fix typo 'speedup' when used as a verb GitOrigin-RevId: 55935e091477ffbb538e9ea45fbec06b607d2f4e --- .../debugger/engine/SuspendContextImpl.java | 2 +- .../intellij/ui/classFilter/ClassFilter.java | 2 +- .../jetbrains/intellij/build/BuildOptions.kt | 4 ++-- .../testSrc/StoreTestSuite.kt | 18 ++---------------- .../intellij/ide/util/FileStructurePopup.java | 4 ++-- .../intellij/openapi/util/io/FileUtilRt.java | 4 ++-- .../util/resources/misc/registry.properties | 2 +- .../com/intellij/openapi/util/ObjectNode.java | 5 +++-- plugins/git4idea/resources/META-INF/plugin.xml | 2 +- .../field/AbstractFieldProcessor.java | 2 +- 10 files changed, 16 insertions(+), 29 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java b/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java index b24ae0955635..675b15c5a2a4 100644 --- a/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java +++ b/java/debugger/impl/src/com/intellij/debugger/engine/SuspendContextImpl.java @@ -114,7 +114,7 @@ public abstract class SuspendContextImpl extends XSuspendContext implements Susp DebuggerManagerThreadImpl.assertIsManagerThread(); try { if (!Patches.IBM_JDK_DISABLE_COLLECTION_BUG) { - // delay enable collection to speedup the resume + // delay enable collection to speed up the resume for (ObjectReference r : myKeptReferences) { myDebugProcess.getManagerThread().schedule(PrioritizedTask.Priority.LOWEST, () -> DebuggerUtilsEx.enableCollection(r)); } diff --git a/java/openapi/src/com/intellij/ui/classFilter/ClassFilter.java b/java/openapi/src/com/intellij/ui/classFilter/ClassFilter.java index a876324a2e63..0520c6f82770 100644 --- a/java/openapi/src/com/intellij/ui/classFilter/ClassFilter.java +++ b/java/openapi/src/com/intellij/ui/classFilter/ClassFilter.java @@ -28,7 +28,7 @@ public class ClassFilter implements JDOMExternalizable, Cloneable{ @Attribute("include") public boolean INCLUDE = true; - private Matcher myMatcher; // to speedup matching + private Matcher myMatcher; // to speed up matching public ClassFilter() { } diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/BuildOptions.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/BuildOptions.kt index 31b4733fbfc8..1014345cb658 100644 --- a/platform/build-scripts/src/org/jetbrains/intellij/build/BuildOptions.kt +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/BuildOptions.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.intellij.build import com.intellij.util.SystemProperties @@ -39,7 +39,7 @@ class BuildOptions { */ const val OS_NONE = "none" - /** Pre-builds SVG icons for all SVG resource files to speedup icons loading at runtime */ + /** Pre-builds SVG icons for all SVG resource files to speed up icons loading at runtime */ const val SVGICONS_PREBUILD_STEP = "svg_icons_prebuild" /** Build actual searchableOptions.xml file. If skipped; the (possibly outdated) source version of the file will be used. */ diff --git a/platform/configuration-store-impl/testSrc/StoreTestSuite.kt b/platform/configuration-store-impl/testSrc/StoreTestSuite.kt index fc34cc3812cb..642a37eb35ea 100644 --- a/platform/configuration-store-impl/testSrc/StoreTestSuite.kt +++ b/platform/configuration-store-impl/testSrc/StoreTestSuite.kt @@ -1,25 +1,11 @@ -/* - * Copyright 2000-2015 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.configurationStore import com.intellij.configurationStore.xml.XmlElementStorageTest import org.junit.runner.RunWith import org.junit.runners.Suite -// All in package is very slow, so, we have to use Suite to speedup +// Testing 'All in package' is very slow, so we have to use a Suite to speed it up. @RunWith(Suite::class) @Suite.SuiteClasses( ApplicationStoreTest::class, diff --git a/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java b/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java index 3fc4ac9302d5..babc66c5972b 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java +++ b/platform/lang-impl/src/com/intellij/ide/util/FileStructurePopup.java @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.ide.util; import com.intellij.CommonBundle; @@ -146,7 +146,7 @@ public final class FileStructurePopup implements Disposable, TreeActionsOwner { myFileEditor = fileEditor; myTreeModel = treeModel; - //Stop code analyzer to speedup EDT + //Stop code analyzer to speed up the EDT DaemonCodeAnalyzer.getInstance(myProject).disableUpdateByTimer(this); myTreeActionsOwner = new TreeStructureActionsOwner(myTreeModel); diff --git a/platform/util-rt/src/com/intellij/openapi/util/io/FileUtilRt.java b/platform/util-rt/src/com/intellij/openapi/util/io/FileUtilRt.java index aad694edd5cb..c670006f0e2d 100644 --- a/platform/util-rt/src/com/intellij/openapi/util/io/FileUtilRt.java +++ b/platform/util-rt/src/com/intellij/openapi/util/io/FileUtilRt.java @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.openapi.util.io; import com.intellij.openapi.diagnostic.LoggerRt; @@ -115,7 +115,7 @@ public class FileUtilRt { if (separatorChar != '/') { path = path.replace(separatorChar, '/'); } - // trying to speedup the common case when there are no "//" or "/." + // trying to speed up the common case when there are no "//" or "/." int index = -1; do { index = path.indexOf('/', index+1); diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index df639fe06aa9..35ee66e7ab50 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -586,7 +586,7 @@ debugger.field.pin.to.top=true debugger.jb.jdi=true debugger.jb.jdi.description=Use the new forked jdi implementation debugger.async.jdi=true -debugger.async.jdi.description=Use async jdi to speedup jdwp communication +debugger.async.jdi.description=Use async jdi to speed up jdwp communication debugger.async.frames=true debugger.merge.pause.and.resume=false debugger.merge.pause.and.resume.description=Merge "Pause" and "Resume" buttons on toolbar diff --git a/platform/util/src/com/intellij/openapi/util/ObjectNode.java b/platform/util/src/com/intellij/openapi/util/ObjectNode.java index 83abc439bd62..e819d379cb0c 100644 --- a/platform/util/src/com/intellij/openapi/util/ObjectNode.java +++ b/platform/util/src/com/intellij/openapi/util/ObjectNode.java @@ -1,4 +1,4 @@ -// Copyright 2000-2020 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-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.openapi.util; import com.intellij.openapi.Disposable; @@ -250,7 +250,8 @@ final class ObjectNode { /** * A collection of child ObjectNodes. - * Backed up either by an {@code ArrayList} (when the number of children is small) or {@code Map} otherwise, to speedup lookup + * Backed either by an {@code ArrayList} (when the number of children is small) + * or {@code Map} otherwise, to speed up the lookups. */ private interface NodeChildren { @Nullable ObjectNode removeChildNode(@NotNull Disposable object); diff --git a/plugins/git4idea/resources/META-INF/plugin.xml b/plugins/git4idea/resources/META-INF/plugin.xml index f2a7d65d624d..b20d44e2e930 100644 --- a/plugins/git4idea/resources/META-INF/plugin.xml +++ b/plugins/git4idea/resources/META-INF/plugin.xml @@ -538,7 +538,7 @@ + description="Use 'git restore --staged --worktree --source=HEAD -- paths' instead of 'git reset --hard' to speed up worktree cleanup."/> ownSignatures = CachedValuesManager.getCachedValue(psiClass, () -> { List signatures = ContainerUtil.map(PsiClassUtil.collectClassMethodsIntern(psiClass),