We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01058be commit 7263e78Copy full SHA for 7263e78
src/main/java/edu/kit/datamanager/ro_crate/util/FileSystemUtil.java
@@ -20,9 +20,10 @@ private FileSystemUtil() {
20
* Example:
21
* filterExtensionsFromFileName("test.eln", Set.of("ELN")) -> "test"
22
*
23
- * @param filename the file name to filter
24
- * @param extensionsToRemove the extensions to remove
+ * @param filename the file name to filter (must not be null)
+ * @param extensionsToRemove the extensions to remove (must not be null)
25
* @return the filtered file name
26
+ * @throws NullPointerException if any parameter is null
27
*/
28
public static String filterExtensionsFromFileName(String filename, Collection<String> extensionsToRemove) {
29
String dot = Matcher.quoteReplacement(".");
0 commit comments