Fix typos

See gh-2019
This commit is contained in:
Hanope
2018-11-19 12:43:58 +09:00
committed by Stephane Nicoll
parent 729ce4108d
commit bfb49c7249
76 changed files with 137 additions and 137 deletions

View File

@@ -524,7 +524,7 @@ public class ClassReader {
classVisitor.visit(
readInt(cpInfoOffsets[1] - 7), accessFlags, thisClass, signature, superClass, interfaces);
// Visit the SourceFile and SourceDebugExtenstion attributes.
// Visit the SourceFile and SourceDebugExtension attributes.
if ((parsingOptions & SKIP_DEBUG) == 0
&& (sourceFile != null || sourceDebugExtension != null)) {
classVisitor.visitSource(sourceFile, sourceDebugExtension);
@@ -2973,10 +2973,10 @@ public class ClassReader {
}
// Parse the method descriptor, one argument type descriptor at each iteration. Start by
// skipping the first method descriptor character, which is always '('.
int currentMethodDescritorOffset = 1;
int currentMethodDescriptorOffset = 1;
while (true) {
int currentArgumentDescriptorStartOffset = currentMethodDescritorOffset;
switch (methodDescriptor.charAt(currentMethodDescritorOffset++)) {
int currentArgumentDescriptorStartOffset = currentMethodDescriptorOffset;
switch (methodDescriptor.charAt(currentMethodDescriptorOffset++)) {
case 'Z':
case 'C':
case 'B':
@@ -2994,26 +2994,26 @@ public class ClassReader {
locals[numLocal++] = Opcodes.DOUBLE;
break;
case '[':
while (methodDescriptor.charAt(currentMethodDescritorOffset) == '[') {
++currentMethodDescritorOffset;
while (methodDescriptor.charAt(currentMethodDescriptorOffset) == '[') {
++currentMethodDescriptorOffset;
}
if (methodDescriptor.charAt(currentMethodDescritorOffset) == 'L') {
++currentMethodDescritorOffset;
while (methodDescriptor.charAt(currentMethodDescritorOffset) != ';') {
++currentMethodDescritorOffset;
if (methodDescriptor.charAt(currentMethodDescriptorOffset) == 'L') {
++currentMethodDescriptorOffset;
while (methodDescriptor.charAt(currentMethodDescriptorOffset) != ';') {
++currentMethodDescriptorOffset;
}
}
locals[numLocal++] =
methodDescriptor.substring(
currentArgumentDescriptorStartOffset, ++currentMethodDescritorOffset);
currentArgumentDescriptorStartOffset, ++currentMethodDescriptorOffset);
break;
case 'L':
while (methodDescriptor.charAt(currentMethodDescritorOffset) != ';') {
++currentMethodDescritorOffset;
while (methodDescriptor.charAt(currentMethodDescriptorOffset) != ';') {
++currentMethodDescriptorOffset;
}
locals[numLocal++] =
methodDescriptor.substring(
currentArgumentDescriptorStartOffset + 1, currentMethodDescritorOffset++);
currentArgumentDescriptorStartOffset + 1, currentMethodDescriptorOffset++);
break;
default:
context.currentFrameLocalCount = numLocal;

View File

@@ -335,7 +335,7 @@ public class Enhancer extends AbstractClassGenerator {
}
/**
* Set whether methods called from within the proxy's constructer
* Set whether methods called from within the proxy's constructor
* will be intercepted. The default value is true. Unintercepted methods
* will call the method of the proxy's base class, if it exists.
* @param interceptDuringConstruction whether to intercept methods called from the constructor

View File

@@ -262,7 +262,7 @@ public class AnnotatedElementUtilsTests {
Class<?> element = SubSubClassWithInheritedComposedAnnotation.class;
String name = TX_NAME;
AnnotationAttributes attributes = getMergedAnnotationAttributes(element, name);
assertNotNull("AnnotationAttributtes for @Transactional on SubSubClassWithInheritedComposedAnnotation.", attributes);
assertNotNull("AnnotationAttributes for @Transactional on SubSubClassWithInheritedComposedAnnotation.", attributes);
// Verify contracts between utility methods:
assertTrue(isAnnotated(element, name));
assertFalse("readOnly flag for SubSubClassWithInheritedComposedAnnotation.", attributes.getBoolean("readOnly"));

View File

@@ -65,15 +65,15 @@ public class AspectJTypeFilterTests {
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassImplementingSomeInterface",
"java.lang.Object+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeInterface+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeClass+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"*+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"java.lang.Object+");
}
@@ -100,7 +100,7 @@ public class AspectJTypeFilterTests {
}
@Test
public void annotationPatternNoMathces() throws Exception {
public void annotationPatternNoMatches() throws Exception {
assertNoMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassAnnotatedWithComponent",
"@org.springframework.stereotype.Repository *..*");
}
@@ -109,11 +109,11 @@ public class AspectJTypeFilterTests {
public void compositionPatternMatches() throws Exception {
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClass",
"!*..SomeOtherClass");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeInterface+ " +
"&& org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " +
"&& org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface",
assertMatch("org.springframework.core.type.AspectJTypeFilterTests$SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface",
"org.springframework.core.type.AspectJTypeFilterTests.SomeInterface+ " +
"|| org.springframework.core.type.AspectJTypeFilterTests.SomeClass+ " +
"|| org.springframework.core.type.AspectJTypeFilterTests.SomeClassExtendingSomeClass+");
@@ -158,7 +158,7 @@ public class AspectJTypeFilterTests {
static class SomeClassImplementingSomeInterface implements SomeInterface {
}
static class SomeClassExtendingSomeClassExtendingSomeClassAndImplemnentingSomeInterface
static class SomeClassExtendingSomeClassExtendingSomeClassAndImplementingSomeInterface
extends SomeClassExtendingSomeClass implements SomeInterface {
}

View File

@@ -85,7 +85,7 @@ public class ConcurrentReferenceHashMapTests {
}
@Test
public void shouldCreateWithInitialCapacityAndConcurrenyLevel() {
public void shouldCreateWithInitialCapacityAndConcurrentLevel() {
ConcurrentReferenceHashMap<Integer, String> map = new ConcurrentReferenceHashMap<>(16, 2);
assertThat(map.getSegmentsSize(), is(2));
assertThat(map.getSegment(0).getSize(), is(8));
@@ -173,11 +173,11 @@ public class ConcurrentReferenceHashMapTests {
}
@Test
public void shouldApplySupplimentalHash() {
public void shouldApplySupplementalHash() {
Integer key = 123;
this.map.put(key, "123");
assertThat(this.map.getSupplimentalHash(), is(not(key.hashCode())));
assertThat(this.map.getSupplimentalHash() >> 30 & 0xFF, is(not(0)));
assertThat(this.map.getSupplementalHash(), is(not(key.hashCode())));
assertThat(this.map.getSupplementalHash() >> 30 & 0xFF, is(not(0)));
}
@Test
@@ -240,7 +240,7 @@ public class ConcurrentReferenceHashMapTests {
}
@Test
public void shouldPergeOnPut() {
public void shouldPurgeOnPut() {
this.map = new TestWeakConcurrentCache<>(1, 0.75f, 1);
for (int i = 1; i <= 5; i++) {
this.map.put(i, String.valueOf(i));
@@ -559,7 +559,7 @@ public class ConcurrentReferenceHashMapTests {
private static class TestWeakConcurrentCache<K, V> extends ConcurrentReferenceHashMap<K, V> {
private int supplimentalHash;
private int supplementalHash;
private final LinkedList<MockReference<K, V>> queue = new LinkedList<>();
@@ -587,12 +587,12 @@ public class ConcurrentReferenceHashMapTests {
return super.getHash(o);
}
// For testing we want more control of the hash
this.supplimentalHash = super.getHash(o);
this.supplementalHash = super.getHash(o);
return o == null ? 0 : o.hashCode();
}
public int getSupplimentalHash() {
return this.supplimentalHash;
public int getSupplementalHash() {
return this.supplementalHash;
}
@Override