Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
HliasMpGH committed Oct 30, 2024
1 parent 3bed71e commit 4590527
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion gui/src/main/java/gr/bibliotech/data/BookRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ public List<Book> getMatchingBooks(String term) {
new BookMapper() // the record mapper
);
}
}
}
4 changes: 2 additions & 2 deletions gui/src/main/java/gr/bibliotech/data/UserMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class UserMapper implements RowMapper<User> {
*/
@Override
public User mapRow(ResultSet rs, int rowNum) throws SQLException {

return new User(
rs.getInt("idUser"),
rs.getString("username"),
Expand All @@ -26,4 +26,4 @@ public User mapRow(ResultSet rs, int rowNum) throws SQLException {
);
}

}
}
2 changes: 0 additions & 2 deletions gui/src/main/java/gr/bibliotech/data/UserRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public boolean existsUserName(String username) {
);
}



/**
* Checks an emails' existence in the platform.
* Should be Used Before Creating new User.
Expand Down
9 changes: 1 addition & 8 deletions gui/src/main/java/gr/bibliotech/web/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static void open() throws ServerException, IOException {

/**
* Checks if the port is already being used in this machine.
* @return true if the port is available for use by the local
* @return true if the port is available for use by the local
* server; false otherwise.
*/
public static boolean isPortAvailable() {
Expand All @@ -96,11 +96,4 @@ public static boolean isPortAvailable() {
public static boolean isLive() {
return running;
}

/**
* @return the running instance of the server.
*/
public static ConfigurableApplicationContext getInstance() {
return ctx;
}
}

0 comments on commit 4590527

Please sign in to comment.