Skip to content

Commit 984c206

Browse files
committed
Add copyright and remove unused import
1 parent fcdc067 commit 984c206

10 files changed

Lines changed: 48 additions & 16 deletions

File tree

src/main/java/uk/ac/ngs/dao/JdbcBulk_ChainDao.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@
1414

1515
import org.apache.commons.logging.Log;
1616
import org.apache.commons.logging.LogFactory;
17-
import org.springframework.beans.factory.annotation.Autowired;
18-
import org.springframework.dao.DataAccessException;
19-
import org.springframework.jdbc.core.ResultSetExtractor;
2017
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
2118
import org.springframework.stereotype.Repository;
2219

23-
import javax.sql.DataSource;
24-
import java.sql.ResultSet;
25-
import java.sql.SQLException;
2620
import java.util.HashMap;
2721
import java.util.Map;
2822

src/main/java/uk/ac/ngs/dao/JdbcCaUserAuthDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
*/
1313
package uk.ac.ngs.dao;
1414

15-
import org.springframework.beans.factory.annotation.Autowired;
1615
import org.springframework.jdbc.core.RowMapper;
1716
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
1817
import org.springframework.stereotype.Repository;
1918
import uk.ac.ngs.domain.CertificateRow;
2019

21-
import javax.sql.DataSource;
2220
import java.math.BigDecimal;
2321
import java.sql.ResultSet;
2422
import java.sql.SQLException;

src/main/java/uk/ac/ngs/dao/JdbcCrrDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414

1515
import org.apache.commons.logging.Log;
1616
import org.apache.commons.logging.LogFactory;
17-
import org.springframework.beans.factory.annotation.Autowired;
1817
import org.springframework.dao.EmptyResultDataAccessException;
1918
import org.springframework.jdbc.core.RowMapper;
2019
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
2120
import org.springframework.stereotype.Repository;
2221
import uk.ac.ngs.common.Pair;
2322
import uk.ac.ngs.domain.CrrRow;
2423

25-
import javax.sql.DataSource;
2624
import java.sql.ResultSet;
2725
import java.sql.SQLException;
2826
import java.text.DateFormat;

src/main/java/uk/ac/ngs/dao/JdbcRalistDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@
1414

1515
import org.apache.commons.logging.Log;
1616
import org.apache.commons.logging.LogFactory;
17-
import org.springframework.beans.factory.annotation.Autowired;
1817
import org.springframework.jdbc.core.RowMapper;
1918
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
2019
import org.springframework.stereotype.Repository;
2120
import uk.ac.ngs.domain.RalistRow;
2221

23-
import javax.sql.DataSource;
2422
import java.sql.ResultSet;
2523
import java.sql.SQLException;
2624
import java.util.HashMap;

src/main/java/uk/ac/ngs/dao/JdbcRaopListDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414

1515
import org.apache.commons.logging.Log;
1616
import org.apache.commons.logging.LogFactory;
17-
import org.springframework.beans.factory.annotation.Autowired;
1817
import org.springframework.dao.EmptyResultDataAccessException;
1918
import org.springframework.jdbc.core.RowMapper;
2019
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
2120
import org.springframework.stereotype.Repository;
2221
import uk.ac.ngs.domain.RaopListRow;
2322

24-
import javax.sql.DataSource;
2523
import java.sql.ResultSet;
2624
import java.sql.SQLException;
2725
import java.util.HashMap;

src/main/java/uk/ac/ngs/dao/JdbcRequestDao.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import org.apache.commons.logging.Log;
1616
import org.apache.commons.logging.LogFactory;
17-
import org.springframework.beans.factory.annotation.Autowired;
1817
import org.springframework.dao.EmptyResultDataAccessException;
1918
import org.springframework.jdbc.core.RowMapper;
2019
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
@@ -26,7 +25,6 @@
2625
import uk.ac.ngs.domain.PKCS10_RequestWrapper;
2726
import uk.ac.ngs.domain.RequestRow;
2827

29-
import javax.sql.DataSource;
3028
import java.sql.ResultSet;
3129
import java.sql.SQLException;
3230
import java.text.DateFormat;

src/main/java/uk/ac/ngs/dao/RoleChangeRequestRepository.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright (C) 2015 STFC
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
* limitations under the License.
12+
*/
113
package uk.ac.ngs.dao;
214

315
import org.springframework.data.repository.CrudRepository;

src/main/java/uk/ac/ngs/domain/RoleChangeRequest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright (C) 2015 STFC
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
* limitations under the License.
12+
*/
113
package uk.ac.ngs.domain;
214

315
import org.springframework.data.annotation.Id;

src/test/java/uk/ac/ngs/controllers/ManageRaopTests.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright (C) 2015 STFC
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
* limitations under the License.
12+
*/
113
package uk.ac.ngs.controllers;
214

315
import static org.mockito.ArgumentMatchers.anyLong;

src/test/java/uk/ac/ngs/controllers/RaopHomeTests.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Copyright (C) 2015 STFC
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
* http://www.apache.org/licenses/LICENSE-2.0
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
* limitations under the License.
12+
*/
113
package uk.ac.ngs.controllers;
214

315
import static org.mockito.ArgumentMatchers.any;

0 commit comments

Comments
 (0)