Skip to content

Commit 4c78173

Browse files
authored
Fixing typos with spell-checker plugin. (#234)
1 parent e067f24 commit 4c78173

35 files changed

Lines changed: 302 additions & 319 deletions

File tree

java-analysis-api/src/main/java/com/intellij/java/analysis/refactoring/JavaRefactoringActionHandlerFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static JavaRefactoringActionHandlerFactory getInstance() {
8080
* Creates handler for Introduce Parameter refactoring.<p>
8181
*
8282
* {@link RefactoringActionHandler#invoke(Project, PsiElement[], DataContext)}
83-
* accepts either 1 <code>PsiExpression</code>, that will be an initialzier for introduced parameter,
83+
* accepts either 1 <code>PsiExpression</code>, that will be an initializer for introduced parameter,
8484
* or 1 <code>PsiLocalVariable</code>, that will be replaced with introduced parameter.
8585
*/
8686
public abstract RefactoringActionHandler createIntroduceParameterHandler();
@@ -181,7 +181,7 @@ public static JavaRefactoringActionHandlerFactory getInstance() {
181181
* Creates handler for Introduce Field refactoring.<p>
182182
*
183183
* {@link RefactoringActionHandler#invoke(Project, PsiElement[], DataContext)}
184-
* accepts either 1 <code>PsiExpression</code>, that will be an initialzier for introduced field,
184+
* accepts either 1 <code>PsiExpression</code>, that will be an initializer for introduced field,
185185
* or 1 <code>PsiLocalVariable</code>, that will be replaced with introduced field.
186186
*/
187187
public abstract RefactoringActionHandler createIntroduceFieldHandler();
@@ -190,15 +190,15 @@ public static JavaRefactoringActionHandlerFactory getInstance() {
190190
* Creates handler for Introduce Variable refactoring.<p>
191191
*
192192
* {@link RefactoringActionHandler#invoke(Project, PsiElement[], DataContext)}
193-
* accepts 1 <code>PsiExpression</code>, that will be an initialzier for introduced variable.
193+
* accepts 1 <code>PsiExpression</code>, that will be an initializer for introduced variable.
194194
*/
195195
public abstract RefactoringActionHandler createIntroduceVariableHandler();
196196

197197
/**
198198
* Creates handler for Introduce Constant refactoring.<p>
199199
*
200200
* {@link RefactoringActionHandler#invoke(Project, PsiElement[], DataContext)}
201-
* accepts either 1 <code>PsiExpression</code>, that will be an initialzier for introduced constant,
201+
* accepts either 1 <code>PsiExpression</code>, that will be an initializer for introduced constant,
202202
* or 1 <code>PsiLocalVariable</code>, that will be replaced with introduced constant.
203203
*/
204204
public abstract IntroduceConstantHandler createIntroduceConstantHandler();

java-analysis-impl/src/main/java/com/intellij/java/analysis/impl/codeInspection/deadCode/UnusedDeclarationInspectionBase.java

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
/*
18-
* Created by IntelliJ IDEA.
19-
* User: max
20-
* Date: Oct 12, 2001
21-
* Time: 9:40:45 PM
22-
* To change template for new class use
23-
* Code Style | Class Templates options (Tools | IDE Options).
24-
*/
25-
2616
package com.intellij.java.analysis.impl.codeInspection.deadCode;
2717

2818
import com.intellij.java.analysis.codeInspection.GlobalJavaInspectionContext;
@@ -77,6 +67,10 @@
7767

7868
import java.util.*;
7969

70+
/**
71+
* @author max
72+
* @since 2001-10-12
73+
*/
8074
public abstract class UnusedDeclarationInspectionBase extends GlobalInspectionTool implements OldStyleInspection {
8175
@Deprecated
8276
public boolean ADD_MAINS_TO_ENTRIES = true;
@@ -661,7 +655,7 @@ private static class CodeScanner extends RefJavaVisitor {
661655
@Override
662656
public void visitMethod(@Nonnull RefMethod method) {
663657
if (!myProcessedMethods.contains(method)) {
664-
// Process class's static intitializers
658+
// Process class's static initializers
665659
if (method.isStatic() || method.isConstructor()) {
666660
if (method.isConstructor()) {
667661
addInstantiatedClass(method.getOwnerClass());
@@ -695,7 +689,7 @@ public void visitClass(@Nonnull RefClass refClass) {
695689
((RefClassImpl)refClass).setReachable(true);
696690

697691
if (!alreadyActive) {
698-
// Process class's static intitializers.
692+
// Process class's static initializers.
699693
makeClassInitializersReachable(refClass);
700694
}
701695

@@ -704,7 +698,7 @@ public void visitClass(@Nonnull RefClass refClass) {
704698

705699
@Override
706700
public void visitField(@Nonnull RefField field) {
707-
// Process class's static intitializers.
701+
// Process class's static initializers.
708702
if (!field.isReachable()) {
709703
makeContentReachable((RefJavaElementImpl)field);
710704
makeClassInitializersReachable(field.getOwnerClass());

java-compiler-impl/src/main/java/com/intellij/java/compiler/impl/cache/BoundsParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ public void parseClassTypeSignature(CharacterIterator it, StringBuilder buf) thr
5858

5959
super.parseClassTypeSignature(it, buf);
6060

61-
final String qName = convertToQalifiedName(buf.substring(start + 1, buf.length() - 1));
61+
final String qName = convertToQualifiedName(buf.substring(start + 1, buf.length() - 1));
6262
myInterfaceBounds.add(qName);
6363
}
6464
else {
6565
super.parseClassTypeSignature(it, buf);
6666
}
6767
}
6868

69-
private static String convertToQalifiedName(String ifaceSignature) {
69+
private static String convertToQualifiedName(String ifaceSignature) {
7070
ifaceSignature = ifaceSignature.replaceAll("<.*>", "");
7171
return ifaceSignature.replace('/', '.');
7272
}

java-compiler-impl/src/main/java/com/intellij/java/compiler/impl/javaCompiler/TargetOptionsComponent.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,19 @@ public TargetOptionsComponent(Project project) {
285285
add(tableComp, constraints(0, 2, 2, 1, 1.0, 1.0, GridBagConstraints.BOTH));
286286
}
287287

288-
private static GridBagConstraints constraints(final int gridx,
289-
final int gridy,
290-
final int gridwidth,
291-
final int gridheight,
292-
final double weightx,
293-
final double weighty,
288+
private static GridBagConstraints constraints(final int gridX,
289+
final int gridY,
290+
final int gridWidth,
291+
final int gridHeight,
292+
final double weightX,
293+
final double weightY,
294294
final int fill) {
295-
return new GridBagConstraints(gridx,
296-
gridy,
297-
gridwidth,
298-
gridheight,
299-
weightx,
300-
weighty,
295+
return new GridBagConstraints(gridX,
296+
gridY,
297+
gridWidth,
298+
gridHeight,
299+
weightX,
300+
weightY,
301301
GridBagConstraints.WEST,
302302
fill,
303303
new Insets(5, 5, 0, 0),

java-compiler-impl/src/main/java/consulo/java/compiler/bytecodeProcessing/JavaBytecodeProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ byte[] processClassFile(CompileContext compileContext,
4343
Cache newClassesCache,
4444
int classId,
4545
File file,
46-
ThrowableComputable<byte[], IOException> bytesCompitable,
46+
ThrowableComputable<byte[], IOException> bytesComputable,
4747
InstrumentationClassFinder classFinder) throws IOException, CacheCorruptedException;
4848
}

java-compiler-impl/src/main/java/consulo/java/compiler/bytecodeProcessing/impl/NotNullJavaBytecodeProcessorCompiler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public byte[] processClassFile(CompileContext compileContext,
5656
Cache newClassesCache,
5757
int classId,
5858
File file,
59-
ThrowableComputable<byte[], IOException> bytesCompitable,
59+
ThrowableComputable<byte[], IOException> bytesComputable,
6060
InstrumentationClassFinder classFinder) throws IOException, CacheCorruptedException
6161
{
6262
Sdk jdk = JavaCompilerUtil.getSdkForCompilation(affectedModule);
@@ -70,7 +70,7 @@ public byte[] processClassFile(CompileContext compileContext,
7070
return null;
7171
}
7272

73-
byte[] bytes = bytesCompitable.compute();
73+
byte[] bytes = bytesComputable.compute();
7474
FailSafeClassReader reader = new FailSafeClassReader(bytes, 0, bytes.length);
7575

7676
assert classFinder != null;

java-debugger-impl/src/main/java/com/intellij/java/debugger/impl/DebugUIEnvironment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
import jakarta.annotation.Nullable;
2424

2525
/**
26-
* Created by IntelliJ IDEA.
27-
* User: michael.golubev
26+
* @author michael.golubev
2827
*/
2928
public interface DebugUIEnvironment {
3029
DebugEnvironment getEnvironment();

java-debugger-impl/src/main/java/com/intellij/java/debugger/impl/ui/breakpoints/AnyExceptionBreakpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void createRequest(DebugProcessImpl debugProcess)
7171
@Override
7272
public void processClassPrepare(DebugProcess debugProcess, ReferenceType refType)
7373
{
74-
// should be emty - does not make sense for this breakpoint
74+
// should be empty - does not make sense for this breakpoint
7575
}
7676

7777
@Override

java-execution-api/src/main/java/com/intellij/java/execution/filters/ExceptionFilterFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
import jakarta.annotation.Nonnull;
2525

2626
/**
27-
* User: Irina.Chernushina
28-
* Date: 8/5/11
29-
* Time: 7:46 PM
27+
* @author Irina.Chernushina
28+
* @since 2011-08-05
3029
*/
3130
@ExtensionAPI(ComponentScope.APPLICATION)
3231
public interface ExceptionFilterFactory {

java-execution-impl/src/main/java/com/intellij/java/execution/impl/filters/ExceptionBaseFilterFactory.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
import jakarta.annotation.Nonnull;
2424

2525
/**
26-
* Created by IntelliJ IDEA.
27-
* User: Irina.Chernushina
28-
* Date: 8/8/11
29-
* Time: 12:11 PM
26+
* @author Irina.Chernushina
27+
* @since 2011-08-08
3028
*/
3129
@ExtensionImpl
3230
public class ExceptionBaseFilterFactory implements ExceptionFilterFactory {

0 commit comments

Comments
 (0)