Repository: logging-log4j2 Updated Branches: refs/heads/master e6b629579 -> a610ba84f
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/bd3773e1 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/bd3773e1 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/bd3773e1 Branch: refs/heads/master Commit: bd3773e1514712105ac388b9afd51ee308417a7c Parents: e6b6295 Author: ggregory <[email protected]> Authored: Mon Sep 14 14:05:14 2015 -0700 Committer: ggregory <[email protected]> Committed: Mon Sep 14 14:05:14 2015 -0700 ---------------------------------------------------------------------- .../logging/log4j/core/config/plugins/util/PluginRegistry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/bd3773e1/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 c86e2d6..62cb9d3 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 @@ -180,7 +180,7 @@ public class PluginRegistry { try { final Class<?> clazz = loader.loadClass(className); @SuppressWarnings({"unchecked","rawtypes"}) - final PluginType<?> type = new PluginType(entry, clazz, entry.getName()); + final PluginType<?> type = new PluginType<>(entry, clazz, entry.getName()); types.add(type); ++pluginCount; } catch (final ClassNotFoundException e) { @@ -239,7 +239,7 @@ public class PluginRegistry { mainEntry.setPrintable(plugin.printObject()); mainEntry.setDefer(plugin.deferChildren()); @SuppressWarnings({"unchecked","rawtypes"}) - final PluginType<?> mainType = new PluginType(mainEntry, clazz, mainElementName); + final PluginType<?> mainType = new PluginType<>(mainEntry, clazz, mainElementName); list.add(mainType); final PluginAliases pluginAliases = clazz.getAnnotation(PluginAliases.class); if (pluginAliases != null) { @@ -254,7 +254,7 @@ public class PluginRegistry { aliasEntry.setPrintable(plugin.printObject()); aliasEntry.setDefer(plugin.deferChildren()); @SuppressWarnings({"unchecked","rawtypes"}) - final PluginType<?> aliasType = new PluginType(aliasEntry, clazz, aliasElementName); + final PluginType<?> aliasType = new PluginType<>(aliasEntry, clazz, aliasElementName); list.add(aliasType); } }
