From 22fe246f8f341f06e20aacad1f5687ac6062b5ce Mon Sep 17 00:00:00 2001 From: Bananeweizen Date: Sun, 19 Jan 2014 10:21:55 +0100 Subject: [PATCH] Fix typos in user visible output --- .../AndroidAnnotationProcessor.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java b/AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java index b24b9c68d9..f0ed90314e 100644 --- a/AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java +++ b/AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/AndroidAnnotationProcessor.java @@ -92,8 +92,8 @@ private void checkApiAndCoreVersions() throws VersionMismatchException { String coreVersion = getAAProcessorVersion(); if (!apiVersion.equals(coreVersion)) { - LOGGER.error("AndroidAnnotation version for API ({}) and core ({}) doesn't match. Please check your classpath", apiVersion, coreVersion); - throw new VersionMismatchException("AndroidAnnotation version for API (" + apiVersion + ") and core (" + coreVersion + ") doesn't match. Please check your classpath"); + LOGGER.error("AndroidAnnotations version for API ({}) and core ({}) doesn't match. Please check your classpath", apiVersion, coreVersion); + throw new VersionMismatchException("AndroidAnnotations version for API (" + apiVersion + ") and core (" + coreVersion + ") doesn't match. Please check your classpath"); } } @@ -132,7 +132,7 @@ private void loadPropertyFile() throws FileNotFoundException { URL url = getClass().getClassLoader().getResource(filename); properties.load(url.openStream()); } catch (Exception e) { - LOGGER.error("Core property file {} couldn't be parse"); + LOGGER.error("Core property file {} couldn't be parsed"); throw new FileNotFoundException("Core property file " + filename + " couldn't be parsed."); } } @@ -143,7 +143,7 @@ private void loadApiPropertyFile() throws FileNotFoundException { URL url = EActivity.class.getClassLoader().getResource(filename); propertiesApi.load(url.openStream()); } catch (Exception e) { - LOGGER.error("API property file {} couldn't be parse"); + LOGGER.error("API property file {} couldn't be parsed"); 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"); } } @@ -266,9 +266,9 @@ private void handleException(Set annotations, RoundEnviro Iterator iterator = annotations.iterator(); if (iterator.hasNext()) { Element element = roundEnv.getElementsAnnotatedWith(iterator.next()).iterator().next(); - LOGGER.error("Something went wront : {}", element, errorMessage); + LOGGER.error("Something went wrong: {}", element, errorMessage); } else { - LOGGER.error("Something went wront : {}", errorMessage); + LOGGER.error("Something went wrong: {}", errorMessage); } }