Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 12823 (EditPanel#sortUnitsToRemove) illegal argument exception #12829

Merged
merged 2 commits into from
Aug 9, 2024

Commits on Aug 9, 2024

  1. Getter for UnitAttachment boolean attributes is* can*

    UnitAttachment.java
    - set lombok @getter annotation for boolean attributes of pattern is* and can* having simple getters, i.e., get-methods just returning the attribute value
    
    affected by renaming methods:
    -AbstractPlaceDelegate.java
    -AirBattle.java
    -AiUtils.java
    -BattleStepsTest.java
    -CasualtyUtil.java
    -DummyPlayerTest.java
    -EndTurnDelegate.java
    -FiringGroupSplitterAaTest.java
    -FiringGroupSplitterGeneralTest.java
    -GameParserTest.java
    -InitializationDelegate.java
    -MarkNoMovementLeftTest.java
    -Matches.java
    -MovePerformer.java
    -MoveValidator.java
    -NeighborGetter.java
    -OffensiveGeneralRetreatTest.java
    -ProCombatMoveAi.java
    -ProNonCombatMoveAi.java
    -ProPurchaseOption.java
    -ProPurchaseOptionMap.java
    -ProSortMoveOptionsUtils.java
    -ProTechAi.java
    -RemoveUnprotectedUnitsTest.java
    -ScrambleLogic.java
    -StrategicBombingRaidBattle.java
    -TabbedProductionPanel.java
    -TransportTracker.java
    -UnitAbilityFactory.java
    -UnitAttachment.java
    -UnitAttachmentTest.java
    -UnitComparator.java
    -UnitImageFactory.java
    -UnitInformation.java
    -UnitSeparator.java
    -UnitTypeComparator.java
    -UnitTypeComparatorTest.java
    -WeakAi.java
    frigoref committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    130a127 View commit details
    Browse the repository at this point in the history
  2. Fix issue 12823 EditPanel IllegalArgumentException

    EditPanel.java
    - avoid in method getRemovableUnitsOrder check on only one unit whether it is a transport capacity
    - make attributes transient
    - change selectedUnits.removeAll(units) to units.forEach(selectedUnits::remove)
    - extract method getScrollPane
    
    UnitAttachment.java
    - new method isTransportCapacity() replacing != -1 comparisons
    - comment typos
    frigoref committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    67879cb View commit details
    Browse the repository at this point in the history