Permalink
Browse files

Fixed compiler warnings

  • Loading branch information...
michel-kraemer committed Jan 3, 2012
1 parent 669c100 commit 4f2f0bd9664c61e7f61e097c857d7b5a0ce685ef
@@ -19,7 +19,6 @@
import org.codehaus.jackson.map.SerializerProvider;
import java.io.IOException;
-import java.util.regex.Pattern;
/**
* Serializer for JavaScript
@@ -19,7 +19,6 @@
import org.codehaus.jackson.map.SerializerProvider;
import java.io.IOException;
-import java.util.regex.Pattern;
/**
* Serializer for BSON Symbols
@@ -19,7 +19,6 @@
import org.codehaus.jackson.map.SerializerProvider;
import java.io.IOException;
-import java.util.regex.Pattern;
/**
* Serializer for MongoDB Timestamps
@@ -17,9 +17,6 @@
import java.io.IOException;
import java.util.UUID;
-import org.codehaus.jackson.JsonGenerationException;
-import org.codehaus.jackson.JsonGenerator;
-import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.SerializerProvider;
import de.undercouch.bson4jackson.BsonConstants;
@@ -46,8 +46,6 @@
public class BsonGeneratorTest {
@Test
public void generatePrimitives() throws Exception {
- ByteArrayOutputStream baos = new ByteArrayOutputStream();
-
Map<String, Object> data = new LinkedHashMap<String, Object>();
data.put("Int32", 5);
data.put("Boolean1", true);
@@ -345,7 +343,7 @@ public void javascriptWithScope() throws Exception {
CodeWScope result = (CodeWScope) obj.get("javaScript");
assertNotNull(result);
assertEquals(javaScript.getCode(), result.getCode());
- Map<String, Object> returnedScope = result.getScope().toMap();
+ Map<?, ?> returnedScope = result.getScope().toMap();
assertEquals(returnedScope, scope);
}
@@ -108,7 +108,6 @@ public void testReadSmallBufferWhenBoundLarger() throws Exception {
@Test
public void testLessBytesThanRequestedRead() throws Exception {
ByteArrayInputStream bais = new ByteArrayInputStream(bytes) {
- boolean first = true;
@Override
public int read(byte[] b, int off, int len) {
if (len > 2) {

0 comments on commit 4f2f0bd

Please sign in to comment.