Tags: Mu-L/triplea
Tags
Speed up canal validation code. (triplea-game#11915) No functional changes. This was showing up in profiles.
Use BFS class for GameMap.getDistance(). (triplea-game#11914) * Use BFS class for GameMap.getDistance(). * Fix test.
Reduce use of expensive getTransporting(). (triplea-game#11913) * Reduce use of expensive getTransporting(). * Remove now unnecessary stubbing. * Removed unused imports.
Some small code clean ups. (triplea-game#11912) * Some small code clean ups. * Tweak.
Bump mockitoVersion from 5.4.0 to 5.5.0 (triplea-game#11902) Bumps `mockitoVersion` from 5.4.0 to 5.5.0. Updates `org.mockito:mockito-core` from 5.4.0 to 5.5.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.4.0...v5.5.0) Updates `org.mockito:mockito-junit-jupiter` from 5.4.0 to 5.5.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.4.0...v5.5.0) Updates `org.mockito:mockito-subclass` from 5.4.0 to 5.5.0 - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](mockito/mockito@v5.4.0...v5.5.0) --- updated-dependencies: - dependency-name: org.mockito:mockito-core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.mockito:mockito-junit-jupiter dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: org.mockito:mockito-subclass dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Various code clean ups. (triplea-game#11901) No functional changes. Clean ups: - Rewrap some comments that were poorly wrapped due to past code reformatting. - Use GridBagConstraintsBuilder in BattleCalculatorPanel to make the code much more concise - Switch some countMatches() calls to noneMatch() and anyMatch(). - Remove some unnecessary logic prior to calling getMaxUnitsToBePlacedFrom(), since getMaxUnitsToBePlacedFrom() does that logic already.
PlacePanel: Limit max based on unit requirements. (triplea-game#11887) This change caps the max for each unit type in the place panel to the max that can be placed for that type when considering "units which require units" logic (i.e. factory types). This partially prevents the error "Cannot place more units which require units, than production capacity of territories with the required units" after making the selection in the place panel. Note: That error can still happen when selecting multiple units of different types that surpass the max.
Make unit stack filter return a serializable list. (triplea-game#11892)
Improve unitWhichRequiresUnitsHasRequiredUnitsInList. (triplea-game#1… …1890) * Improve unitWhichRequiresUnitsHasRequiredUnitsInList. - Previous code was modifying the unitsInTerritoryAtStartOfTurn list, which doesn't seem correct. - Simplifies some logic. * More simplification.
PreviousNext