marked class as final.
print stack trace on id generation if debug is true.
This commit is contained in:
parent
0652286e82
commit
43cba33077
1 changed files with 7 additions and 5 deletions
|
@ -14,7 +14,7 @@ import java.util.Vector;
|
|||
* in JavaScript which doesn't know about them (except for the exception message).
|
||||
*/
|
||||
|
||||
public class WrappedNodeManager {
|
||||
public final class WrappedNodeManager {
|
||||
|
||||
NodeManager nmgr;
|
||||
|
||||
|
@ -131,6 +131,8 @@ import java.util.Vector;
|
|||
return nmgr.generateID (map);
|
||||
// otherwise, we use an oracle sequence
|
||||
} catch (Exception x) {
|
||||
if (nmgr.app.debug ())
|
||||
x.printStackTrace();
|
||||
throw new RuntimeException (x.toString ());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue