32
32
import org .apache .tika .Tika ;
33
33
import org .apache .tika .mime .MediaType ;
34
34
import org .apache .tika .mime .MediaTypeRegistry ;
35
- import org .jetbrains .annotations .NotNull ;
36
35
37
36
import java .io .ByteArrayInputStream ;
38
37
import java .io .File ;
@@ -91,7 +90,7 @@ public class Winnowing {
91
90
* @param obfuscatedPath the obfuscated path
92
91
* @return the real file path corresponding to the provided obfuscated path, or the original path if no mapping exists
93
92
*/
94
- public String deobfuscateFilePath (@ NotNull String obfuscatedPath ) {
93
+ public String deobfuscateFilePath (@ NonNull String obfuscatedPath ) {
95
94
String originalPath = obfuscationMap .get (obfuscatedPath );
96
95
return originalPath != null ? originalPath : obfuscatedPath ;
97
96
}
@@ -229,7 +228,7 @@ public String wfpForContents(@NonNull String filename, Boolean binFile, byte[] c
229
228
* @param originalPath the original file path to be obfuscated; must not be null
230
229
* @return the obfuscated file path with a unique identifier and the original file extension
231
230
*/
232
- private String obfuscateFilePath (@ NotNull String originalPath ) {
231
+ private String obfuscateFilePath (@ NonNull String originalPath ) {
233
232
final String extension = extractExtension (originalPath );
234
233
235
234
// Generate a unique identifier for the obfuscated file using a thread-safe approach
@@ -244,7 +243,7 @@ private String obfuscateFilePath(@NotNull String originalPath) {
244
243
* @param path the file path or name (must not be null)
245
244
* @return the file extension with leading dot (e.g., ".txt") or empty string if no extension
246
245
*/
247
- private String extractExtension (@ NotNull String path ) {
246
+ private String extractExtension (@ NonNull String path ) {
248
247
try {
249
248
String extractedExtension = FilenameUtils .getExtension (path ).trim ();
250
249
return extractedExtension .isEmpty () ? "" : "." + extractedExtension ;
0 commit comments