Changes between Initial Version and Version 1 of Ticket #11333, comment 3


Ignore:
Timestamp:
2018-05-27T00:08:10+02:00 (8 years ago)
Author:
Don-vip

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11333, comment 3

    initial v1  
    11Removing assertion error can help:
    22{{{
     3#!java
    34if (ds.getPrimitiveById(osm) != null)
    4                     throw new AssertionError(String.format("Primitive %s was removed when purging, but is still there on undo", osm));
     5    throw new AssertionError(String.format("Primitive %s was removed when purging, but is still there on undo", osm));
    56ds.addPrimitive(osm);
    67}}}
    78replaced to
    89{{{
     10#!java
    911if (ds.getPrimitiveById(osm) == null) {
    1012   ds.addPrimitive(osm);