synchronized (providers) {
if (providers.put(context, p) != null) {
// This is a bug, should never happen.
- throw new Error("Bug encountered, contact application support with stack trace.");
+ throw new Error("Unexpected bug, this should never happen!");
}
allProviders = providers.values().toArray(ZERO);
}
ISessionContextProvider provider = providers.remove(context);
if (provider == null) {
// This is a bug, should never happen.
- throw new Error("Bug encountered, contact application support with stack trace.");
+ throw new Error("Unexpected bug, this should never happen!");
}
allProviders = providers.values().toArray(ZERO);