Skip to content

Commit

Permalink
Fixed some compile warnings - use of deprecated Boolean constructor, …
Browse files Browse the repository at this point in the history
…type casts, POM encoding
  • Loading branch information
jcohen02 committed Jun 1, 2021
1 parent a469a1e commit 9a7db4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<version>0.0.1-SNAPSHOT</version>
<name>TemPSS Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public void doGet(HttpServletRequest req, HttpServletResponse resp)
* @throws ServletException if problem
* @throws IOException if problem
*/
@SuppressWarnings("unchecked")
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,14 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.sql.DataSource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Repository;

import uk.ac.imperial.libhpc2.schemaservice.web.dao.ProfileDao;
import uk.ac.imperial.libhpc2.schemaservice.web.db.Profile;
Expand All @@ -80,7 +77,7 @@ public void setDataSource(DataSource dataSource) {

@Override
public int add(Profile pProfile) {
boolean pub = new Boolean(pProfile.getPublic());
boolean pub = pProfile.getPublic();
Map<String,String> rowParams = new HashMap<String, String>(5);
rowParams.put("name", pProfile.getName());
rowParams.put("templateId", pProfile.getTemplateId());
Expand Down

0 comments on commit 9a7db4a

Please sign in to comment.