Skip to content

Commit

Permalink
Fix several typos found by a spell checker (#1795)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTTom authored and TimvdLippe committed Dec 7, 2019
1 parent dd68237 commit 49c3b4f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Expand Up @@ -80,7 +80,7 @@ public StackTraceElement filterFirst(Throwable target, boolean isInline) {
// The assumption here is that the CLEANER filter will not filter out every single
// element. However, since we don't want to compute the full length of the stacktrace,
// we don't know the upper boundary. Therefore, simply increment the counter and go as
// far as we have to go, assuming that we get there. If, in the rare occassion, we
// far as we have to go, assuming that we get there. If, in the rare occasion, we
// don't, we fall back to the old slow path.
while (true) {
try {
Expand Down
Expand Up @@ -524,7 +524,7 @@ public Class<?> rawType() {
try {
return Class.forName(stringBuilder.append("L").append(rawComponentType.getName()).append(";").toString(), false, rawComponentType.getClassLoader());
} catch (ClassNotFoundException e) {
throw new IllegalStateException("This was not supposed to happend", e);
throw new IllegalStateException("This was not supposed to happen.", e);
}
}
}
Expand Down
Expand Up @@ -14,7 +14,7 @@
/**
* Represents an accessible instance field.
*
* Contains the instance reference on which the field can be read adn write.
* Contains the instance reference on which the field can be read and write.
*/
public class InstanceField {
private final Field field;
Expand Down
Expand Up @@ -40,7 +40,7 @@ public void joins_two_lines() throws Exception {
}

@Test
public void join_has_preceeding_linebreak() throws Exception {
public void join_has_preceding_linebreak() throws Exception {
assertThat(StringUtil.join("line1")).isEqualTo("\nline1");
}

Expand Down
Expand Up @@ -74,7 +74,7 @@ public void should_scream_when_no_matchers_inside_not() {
}

@Test
public void should_scream_when_not_enough_matchers_inside_or_AddtionalMatcher() {
public void should_scream_when_not_enough_matchers_inside_or_AdditionalMatcher() {
try {
mock.simpleMethod(AdditionalMatchers.or(eq("jkl"), "asd"));
fail();
Expand Down
Expand Up @@ -262,7 +262,7 @@ public void shouldNotAllowSettingNullVarArgsThrowableClasses() throws Exception
}

@Test
public void shouldNotAllowDifferntCheckedException() throws Exception {
public void shouldNotAllowDifferentCheckedException() throws Exception {
IMethods mock = mock(IMethods.class);

exception.expect(MockitoException.class);
Expand Down
Expand Up @@ -71,10 +71,10 @@ private static File[] guessPath(String input) {
}
String packageName = potential.substring(start, end);
File dataDir = new File("/data/data/" + packageName);
if (isWriteableDirectory(dataDir)) {
if (isWritableDirectory(dataDir)) {
File cacheDir = new File(dataDir, "cache");
if (fileOrDirExists(cacheDir) || cacheDir.mkdir()) {
if (isWriteableDirectory(cacheDir)) {
if (isWritableDirectory(cacheDir)) {
results.add(cacheDir);
}
}
Expand All @@ -99,7 +99,7 @@ private static boolean fileOrDirExists(File file) {
return file.exists();
}

private static boolean isWriteableDirectory(File file) {
private static boolean isWritableDirectory(File file) {
return file.isDirectory() && file.canWrite();
}
}

0 comments on commit 49c3b4f

Please sign in to comment.