mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Made BdfDictionary and BdfList thread-safe.
This commit is contained in:
@@ -2,10 +2,11 @@ package org.briarproject.api.data;
|
||||
|
||||
import org.briarproject.api.FormatException;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Hashtable;
|
||||
|
||||
// This class is not thread-safe
|
||||
public class BdfDictionary extends HashMap<String, Object> {
|
||||
public class BdfDictionary extends Hashtable<String, Object> {
|
||||
|
||||
public static final Object NULL_VALUE = new Object();
|
||||
|
||||
public Boolean getBoolean(String key) throws FormatException {
|
||||
Object o = get(key);
|
||||
|
||||
@@ -2,10 +2,9 @@ package org.briarproject.api.data;
|
||||
|
||||
import org.briarproject.api.FormatException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Vector;
|
||||
|
||||
// This class is not thread-safe
|
||||
public class BdfList extends ArrayList<Object> {
|
||||
public class BdfList extends Vector<Object> {
|
||||
|
||||
public Boolean getBoolean(int index) throws FormatException {
|
||||
Object o = get(index);
|
||||
|
||||
Reference in New Issue
Block a user