• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SpiNNakerManchester / JavaSpiNNaker / 6233274834

19 Sep 2023 08:46AM UTC coverage: 36.409% (-0.6%) from 36.982%
6233274834

Pull #658

github

dkfellows
Merge branch 'master' into java-17
Pull Request #658: Update Java version to 17

1656 of 1656 new or added lines in 260 files covered. (100.0%)

8373 of 22997 relevant lines covered (36.41%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/SpiNNaker-allocserv/src/main/java/uk/ac/manchester/spinnaker/alloc/model/BoardIssueReport.java
1
/*
2
 * Copyright (c) 2022 The University of Manchester
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16
package uk.ac.manchester.spinnaker.alloc.model;
17

18
import java.time.Instant;
19

20
import com.fasterxml.jackson.annotation.JsonCreator;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22

23
import uk.ac.manchester.spinnaker.alloc.db.Row;
24
import uk.ac.manchester.spinnaker.alloc.db.SQLQueries;
25
import uk.ac.manchester.spinnaker.utils.UsedInJavadocOnly;
26

27
/**
28
 * A report of an issue with a board.
29
 *
30
 * @author Donal Fellows
31
 * @param id
32
 *            The report ID.
33
 * @param boardId
34
 *            The board ID.
35
 * @param issue
36
 *            What did they report?
37
 * @param reporter
38
 *            Who reported it?
39
 * @param timestamp
40
 *            When was it reported?
41
 */
42
public record BoardIssueReport(int id, int boardId, String issue,
×
43
                String reporter, Instant timestamp) {
44
        @JsonCreator
45
        BoardIssueReport(@JsonProperty int id, @JsonProperty int boardId,
46
                        @JsonProperty String issue, @JsonProperty String reporter,
47
                        @JsonProperty String timestamp) {
48
                this(id, boardId, issue, reporter, Instant.parse(timestamp));
×
49
        }
×
50

51
        /**
52
         * Create a record from a row.
53
         *
54
         * @param row
55
         *            The database row.
56
         * @see SQLQueries#GET_BOARD_REPORTS
57
         */
58
        @UsedInJavadocOnly(SQLQueries.class)
59
        public BoardIssueReport(Row row) {
60
                this(row.getInt("report_id"), row.getInt("board_id"),
×
61
                                row.getString("reported_issue"), row.getString("reporter_name"),
×
62
                                row.getInstant("report_timestamp"));
×
63
        }
×
64
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc