Remove redundant type arguments and type cast

Change-Id: I85be0f1fcceb51333d25eeca51cc53f842cef860
This commit is contained in:
alex.ryazantsev
2013-11-18 23:48:11 +04:00
parent 8677385974
commit d4634ccacc
5 changed files with 11 additions and 11 deletions

View File

@@ -171,7 +171,7 @@ public class CommentsTest {
if (expected == null) {
fail("Expected no comment");
}
CommentInfo actual = (CommentInfo) getComment.apply(commentRes);
CommentInfo actual = getComment.apply(commentRes);
assertComment(expected, actual);
} catch (ResourceNotFoundException e) {
if (expected != null) {

View File

@@ -193,7 +193,7 @@ public class InMemoryModule extends FactoryModule {
Class.forName("com.google.gerrit.lucene.LuceneIndexModule");
Constructor<?> c =
clazz.getConstructor(Integer.class, int.class, String.class);
return (Module) c.newInstance(Integer.valueOf(version), 0, (String) null);
return (Module) c.newInstance(version, 0, null);
} catch (ClassNotFoundException e) {
throw newProvisionException(e);
} catch (SecurityException e) {