Details
-
- Environment:
- -
Activity
| Field | Original Value | New Value |
|---|---|---|
| Priority | Trivial [ 5 ] | |
| Description |
Obtaining the singleton {{instance}} of the class {{org.ow2.petals.registry.api.context.ContextFactory}} can be improved removing the modifier synchronized and using a static bloc to initialize the singleton:
{code} private final static ContextFactoryinstance = new ContextFactory(); public static ContextFactory getInstance() { return instance; } {code} |
Obtaining the singleton {{instance}} of the class {{org.ow2.petals.registry.api.context.ContextFactory}} can be improved removing the modifier {{synchronized}} and using a static bloc to initialize the singleton:
{code} private final static ContextFactoryinstance = new ContextFactory(); public static ContextFactory getInstance() { return instance; } {code} |
| Status | New [ 10000 ] | Open [ 10002 ] |
| Issue Type | Improvement Request [ 4 ] | Task [ 3 ] |
| Status | Open [ 10002 ] | In Progress [ 10003 ] |
| Status | In Progress [ 10003 ] | Resolved [ 10004 ] |
| Fix Version/s | 4.0.1 [ 10334 ] | |
| Resolution | Fixed [ 1 ] |