Skip to content

Commit 035cf69

Browse files
committed
refactor: rename User to UserRegister
Renamed the User class to UserRegister to better reflect its purpose in registration-related operations.
1 parent 45d2dc0 commit 035cf69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/omarelsheikh/todo/models/User.java renamed to src/main/java/com/omarelsheikh/todo/models/UserRegister.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.omarelsheikh.todo.models;
22

3-
public class User {
3+
public class UserRegister {
44

55
private String email;
66
private String firstName;
@@ -9,7 +9,7 @@ public class User {
99

1010
// Constructor used to initialize all fields when creating a new User object
1111
// Useful when we want to set values directly at the time of object creation
12-
public User(String email, String firstName, String lastName, String password) {
12+
public UserRegister(String email, String firstName, String lastName, String password) {
1313
this.email = email;
1414
this.firstName = firstName;
1515
this.lastName = lastName;

0 commit comments

Comments
 (0)