mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
suppress unchecked warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -91,6 +91,7 @@ public class HgIncomingCommand extends AbstractCommand
|
||||
* @throws RepositoryException
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public ChangesetPagingResult getIncomingChangesets(
|
||||
IncomingCommandRequest request)
|
||||
throws RepositoryException
|
||||
|
||||
@@ -91,6 +91,7 @@ public class HgOutgoingCommand extends AbstractCommand
|
||||
* @throws RepositoryException
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public ChangesetPagingResult getOutgoingChangesets(
|
||||
OutgoingCommandRequest request)
|
||||
throws RepositoryException
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user