mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
fix sonar findings
This commit is contained in:
@@ -27,6 +27,7 @@ package sonia.scm.repository;
|
||||
import sonia.scm.BadRequestException;
|
||||
import sonia.scm.ContextEntry;
|
||||
|
||||
@SuppressWarnings("squid:MaximumInheritanceDepth") // exceptions have a deep inheritance depth themselves; therefore we accept this here
|
||||
public class ChangeNamespaceNotAllowedException extends BadRequestException {
|
||||
|
||||
public ChangeNamespaceNotAllowedException(Repository repository) {
|
||||
|
||||
@@ -217,8 +217,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository> {
|
||||
// test for reference
|
||||
assertNotSame(heartOfGold, heartReference);
|
||||
heartReference.setDescription("prototype ship");
|
||||
assertFalse(
|
||||
heartOfGold.getDescription().equals(heartReference.getDescription()));
|
||||
assertNotEquals(heartOfGold.getDescription(), heartReference.getDescription());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -305,7 +304,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository> {
|
||||
Repository hearReference = manager.get(heartOfGold.getId());
|
||||
|
||||
assertNotNull(hearReference);
|
||||
assertEquals(hearReference.getDescription(), "prototype ship");
|
||||
assertEquals("prototype ship", hearReference.getDescription());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user