Skip to content

Commit f52e26b

Browse files
committed
Fix warnings.
1 parent 6da4ba3 commit f52e26b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/main/java/io/jenkins/plugins/forensics/blame/FileBlame.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ private FileBlame(final TreeString fileName) {
4747
*
4848
* @return this
4949
*/
50+
@Serial
51+
@SuppressWarnings("DataFlowIssue")
5052
private Object readResolve() {
5153
if (timeByLine == null) {
5254
timeByLine = new HashMap<>();

src/main/java/io/jenkins/plugins/forensics/miner/FileStatistics.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public String getFileName() {
6363
*
6464
* @return this
6565
*/
66+
@Serial
6667
@SuppressWarnings("deprecation")
6768
@SuppressFBWarnings(value = "RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE", justification = "Deserialization of instances that do not have all fields yet")
6869
private Object readResolve() {

src/main/java/io/jenkins/plugins/forensics/reference/ReferenceRecorder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ private Optional<ReferenceBuild> searchForReferenceBuildWithRequiredStatus(final
182182
var job = run.getParent();
183183
var topLevel = job.getParent();
184184
if (topLevel instanceof MultiBranchProject multiBranchProject) {
185-
186185
logger.logInfo("Found a `MultiBranchProject`, trying to resolve the target branch from the configuration");
187186

188187
var targetBranch = getTargetBranch();

0 commit comments

Comments
 (0)