Skip to content

Commit 3ced3eb

Browse files
authored
Added missing default constructor to EuclideanDistance class (#818)
* Added missing default constructor * Update CHANGELOG.md
1 parent 1db2e28 commit 3ced3eb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased] - 2025-05-16
7+
## [Unreleased] - 2025-10-04
88

99
### Added
1010

@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Removed
1616

1717
### Fixed
18+
* Added missing default constructor to `org.cicirello.search.problems.tsp.EuclideanDistance` to avoid undocumented constructor.
1819

1920
### Dependencies
2021

src/main/java/org/cicirello/search/problems/tsp/EuclideanDistance.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Chips-n-Salsa: A library of parallel self-adaptive local search algorithms.
3-
* Copyright (C) 2002-2022 Vincent A. Cicirello
3+
* Copyright (C) 2002-2025 Vincent A. Cicirello
44
*
55
* This file is part of Chips-n-Salsa (https://chips-n-salsa.cicirello.org/).
66
*
@@ -28,6 +28,14 @@
2828
*/
2929
public final class EuclideanDistance implements TSPEdgeDistance {
3030

31+
/** Constructs the Euclidean distance function. */
32+
public EuclideanDistance() {
33+
// Deliberately empty: no initialization necessary.
34+
// Added empty default constructor for javadoc purposes, such as
35+
// preventing warning during compilation, and to ensure the documentation
36+
// is not blank.
37+
}
38+
3139
@Override
3240
public double distance(double x1, double y1, double x2, double y2) {
3341
double deltaX = x1 - x2;

0 commit comments

Comments
 (0)