Ref: add new static analyser rule: category/java/bestpractices.xml/LiteralsFirstInComparisons
This commit is contained in:
@@ -278,7 +278,7 @@ import lombok.Data;
|
||||
try {
|
||||
String extension = file.getName().substring(file.getName().lastIndexOf('.')).toLowerCase();
|
||||
String name = file.getName().substring(0, file.getName().length() - 1 * extension.length());
|
||||
if (extension.equals(".zip") || extension.equals(".wool")) {
|
||||
if (".zip".equals(extension) || ".wool".equals(extension)) {
|
||||
// check if the md5 of the file is ok
|
||||
String md5_local = Utils.md5(file.getAbsolutePath());
|
||||
|
||||
@@ -344,7 +344,7 @@ import lombok.Data;
|
||||
try {
|
||||
String extension = file.getName().substring(file.getName().lastIndexOf('.')).toLowerCase();
|
||||
String name = file.getName().substring(0, file.getName().length() - 1 * extension.length());
|
||||
if (extension.equals(".zip") || extension.equals(".wool")) {
|
||||
if (".zip".equals(extension) || ".wool".equals(extension)) {
|
||||
// check if the md5 of the file is ok
|
||||
String md5_local = Utils.md5(file.getAbsolutePath());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user