Skip to content

Commit 9f9b865

Browse files
committed
refactoring.
1 parent a9410be commit 9f9b865

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ss/editor/ui/preview/FilePreview.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface FilePreview extends Reusable {
3737
* @return true if this preview supports the resource.
3838
*/
3939
@FXThread
40-
default boolean isSupport(@NotNull String resource) {
40+
default boolean isSupport(@NotNull final String resource) {
4141
return !StringUtils.isEmpty(FileUtils.getExtension(resource));
4242
}
4343

@@ -48,7 +48,7 @@ default boolean isSupport(@NotNull String resource) {
4848
* @return true if this preview supports the file.
4949
*/
5050
@FXThread
51-
default boolean isSupport(@NotNull Path file) {
51+
default boolean isSupport(@NotNull final Path file) {
5252
return !StringUtils.isEmpty(FileUtils.getExtension(file));
5353
}
5454

0 commit comments

Comments
 (0)