Skip to content

Commit

Permalink
Cleanup warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed May 5, 2017
1 parent a12aae6 commit c6ee584
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 396 deletions.
8 changes: 1 addition & 7 deletions src/main/java/io/sinistral/proteus/server/Extractors.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.nio.channels.FileChannel;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.ZonedDateTime;
import java.util.Arrays;
Expand All @@ -18,9 +17,6 @@
import java.util.Objects;
import java.util.function.Function;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.jsoniter.JsonIterator;
import com.jsoniter.any.Any;
Expand All @@ -38,9 +34,7 @@
*/
public class Extractors
{
private static Logger log = LoggerFactory.getLogger(Extractors.class.getCanonicalName());



protected static final XmlMapper XML_MAPPER = new XmlMapper();

public static class Optional
Expand Down
26 changes: 10 additions & 16 deletions src/main/java/io/sinistral/proteus/server/ServerRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
import java.io.File;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.URLDecoder;
import java.nio.ByteBuffer;
import java.util.Deque;
import java.util.Map;
import java.util.concurrent.Executor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xnio.channels.StreamSourceChannel;

import io.sinistral.proteus.server.predicates.ServerPredicates;
Expand All @@ -34,24 +31,21 @@
*
*/
public class ServerRequest
{
private static Logger log = LoggerFactory.getLogger(ServerRequest.class.getCanonicalName());


{
public static final AttachmentKey<ByteBuffer> BYTE_BUFFER_KEY = AttachmentKey.create(ByteBuffer.class);

private static final String CHARSET = "UTF-8";


protected static final String CHARSET = "UTF-8";
protected static final String TMP_DIR = System.getProperty("java.io.tmpdir");

public final HttpServerExchange exchange;

private final String path;
private FormData form;
private final String contentType;
private final String method;
protected final String path;
protected FormData form;
protected final String contentType;
protected final String method;


private static final String TMP_DIR = System.getProperty("java.io.tmpdir");


public ServerRequest()
{
this.method = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ public static <T> ServerResponse<T> response(T entity)
return new ServerResponse<T>().entity(entity);
}

public static ServerResponse<?> response()
@SuppressWarnings("rawtypes")
public static ServerResponse response()
{
return new ServerResponse();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import org.apache.commons.lang3.builder.CompareToBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import io.undertow.util.HttpString;
import javax.annotation.Generated;

/**
* @author jbauer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import java.util.Map;
import java.util.stream.Collectors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.google.inject.Inject;
import com.typesafe.config.Config;

Expand All @@ -25,7 +22,6 @@
*/
public class DefaultHttpHandler implements HttpHandler
{
private static Logger log = LoggerFactory.getLogger(DefaultHttpHandler.class.getCanonicalName());

@Inject(optional=true)
protected DefaultResponseListener defaultResponseListener;
Expand Down
Loading

0 comments on commit c6ee584

Please sign in to comment.