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