From b3b7a305f1278ec414500bf96c4c7a7f634c941b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Thee=C3=9F?= Date: Thu, 15 Sep 2016 13:08:26 +0200 Subject: [PATCH] Dictionary uses stable order. This fixes unit tests. This is upstream pull request #15: https://github.com/ngallagher/simplexml/pull/15 This software is unmaintained, this pull request will no get merged. The patch is modified, to match the directory layout of the tarball. --- src/main/java/org/simpleframework/xml/util/Dictionary.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/simpleframework/xml/util/Dictionary.java b/src/main/java/org/simpleframework/xml/util/Dictionary.java index 077d2514..c7327426 100644 --- a/src/org/simpleframework/xml/util/Dictionary.java +++ b/src/org/simpleframework/xml/util/Dictionary.java @@ -19,8 +19,8 @@ package org.simpleframework.xml.util; import java.util.AbstractSet; -import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; /** * The Dictionary object represents a mapped set of entry @@ -134,7 +134,7 @@ public T remove(String name) { * * @see org.simpleframework.xml.util.Entry */ - private static class Table extends HashMap { + private static class Table extends LinkedHashMap { /** * Constructor for the Table object. This will sts/store-database.scm?id=17375266ea2e94726bf3d28c1d4fb3899c115377'>diff
AgeCommit message (Expand)Author
2021-01-31database: Validate #:nar-size and #:time when registering store items....* guix/store/database.scm (assert-integer): New procedure. (update-or-insert): Use it to validate NAR-SIZE and TIME. * tests/store-database.scm ("sqlite-register with incorrect size"): New test. Ludovic Courtès
2020-12-15database: Remove 'register-path'....* guix/store/database.scm (register-path): Remove. * tests/store-database.scm ("register-path"): Rename to... ("register-items"): ... this, and use 'register-items' instead of 'register-path'. ("register-path, directory"): Rename to... ("register-items, directory"): ... this, and use 'register-items' instead of 'register-path'. ("register-path with unregistered references"): Rename to... ("sqlite-register with unregistered references"): ... this. Ludovic Courtès
2020-12-15database: Remove #:deduplicate? and #:reset-timestamps? from 'register-path'....* guix/store/database.scm (register-path): Remove #:deduplicate? and #:reset-timestamps?. * guix/scripts/system.scm (copy-item): Adjust accordingly. * tests/store-database.scm ("register-path") ("register-path, directory"): Call 'reset-timestamps'. Ludovic Courtès
2020-11-21store-database: Add test checking the directory mtime after 'register-path'....* tests/store-database.scm ("register-path, directory"): New test. Ludovic Courtès