Ignore:
Timestamp:
2020-03-20T21:06:06+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #18956 - allow TestError to be built with an empty list of primitives + make OpeningHourTestTest work on Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r15939 r16178  
    220220         *
    221221         * @return a new test error with the specified values
    222          * @throws IllegalArgumentException when {@link #message} or {@link #primitives} is null/empty.
     222         * @throws IllegalArgumentException when {@link #message} or {@link #primitives} is null.
    223223         */
    224224        public TestError build() {
    225225            CheckParameterUtil.ensureParameterNotNull(message, "message not set");
    226226            CheckParameterUtil.ensureParameterNotNull(primitives, "primitives not set");
    227             CheckParameterUtil.ensureThat(!primitives.isEmpty(), "primitives is empty");
    228227            if (this.highlighted == null) {
    229228                this.highlighted = Collections.emptySet();
Note: See TracChangeset for help on using the changeset viewer.