Skip to content

Commit 4e08a3e

Browse files
committed
Merge pull request androidannotations#892 from Bananeweizen/patch-1
Fix typos in user visible output
2 parents 891b419 + 22fe246 commit 4e08a3e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ private void checkApiAndCoreVersions() throws VersionMismatchException {
9191
String coreVersion = getAAProcessorVersion();
9292

9393
if (!apiVersion.equals(coreVersion)) {
94-
LOGGER.error("AndroidAnnotation version for API ({}) and core ({}) doesn't match. Please check your classpath", apiVersion, coreVersion);
95-
throw new VersionMismatchException("AndroidAnnotation version for API (" + apiVersion + ") and core (" + coreVersion + ") doesn't match. Please check your classpath");
94+
LOGGER.error("AndroidAnnotations version for API ({}) and core ({}) doesn't match. Please check your classpath", apiVersion, coreVersion);
95+
throw new VersionMismatchException("AndroidAnnotations version for API (" + apiVersion + ") and core (" + coreVersion + ") doesn't match. Please check your classpath");
9696
}
9797
}
9898

@@ -131,7 +131,7 @@ private void loadPropertyFile() throws FileNotFoundException {
131131
URL url = getClass().getClassLoader().getResource(filename);
132132
properties.load(url.openStream());
133133
} catch (Exception e) {
134-
LOGGER.error("Core property file {} couldn't be parse");
134+
LOGGER.error("Core property file {} couldn't be parsed");
135135
throw new FileNotFoundException("Core property file " + filename + " couldn't be parsed.");
136136
}
137137
}
@@ -142,7 +142,7 @@ private void loadApiPropertyFile() throws FileNotFoundException {
142142
URL url = EActivity.class.getClassLoader().getResource(filename);
143143
propertiesApi.load(url.openStream());
144144
} catch (Exception e) {
145-
LOGGER.error("API property file {} couldn't be parse");
145+
LOGGER.error("API property file {} couldn't be parsed");
146146
throw new FileNotFoundException("API property file " + filename + " couldn't be parsed. Please check your classpath and verify that AA-API's version is at least 3.0");
147147
}
148148
}
@@ -265,9 +265,9 @@ private void handleException(Set<? extends TypeElement> annotations, RoundEnviro
265265
Iterator<? extends TypeElement> iterator = annotations.iterator();
266266
if (iterator.hasNext()) {
267267
Element element = roundEnv.getElementsAnnotatedWith(iterator.next()).iterator().next();
268-
LOGGER.error("Something went wront : {}", element, errorMessage);
268+
LOGGER.error("Something went wrong: {}", element, errorMessage);
269269
} else {
270-
LOGGER.error("Something went wront : {}", errorMessage);
270+
LOGGER.error("Something went wrong: {}", errorMessage);
271271
}
272272
}
273273

0 commit comments

Comments
 (0)