edu.umd.cs.findbugs.config

Class SortedProperties

public final class SortedProperties extends Properties

Author: pugh

Method Summary
static EnumerationsortKeys(Set<String> keySet)
To be compatible with version control systems, we need to sort properties before storing them to disk.

Method Detail

sortKeys

public static Enumeration sortKeys(Set<String> keySet)
To be compatible with version control systems, we need to sort properties before storing them to disk. Otherwise each change may lead to problems by diff against previous version - because Property entries are randomly distributed (it's a map).

Parameters: keySet non null set instance to sort

Returns: non null list wich contains all given keys, sorted lexicographically. The list may be empty if given set was empty

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.