- Thread.dumpStack() -> log.warning(..., new Exception())
- Cleaned up a couple of incorrect javadoc references. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2540 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -144,8 +144,7 @@ public class SimpleRepository extends Repository
|
|||||||
// check our pre-condition
|
// check our pre-condition
|
||||||
if (_precond != null && !_precond.validate(_dbident, op)) {
|
if (_precond != null && !_precond.validate(_dbident, op)) {
|
||||||
log.warning("Repository operation failed pre-condition check!", "dbident", _dbident,
|
log.warning("Repository operation failed pre-condition check!", "dbident", _dbident,
|
||||||
"op", op);
|
"op", op, new Exception());
|
||||||
Thread.dumpStack();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// obtain our database connection and associated goodies
|
// obtain our database connection and associated goodies
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class MessageUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether or not the provided string is tainted. See {@link #taint()}. Null strings
|
* Returns whether or not the provided string is tainted. See {@link #taint}. Null strings
|
||||||
* are considered untainted.
|
* are considered untainted.
|
||||||
*/
|
*/
|
||||||
public static boolean isTainted (String text)
|
public static boolean isTainted (String text)
|
||||||
@@ -52,7 +52,7 @@ public class MessageUtil
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the tainting character added to a string by {@link #taint()}. If the provided string
|
* Removes the tainting character added to a string by {@link #taint}. If the provided string
|
||||||
* is not tainted, this silently returns the originally provided string.
|
* is not tainted, this silently returns the originally provided string.
|
||||||
*/
|
*/
|
||||||
public static String untaint (String text)
|
public static String untaint (String text)
|
||||||
|
|||||||
@@ -284,8 +284,8 @@ public class ObserverList<T> extends ArrayList<T>
|
|||||||
{
|
{
|
||||||
// make sure we're not violating the list constraints
|
// make sure we're not violating the list constraints
|
||||||
if (!_allowDups && contains(obs)) {
|
if (!_allowDups && contains(obs)) {
|
||||||
log.warning("Observer attempted to observe list it's already observing!", "obs", obs);
|
log.warning("Observer attempted to observe list it's already observing!", "obs", obs,
|
||||||
Thread.dumpStack();
|
new Exception());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user