suppress unchecked warnings

This commit is contained in:
Sebastian Sdorra
2014-01-11 15:17:44 +01:00
parent a99dfb31fc
commit 4745dd5575
49 changed files with 76 additions and 15 deletions

View File

@@ -296,6 +296,7 @@ public class AbstractHgHandler
* @throws IOException
* @throws RepositoryException
*/
@SuppressWarnings("unchecked")
protected <T> T getResultFromScript(Class<T> resultType,
HgPythonScript script, Map<String, String> extraEnv)
throws IOException, RepositoryException

View File

@@ -91,6 +91,7 @@ public class HgIncomingCommand extends AbstractCommand
* @throws RepositoryException
*/
@Override
@SuppressWarnings("unchecked")
public ChangesetPagingResult getIncomingChangesets(
IncomingCommandRequest request)
throws RepositoryException

View File

@@ -91,6 +91,7 @@ public class HgOutgoingCommand extends AbstractCommand
* @throws RepositoryException
*/
@Override
@SuppressWarnings("unchecked")
public ChangesetPagingResult getOutgoingChangesets(
OutgoingCommandRequest request)
throws RepositoryException

View File

@@ -86,6 +86,7 @@ public class HgPullCommand extends AbstractCommand implements PullCommand
* @throws RepositoryException
*/
@Override
@SuppressWarnings("unchecked")
public PullResponse pull(PullCommandRequest request)
throws RepositoryException, IOException
{
@@ -109,5 +110,5 @@ public class HgPullCommand extends AbstractCommand implements PullCommand
//~--- fields ---------------------------------------------------------------
/** Field description */
private HgRepositoryHandler handler;
private final HgRepositoryHandler handler;
}

View File

@@ -86,6 +86,7 @@ public class HgPushCommand extends AbstractCommand implements PushCommand
* @throws RepositoryException
*/
@Override
@SuppressWarnings("unchecked")
public PushResponse push(PushCommandRequest request)
throws RepositoryException, IOException
{
@@ -109,5 +110,5 @@ public class HgPushCommand extends AbstractCommand implements PushCommand
//~--- fields ---------------------------------------------------------------
/** Field description */
private HgRepositoryHandler handler;
private final HgRepositoryHandler handler;
}

View File

@@ -215,6 +215,7 @@ public class HgCGIServlet extends HttpServlet
* @param env
* @param session
*/
@SuppressWarnings("unchecked")
private void passSessionAttributes(EnvList env, HttpSession session)
{
Enumeration<String> enm = session.getAttributeNames();