Skip to content

Commit

Permalink
this method should be the constructor of the class
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioaniche authored Mar 5, 2020
1 parent 0b2ffa1 commit ede4e1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tudelft/invoicemocked/InvoiceDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class InvoiceDao {

private static Connection c;

public void InvoiceDao() {
public InvoiceDao() {
try {
if(c!=null) return;

Expand Down Expand Up @@ -63,4 +63,4 @@ public void close() {
throw new RuntimeException(e);
}
}
}
}

0 comments on commit ede4e1d

Please sign in to comment.