Skip to content

Commit

Permalink
srt
Browse files Browse the repository at this point in the history
  • Loading branch information
serhat-yenican-sonarsource committed Mar 12, 2024
1 parent fcc0838 commit bad6ec3
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/main/java/org/example/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,43 @@
public class App {
private static final String MESSAGE = "Hello";
private static final String MESSAGE1 = "Hello";
private static final String secret = "my-secret";
private static final String PASSWORD = "my-password";
private static final String PASSWORD2 = "my-password";
private static final String PASSWORD3 = "my-password";
private static final String PASSWORD4 = "my-password";
private static final String PASSWORD5 = "my-password";

public String hello(String name) {
return MESSAGE + name;
}

public String getMessage() {
public static String getMessage() {
return MESSAGE;
}

public static String getMessage2() {
return "";
}

public static String getPswd() {
return "" + "asd" + "pswd";
}

public boolean isValid(String password) {
return PASSWORD.equals(password);
}

private static final String MY_SECRET = "47828a8dd77ee1eb9dde2d5e93cb221ce8c32b37";

public static void main(String[] args) {
new App().callMyService(MY_SECRET);
}



private void callMyService(String mySecret) {
System.out.println(isValid(mySecret));
}
}

0 comments on commit bad6ec3

Please sign in to comment.