fix standalone and remove unecessary override

This commit is contained in:
Ryan Ernst 2015-05-05 15:08:30 -07:00
parent 7ce86d95fe
commit a83f98d018
2 changed files with 1 additions and 7 deletions

View File

@ -34,7 +34,6 @@ import org.elasticsearch.common.xcontent.XContentParser;
import org.elasticsearch.index.fielddata.FieldDataType;
import org.elasticsearch.index.mapper.*;
import org.elasticsearch.index.mapper.core.AbstractFieldMapper;
import org.elasticsearch.index.mapper.core.AbstractFieldMapper.CopyTo;
import java.io.IOException;
import java.util.Iterator;
@ -391,11 +390,6 @@ public class AttachmentMapper extends AbstractFieldMapper<Object> {
return null;
}
@Override
public CopyTo copyTo() {
return this.copyTo; // ask rjernst
}
@Override
public Mapper parse(ParseContext context) throws IOException {
byte[] content = null;

View File

@ -83,7 +83,7 @@ public class StandaloneRunner extends CliTool {
this.size = size;
this.url = url;
this.base64text = base64text;
DocumentMapperParser mapperParser = MapperTestUtils.newMapperParser();
DocumentMapperParser mapperParser = MapperTestUtils.newMapperParser(Paths.get(".")); // use CWD b/c it won't be used
mapperParser.putTypeParser(AttachmentMapper.CONTENT_TYPE, new AttachmentMapper.TypeParser());
String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/attachment/test/standalone/standalone-mapping.json");