Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Commit 0afbc42

Browse files
committed
Add AA version
1 parent 9174d75 commit 0afbc42

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,9 @@
270270
@SupportedOptions({ TRACE_OPTION, ANDROID_MANIFEST_FILE_OPTION })
271271
public class AndroidAnnotationProcessor extends AbstractProcessor {
272272

273+
// TODO: We whould find a better way
274+
public static final String ANDROIDANNOTATION_VERSION = "3.0-SNAPSHOT";
275+
273276
private final TimeStats timeStats = new TimeStats();
274277
private final ErrorHelper errorHelper = new ErrorHelper();
275278

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/helper/ErrorHelper.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
import javax.lang.model.element.Element;
1515
import javax.lang.model.element.ExecutableElement;
1616

17+
import org.androidannotations.AndroidAnnotationProcessor;
1718
import org.androidannotations.exception.ProcessingException;
1819

1920
public class ErrorHelper {
2021

2122
public String getErrorMessage(ProcessingException e) {
22-
String errorMessage = "Unexpected error. Please report an issue on AndroidAnnotations, with the following content and tell us if you can reproduce it or not. The error was thrown on:\n";
23+
String errorMessage = "Unexpected error. Please report an issue on AndroidAnnotations " + AndroidAnnotationProcessor.ANDROIDANNOTATION_VERSION + ", with the following content and tell us if you can reproduce it or not. The error was thrown on:\n";
2324
if (e.getElement() != null) {
2425
errorMessage += elementFullString(e.getElement()) + "\n";
2526
}

0 commit comments

Comments
 (0)