Skip to content

Commit

Permalink
Fix bug and security hotspot reported by Sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
pathob committed Oct 24, 2023
1 parent d525f6b commit 44e8da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private LookAndFeelConfiguration getLookAndFeelConfiguration() {
private ImageInfo getImageInfo(InputStream inputStream) {
ImageInfo imageInfo;
try {
File file = File.createTempFile("image", null);
File file = File.createTempFile("image", "file", new File("/tmp/confapi"));
FileUtils.copyInputStreamToFile(inputStream, file);
String contentType = file.toURI().toURL().openConnection().getContentType();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void testSetApplicationLinks()
ApplicationLinksBean applicationLinkResponse = applicationLinkService.setApplicationLinks(applicationLinksBean, true);

assertEquals(applicationLinkResponse.getApplicationLinks().iterator().next().getName(), applicationLinkBean.getName());
assertNotEquals(applicationLinkResponse, applicationLinkBean);
assertEquals(applicationLinkResponse.getApplicationLinks().iterator().next().getUuid(), applicationLinkBean.getUuid());
}

@Test
Expand Down

0 comments on commit 44e8da2

Please sign in to comment.