Skip to content

Commit

Permalink
Testing javaS1117 PR
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine-vinot-sonarsource committed Dec 7, 2023
1 parent 55d9224 commit 0a50d23
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/test/TestingJavaS1117.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@

public class TestingJavaS1117 {

private String myVariable = "something";

private static final String MORE = "more";

public String anotherMethod(String input) {
if (input.contains("something")) {
myVariable += MORE;
return myVariable;
}
return "Nothing";
}

public String someMethod(String input) {
String myVariable = "myVariable";
if (input.contains(MORE)) {
Expand Down

0 comments on commit 0a50d23

Please sign in to comment.