Skip to content

Commit

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

public class TestingJavaS1117 {

private static final String MORE = "more";

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

0 comments on commit 55d9224

Please sign in to comment.