Skip to content

Commit

Permalink
add final modifier to session factory
Browse files Browse the repository at this point in the history
  • Loading branch information
foxstudent106239 committed Aug 21, 2024
1 parent f54e27c commit 1ebd3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mate/academy/HibernateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
private static SessionFactory sessionFactory = initSessionFactory();
private static final SessionFactory sessionFactory = initSessionFactory();

private HibernateUtil() {

Expand Down

0 comments on commit 1ebd3d5

Please sign in to comment.