Skip to content

Commit

Permalink
Merge pull request #9 from alain-kermis-sonarsource/dev-5
Browse files Browse the repository at this point in the history
DEV-5 Init
  • Loading branch information
alain-kermis-sonarsource authored Oct 26, 2023
2 parents bb3451f + b892120 commit 73d38e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
</dependency>
</dependencies>

</project>
15 changes: 5 additions & 10 deletions src/main/java/org/example/Main.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
package org.example;

import java.security.NoSuchAlgorithmException;
import javax.crypto.Cipher;
import javax.crypto.NoSuchPaddingException;
import java.util.logging.Logger;

public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
private static final Logger logger = Logger.getLogger("Logger");

try {
Cipher des = Cipher.getInstance("DES"); // Noncompliant
} catch(NoSuchAlgorithmException | NoSuchPaddingException e) {
// ...
}
public static void main(String[] args) {
logger.info("Hello world!");
}

}

0 comments on commit 73d38e7

Please sign in to comment.