From c1ab9f290fe80800317d2dbc93837dcb79bd5d82 Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 22 Jul 2010 00:25:25 +0300 Subject: [PATCH] remove compile warnings --- .../cluster/node/shutdown/TransportNodesShutdownAction.java | 2 +- .../index/mapper/xcontent/XContentAttachmentMapper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/TransportNodesShutdownAction.java b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/TransportNodesShutdownAction.java index ce52b3ea5d4..50a5e0b24b6 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/TransportNodesShutdownAction.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/cluster/node/shutdown/TransportNodesShutdownAction.java @@ -196,7 +196,7 @@ public class TransportNodesShutdownAction extends TransportMasterNodeOperationAc // ignore } - logger.info("[partial_cluster_shutdown]: done shutting down [{}]", nodesIds); + logger.info("[partial_cluster_shutdown]: done shutting down [{}]", ((Object) nodesIds)); } }); t.start(); diff --git a/plugins/mapper/attachments/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentAttachmentMapper.java b/plugins/mapper/attachments/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentAttachmentMapper.java index dc1cf5b8f5e..f0ad16d151a 100644 --- a/plugins/mapper/attachments/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentAttachmentMapper.java +++ b/plugins/mapper/attachments/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentAttachmentMapper.java @@ -151,7 +151,7 @@ public class XContentAttachmentMapper implements XContentMapper { */ public static class TypeParser implements XContentTypeParser { - @Override public XContentMapper.Builder parse(String name, Map node, ParserContext parserContext) throws MapperParsingException { + @SuppressWarnings({"unchecked"}) @Override public XContentMapper.Builder parse(String name, Map node, ParserContext parserContext) throws MapperParsingException { XContentAttachmentMapper.Builder builder = new XContentAttachmentMapper.Builder(name); for (Map.Entry entry : node.entrySet()) {