edu.umd.cs.findbugs.config.SortedProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotbugs Show documentation
Show all versions of spotbugs Show documentation
SpotBugs: Because it's easy!
package edu.umd.cs.findbugs.config;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Properties;
import java.util.Set;
/**
* @author pugh
*/
public final class SortedProperties extends Properties {
/**
* Overriden to be able to write properties sorted by keys to the disk
*
* @see java.util.Hashtable#keys()
*/
@SuppressWarnings("unchecked")
@Override
public synchronized Enumeration