fix: множественные предупреждения
This commit is contained in:
@@ -21,7 +21,7 @@ public class Main implements Runnable {
|
||||
private Logger logger = LoggerFactory.getLogger(Main.class);
|
||||
private ExcelReader excel;
|
||||
private Properties properties = new Properties();
|
||||
public static long sleepThread = 100;
|
||||
static long sleepThread = 100;
|
||||
public static SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy");
|
||||
public static Date currentDate = new Date(System.currentTimeMillis());
|
||||
|
||||
@@ -72,7 +72,7 @@ public class Main implements Runnable {
|
||||
return excel.getNextData();
|
||||
}
|
||||
|
||||
public static void safeSleep(long ms) {
|
||||
static void safeSleep(long ms) {
|
||||
try {
|
||||
Thread.sleep(ms);
|
||||
} catch (InterruptedException ignore) {
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
package ru.dmitriymx.astralcheckreport.objects;
|
||||
|
||||
public class LeftObject {
|
||||
public int id;
|
||||
|
||||
public LeftObject() {
|
||||
}
|
||||
private int id;
|
||||
|
||||
public LeftObject(int id) {
|
||||
this.id = id;
|
||||
@@ -16,7 +13,11 @@ public class LeftObject {
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
LeftObject lobj = (LeftObject) obj;
|
||||
return this.id == lobj.id;
|
||||
if (obj instanceof LeftObject) {
|
||||
LeftObject lobj = (LeftObject) obj;
|
||||
return this.id == lobj.id;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ package ru.dmitriymx.astralcheckreport.objects;
|
||||
import java.util.List;
|
||||
|
||||
public class Organization {
|
||||
public int id;
|
||||
int id;
|
||||
public String inn, kpp;
|
||||
public List<Product> products;
|
||||
public String companyGroupName;
|
||||
|
||||
@@ -7,7 +7,6 @@ package ru.dmitriymx.astralcheckreport.objects;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class Product {
|
||||
public int id;
|
||||
|
||||
Reference in New Issue
Block a user