Remove redundant type arguments and type cast
Change-Id: I85be0f1fcceb51333d25eeca51cc53f842cef860
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user