You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/09/14 23:05:33 UTC

[2/2] logging-log4j2 git commit: Fix compiler warnings.

Fix compiler warnings.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/a610ba84
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/a610ba84
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/a610ba84

Branch: refs/heads/master
Commit: a610ba84f66485362ff99823429d839f35d5d8f8
Parents: bd3773e
Author: ggregory <gg...@apache.org>
Authored: Mon Sep 14 14:05:29 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Mon Sep 14 14:05:29 2015 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/config/plugins/util/PluginRegistry.java     | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/a610ba84/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginRegistry.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginRegistry.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginRegistry.java
index 62cb9d3..dddf3e5 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginRegistry.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/util/PluginRegistry.java
@@ -238,7 +238,6 @@ public class PluginRegistry {
             mainEntry.setClassName(clazz.getName());
             mainEntry.setPrintable(plugin.printObject());
             mainEntry.setDefer(plugin.deferChildren());
-            @SuppressWarnings({"unchecked","rawtypes"})
             final PluginType<?> mainType = new PluginType<>(mainEntry, clazz, mainElementName);
             list.add(mainType);
             final PluginAliases pluginAliases = clazz.getAnnotation(PluginAliases.class);
@@ -253,7 +252,6 @@ public class PluginRegistry {
                     aliasEntry.setClassName(clazz.getName());
                     aliasEntry.setPrintable(plugin.printObject());
                     aliasEntry.setDefer(plugin.deferChildren());
-                    @SuppressWarnings({"unchecked","rawtypes"})
                     final PluginType<?> aliasType = new PluginType<>(aliasEntry, clazz, aliasElementName);
                     list.add(aliasType);
                 }