removed spurious warnings and allowed extension of RestClient for creating testing fixtures.

This commit is contained in:
Inderjeet Singh 2010-09-19 13:50:41 +00:00
parent 9b0e7f8b84
commit e656954c16
3 changed files with 2 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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) {