Skip to content

Commit af64548

Browse files
committed
Fix checkstyle: trailing spaces and missing newline at end of files
1 parent 0b3ef79 commit af64548

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/com/thealgorithms/strings/LongestCommonSubstring.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Longest Common Substring finds the longest string that is a
55
* contiguous substring of two input strings.
66
* Example: "abcdef" and "zcdemf" -> "cde"
7-
*
7+
*
88
* author: Vraj Prajapati @Rosander0
99
*/
1010
public final class LongestCommonSubstring {
@@ -44,4 +44,4 @@ public static String longestCommonSubstring(final String a, final String b) {
4444
}
4545
return a.substring(endIndex - maxLength, endIndex);
4646
}
47-
}
47+
}

src/test/java/com/thealgorithms/strings/LongestCommonSubstringTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ public void testMultipleMatchesFirstLongest() {
3131
// Keeps the first matched longest substring when lengths are tied
3232
assertEquals("abc", LongestCommonSubstring.longestCommonSubstring("abcXdef", "abcYdef"));
3333
}
34-
}
34+
}

0 commit comments

Comments
 (0)