Browse Source

Suppress "unchecked cast" warnings related to UploadPackFactory.DISABLED

Change-Id: Id74694e18fec326df2b04eb796b46ccc6484b23f
Signed-off-by: David Pursehouse <david.pursehouse@sonymobile.com>
tags/v4.3.0.201603230630-rc1
David Pursehouse 8 years ago
parent
commit
f595089be0

+ 1
- 0
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/DefaultReceivePackFactoryTest.java View File

factory = new DefaultReceivePackFactory(); factory = new DefaultReceivePackFactory();
} }


@SuppressWarnings("unchecked")
@Test @Test
public void testDisabledSingleton() throws ServiceNotAuthorizedException { public void testDisabledSingleton() throws ServiceNotAuthorizedException {
factory = (ReceivePackFactory<HttpServletRequest>) ReceivePackFactory.DISABLED; factory = (ReceivePackFactory<HttpServletRequest>) ReceivePackFactory.DISABLED;

+ 1
- 0
org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/DefaultUploadPackFactoryTest.java View File

factory = new DefaultUploadPackFactory(); factory = new DefaultUploadPackFactory();
} }


@SuppressWarnings("unchecked")
@Test @Test
public void testDisabledSingleton() throws ServiceNotAuthorizedException { public void testDisabledSingleton() throws ServiceNotAuthorizedException {
factory = (UploadPackFactory<HttpServletRequest>) UploadPackFactory.DISABLED; factory = (UploadPackFactory<HttpServletRequest>) UploadPackFactory.DISABLED;

Loading…
Cancel
Save