Skip to content

Commit

Permalink
Restore public API Archive#isLibraryFileName as @deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogel612 committed Jan 24, 2022
1 parent ccaafbd commit d83ae6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spotbugs/src/main/java/edu/umd/cs/findbugs/util/Archive.java
Expand Up @@ -70,4 +70,11 @@ private static String getExtension(String fileName) {
String extension = fileName.substring(lastDot).toLowerCase(Locale.ENGLISH);
return extension;
}

@Deprecated
@SuppressWarnings("unused") // unused within the codebase, but deprecated until next release for public API reasons
public static boolean isLibraryFileName(String fileName) {
String extension = getExtension(fileName);
return ".jar".equals(extension);
}
}

0 comments on commit d83ae6e

Please sign in to comment.