Repository: logging-log4j-audit
Updated Branches:
  refs/heads/master c2bfa5364 -> 65ccad83e


[LOG4J2-2431] Narrow the return type of getEvent


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/commit/6d4fcf33
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/tree/6d4fcf33
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/diff/6d4fcf33

Branch: refs/heads/master
Commit: 6d4fcf3356231b7cb6cd25f3b3ea93f35ca49687
Parents: c2bfa53
Author: Andrei Ivanov <andrei.iva...@arnia.ro>
Authored: Tue Sep 4 16:18:05 2018 +0300
Committer: Andrei Ivanov <andrei.iva...@arnia.ro>
Committed: Tue Sep 4 16:18:05 2018 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/logging/log4j/audit/LogEventFactory.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j-audit/blob/6d4fcf33/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/LogEventFactory.java
----------------------------------------------------------------------
diff --git 
a/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/LogEventFactory.java
 
b/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/LogEventFactory.java
index 85f2692..c14ca87 100644
--- 
a/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/LogEventFactory.java
+++ 
b/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/LogEventFactory.java
@@ -87,7 +87,7 @@ public class LogEventFactory {
      * @return Returns an instance of the Event.
      */
     @SuppressWarnings("unchecked")
-       public static <T> T getEvent(Class<T> intrface) {
+       public static <T extends AuditEvent> T getEvent(Class<T> intrface) {
 
                Class<?>[] interfaces = new Class<?>[] { intrface };
 

Reply via email to