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 55852d'>diff
AgeCommit message (Expand)Author
2019-05-07uuid: 'fat-uuid->string' preserves leading zeros....Fixes <https://bugs.gnu.org/35582>. Reported by sirgazil <sirgazil@zoho.com>. Previously, leading zeros would be removed, leading to an "invalid" UUID: (uuid->string (uuid "00CA-050E" 'fat32)) ⇒ "CA-50E" (string->uuid "CA-50E" 'fat32) ⇒ #f * gnu/system/uuid.scm (fat-uuid->string): Pad digits with zeros. * tests/uuid.scm ("uuid, FAT32, leading zeros preserved"): New test. Ludovic Courtès
2018-05-19uuid: 'uuid' returns #f when 'string->uuid' returns #f....* gnu/system/uuid.scm (uuid): When STR is not a literal, return #f when 'string->uuid' returns #f. * tests/uuid.scm ("uuid, dynamic value"): New test. Ludovic Courtès
2017-10-06uuid: Fix typo in 'uuid=?' test....* tests/uuid.scm ("uuid=?"): Change to 'test-assert'. Ludovic Courtès
2017-10-05uuid: Add 'uuid=?' and use it....* gnu/system/uuid.scm (uuid=?): New procedure. * tests/uuid.scm ("uuid=?"): New test. * gnu/build/file-systems.scm (partition-uuid-predicate) (luks-partition-uuid-predicate): Use it instead of 'bytevector=?'. Ludovic Courtès
2017-09-22uuid: Add a parser for FAT32 UUIDs....* gnu/system/uuid.scm (%fat32-uuid-rx): New variable. (string->fat32-uuid): New procedure. (%uuid-parsers): Add it. * tests/uuid.scm ("uuid, FAT32, format preserved"): New test. Ludovic Courtès
2017-09-14uuid: Move tests to 'tests/uuid.scm'....* tests/file-systems.scm ("uuid->string", "string->uuid") ("uuid", "uuid, syntax error"): Move to... * tests/uuid.scm: ... here. New file. ("uuid, ISO-9660, format preserved"): New test. Ludovic Courtès