diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2016-02-20 04:39:57 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2016-02-20 04:39:57 +0200 |
commit | 32b8a03e769a2fe98492fba2c2c0e778cda8cb61 (patch) | |
tree | 75c022b65dd4a5c0de2ed6682ad93c4810e7c967 | |
parent | d4be2b1a50f71efd4ece9f8c06a9c55dda832d54 (diff) | |
download | pf4j-32b8a03e769a2fe98492fba2c2c0e778cda8cb61.tar.gz pf4j-32b8a03e769a2fe98492fba2c2c0e778cda8cb61.zip |
Rename note() to info()
-rw-r--r-- | pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java | 8 | ||||
-rw-r--r-- | pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java b/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java index f9d8ed1..80dd430 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java @@ -53,7 +53,7 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor { public synchronized void init(ProcessingEnvironment processingEnv) { super.init(processingEnv); - note("{}.init()", ExtensionAnnotationProcessor.class); + info("{}.init()", ExtensionAnnotationProcessor.class); storage = createStorage(); } @@ -84,7 +84,7 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor { return false; } - note("Processing @{}", Extension.class); + info("Processing @{}", Extension.class); for (Element element : roundEnv.getElementsAnnotatedWith(Extension.class)) { // check if @Extension is put on class and not on method or constructor if (!(element instanceof TypeElement)) { @@ -145,11 +145,11 @@ public class ExtensionAnnotationProcessor extends AbstractProcessor { processingEnv.getMessager().printMessage(Diagnostic.Kind.ERROR, String.format(message, args), element); } - public void note(String message, Object... args) { + public void info(String message, Object... args) { processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, String.format(message, args)); } - public void note(Element element, String message, Object... args) { + public void info(Element element, String message, Object... args) { processingEnv.getMessager().printMessage(Diagnostic.Kind.NOTE, String.format(message, args), element); } diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java b/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java index 9aeec14..d184ea7 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java +++ b/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java @@ -59,15 +59,15 @@ public abstract class ExtensionStorage { /** * Helper method. */ - protected void note(String message, Object... args) { - processor.note(message, args); + protected void info(String message, Object... args) { + processor.info(message, args); } /** * Helper method. */ - protected void note(Element element, String message, Object... args) { - processor.note(element, message, args); + protected void info(Element element, String message, Object... args) { + processor.info(element, message, args); } } |