Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down Expand Up @@ -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.");
}
}
Expand All @@ -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");
}
}
Expand Down Expand Up @@ -266,9 +266,9 @@ private void handleException(Set<? extends TypeElement> annotations, RoundEnviro
Iterator<? extends TypeElement> 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);
}
}

Expand Down