Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos and upcoming warnings #1795

Merged
merged 1 commit into from Dec 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -81,7 +81,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 @@ -75,7 +75,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 @@ -263,7 +263,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();
}
}