Commit 67677b6e authored by Jonathan Mace's avatar Jonathan Mace

Update javadoc

parent e01c11f2
......@@ -85,7 +85,9 @@ public class ActiveBaggage {
/**
* Deserializes the provided context and merges it into the currently active context.
*
* @param serializedContext a serialized baggage context, possibly null
* @param serialized a serialized baggage context, possibly null
* @param offset offset into byte array
* @param length length of bytes to use
*/
public static void join(byte[] serialized, int offset, int length) {
transit.join(serialized, offset, length);
......
......@@ -37,7 +37,13 @@ public class BDLUtils {
return s.replaceAll("(?m)^", " ");
}
/** Equality comparison, using the provided default value if a or b are null */
/**
* Equality comparison, using the provided default value if a or b are null
* @param a an object instance, possibly null
* @param b an object instance, possibly null
* @param defaultValue the default value to use for a or b if they happen to be null
* @return true if <code>a</code> and <code>b</code> are equal
*/
public static <T> boolean equals(T a, T b, T defaultValue) {
if (a == null && b == null) {
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment