]> source.dussan.org Git - jgit.git/commitdiff
Fix boxing warnings in TransportTest 49/197149/1
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 20 Nov 2022 19:34:57 +0000 (20:34 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 20 Nov 2022 19:34:57 +0000 (20:34 +0100)
Change-Id: I7e6dc845b89899cff262fab77c3977dbef5eea02

org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/TransportTest.java

index b1344b7aa2b8421b1eece6498cb0328b54e216e9..92da34016b3fd3b109d5cf9cdb7867027e8588d9 100644 (file)
@@ -250,7 +250,7 @@ public class TransportTest extends SampleDataRepositoryTestCase {
                                assertTrue(pushConnection instanceof BasePackPushConnection);
                                @SuppressWarnings("resource")
                                BasePackPushConnection basePackPushConnection = (BasePackPushConnection) pushConnection;
-                               assertEquals(true, basePackPushConnection.isUseBitmaps());
+                               assertTrue(basePackPushConnection.isUseBitmaps());
                        }
                }
                // true
@@ -260,7 +260,7 @@ public class TransportTest extends SampleDataRepositoryTestCase {
                                assertTrue(pushConnection instanceof BasePackPushConnection);
                                @SuppressWarnings("resource")
                                BasePackPushConnection basePackPushConnection = (BasePackPushConnection) pushConnection;
-                               assertEquals(true, basePackPushConnection.isUseBitmaps());
+                               assertTrue(basePackPushConnection.isUseBitmaps());
                        }
                }
                // false
@@ -270,7 +270,7 @@ public class TransportTest extends SampleDataRepositoryTestCase {
                                assertTrue(pushConnection instanceof BasePackPushConnection);
                                @SuppressWarnings("resource")
                                BasePackPushConnection basePackPushConnection = (BasePackPushConnection) pushConnection;
-                               assertEquals(false, basePackPushConnection.isUseBitmaps());
+                               assertFalse(basePackPushConnection.isUseBitmaps());
                        }
                }
        }