Changeset 17982 in josm
- Timestamp:
- 2021-07-10T21:21:24+02:00 (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/OverpassQueryWizardDialog.java
r17336 r17982 69 69 default: 70 70 super.buttonAction(buttonIndex, evt); 71 72 71 } 73 72 } -
trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
r17811 r17982 12 12 import java.time.ZoneId; 13 13 import java.time.ZoneOffset; 14 import java.time.format.DateTimeParseException; 14 15 import java.util.Arrays; 15 16 import java.util.EnumMap; … … 223 224 Logging.warn("Unsupported syntax: " + matcher.group(1)); 224 225 } 225 } catch (UncheckedParseException | IOException | NoSuchElementException | IndexOutOfBoundsException ex) { 226 } catch (UncheckedParseException | DateTimeParseException | IOException | NoSuchElementException | IndexOutOfBoundsException ex) { 226 227 final String msg = tr("Failed to evaluate {0}", matcher.group()); 227 228 Logging.log(Logging.LEVEL_WARN, msg, ex); -
trunk/src/org/openstreetmap/josm/tools/SearchCompilerQueryWizard.java
r17336 r17982 104 104 final String value = ((SearchCompiler.KeyValue) match).getValue(); 105 105 if ("newer".equals(key)) { 106 return "(newer:" + quote( "{{date:" + value + "}}") + ")";106 return "(newer:" + quote(value) + ")"; 107 107 } 108 108 return "[~" + quote(key) + "~" + quote(value) + "]"; -
trunk/test/unit/org/openstreetmap/josm/tools/SearchCompilerQueryWizardTest.java
r17336 r17982 217 217 218 218 /** 219 * Test "newer" query. 220 */ 221 @Test 222 void testNewer() { 223 assertQueryEquals(" nwr(newer:\"2021-05-30T20:00:00Z\");\n", 224 "newer:\"2021-05-30T20:00:00Z\""); 225 } 226 227 /** 219 228 * Test building an Overpass query based on a preset name. 220 229 */
Note:
See TracChangeset
for help on using the changeset viewer.