removed spurious warnings and allowed extension of RestClient for creating testing fixtures.
This commit is contained in:
parent
9b0e7f8b84
commit
e656954c16
@ -34,7 +34,7 @@ import com.google.gson.webservice.definition.rest.RestResponse;
|
||||
*
|
||||
* @author inder
|
||||
*/
|
||||
public final class RestClient {
|
||||
public class RestClient {
|
||||
private final WebServiceConfig config;
|
||||
private final Logger logger;
|
||||
private final Level logLevel;
|
||||
|
@ -40,7 +40,6 @@ final class TypeUtils {
|
||||
* </pre>
|
||||
* <code>TypeUtils.getActualTypeForFirstTypeVariable(fooType)</code> will return Integer.class.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
static Type getActualTypeForFirstTypeVariable(Type type) {
|
||||
if (type instanceof Class) {
|
||||
return Object.class;
|
||||
@ -54,7 +53,6 @@ final class TypeUtils {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
static boolean isArray(Type type) {
|
||||
if (type instanceof Class) {
|
||||
return ((Class<?>)type).isArray();
|
||||
@ -68,7 +66,6 @@ final class TypeUtils {
|
||||
/**
|
||||
* This method returns the actual raw class associated with the specified type.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
static Class<?> toRawClass(Type type) {
|
||||
if (type instanceof Class) {
|
||||
return (Class<?>) type;
|
||||
|
@ -43,6 +43,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
*
|
||||
* @author inder
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class MainServlet extends HttpServlet {
|
||||
@Override
|
||||
public void service(HttpServletRequest req, HttpServletResponse res) {
|
||||
|
Loading…
Reference in New Issue
Block a user