Eu to tentando rodar um projeto mas esta dando esse erro, mas não consigo identificar como soluciona-lo, aqui o erro
Loading class
com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
WARNING: row index is bigger than sorter’s row count. Most likely this is a wrong sorter usage.
Mas sei de que classe é, fui dar uma olhada mas não achei nada errado, alguém poderia me explicar por favor
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;
public class Task {
private int id;
private int idProject;
private String name;
private String notes;
private String description;
private boolean isCompleted;
private Date deadline;
private Date createdAt;
private Date updatedAt;
private static final Logger LOG = Logger.getLogger(Task.class.getName());
public Task(int id, int idProject, String name, String notes, String description, boolean isCompleted, Date deadline, Date createdAt, Date updatedAt) {
this.id = id;
this.idProject = idProject;
this.name = name;
this.notes = notes;
this.description = description;
this.isCompleted = isCompleted;
this.deadline = deadline;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
}
public Task(){
this.isCompleted = false;
this.createdAt = new Date();
this.updatedAt = new Date();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getIdProject() {
return idProject;
}
public void setIdProject(int idProject) {
this.idProject = idProject;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
public boolean isIsCompleted() {
return isCompleted;
}
public void setIsCompleted(boolean isCompleted) {
this.isCompleted = isCompleted;
}
public Date getDeadline() {
return deadline;
}
public void setDeadline(Date deadline) {
this.deadline = deadline;
}
public Date getCreatedAt() {
if(createdAt == null){
return new Date();
}
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Date getUpdatedAt() {
if(updatedAt == null){
return new Date();
}
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@Override
public String toString() {
return this.name;
}
}