Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4-M3
-
Fix Version/s: 2.4-M4
-
Component/s: referencing
-
Labels:None
Description
WeakHashSet is currently pulling double duty:
- It functions as a normal set that happens to store its entries using WeakReferences
- it has additional methods (ie canonicalize) in order to function in a manner similar to String.intern
We should seperate these two concerns - primarily so what is going on can be understood.
- WeakHashSet - remains as set of weak references, methods providing additional functionality will be deprecated
- CanonicalSet cerated as an extension to WeakHashSet and proivdes a unique method
This bug report is done when we have updated the code and provided user docs on the result.
Sample use:
class FooFactory {
public Foo create(String definition) {
Foo created = new Foo(definition);
return (Foo) canionicalSet.unique(created);
}
}
Issue Links
- is related to
-
GEOT-1301
GeoToolsFactory renamed to ReferencingObjectFactory
-
Activity
Jody Garnett
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
Jody Garnett
made changes -
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Martin Desruisseaux
made changes -
Jody Garnett
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
Jody Garnett
made changes -
| Summary | WeakHashSet renamed to CanonicalSet | Isolate CanonicalSet as a subclass of WeakHashSet |
| Description | WeakHashSet just deprecated for now, simply extends CanonicalSet which is its replacement. We need to rename any associated test case as well. |
WeakHashSet is currently pulling double duty: - It functions as a normal set that happens to store its entries using WeakReferences - it has additional methods (ie canonicalize) in order to function in a manner similar to String.intern We should seperate these two concerns - primarly so what is going on can be understood. - WeakHashSet - remains as set of weak references, methods providing additional functionality will be deprecated - CanonicalSet cerated as an extention to WeakHashSet and proivdes a toUnique method This bug report is done when we have updated the code and provided user docs on the result. Sample use: {code} class FooFactory { public Foo create(String definition) { Foo created = new Foo(definition); return (Foo) canionicalSet.toUnique(created); } } {code} |
Jody Garnett
made changes -
| Description |
WeakHashSet is currently pulling double duty: - It functions as a normal set that happens to store its entries using WeakReferences - it has additional methods (ie canonicalize) in order to function in a manner similar to String.intern We should seperate these two concerns - primarly so what is going on can be understood. - WeakHashSet - remains as set of weak references, methods providing additional functionality will be deprecated - CanonicalSet cerated as an extention to WeakHashSet and proivdes a toUnique method This bug report is done when we have updated the code and provided user docs on the result. Sample use: {code} class FooFactory { public Foo create(String definition) { Foo created = new Foo(definition); return (Foo) canionicalSet.toUnique(created); } } {code} |
WeakHashSet is currently pulling double duty: - It functions as a normal set that happens to store its entries using WeakReferences - it has additional methods (ie canonicalize) in order to function in a manner similar to String.intern We should seperate these two concerns - primarly so what is going on can be understood. - WeakHashSet - remains as set of weak references, methods providing additional functionality will be deprecated - CanonicalSet cerated as an extention to WeakHashSet and proivdes a toUnique method This bug report is done when we have updated the code and provided user docs on the result. Sample use: {code} class FooFactory { public Foo create(String definition) { Foo created = new Foo(definition); return (Foo) canionicalSet.unique(created); } } {code} |
Jody Garnett
made changes -
| Description |
WeakHashSet is currently pulling double duty: - It functions as a normal set that happens to store its entries using WeakReferences - it has additional methods (ie canonicalize) in order to function in a manner similar to String.intern We should seperate these two concerns - primarly so what is going on can be understood. - WeakHashSet - remains as set of weak references, methods providing additional functionality will be deprecated - CanonicalSet cerated as an extention to WeakHashSet and proivdes a toUnique method This bug report is done when we have updated the code and provided user docs on the result. Sample use: {code} class FooFactory { public Foo create(String definition) { Foo created = new Foo(definition); return (Foo) canionicalSet.unique(created); } } {code} |
WeakHashSet is currently pulling double duty: - It functions as a normal set that happens to store its entries using WeakReferences - it has additional methods (ie canonicalize) in order to function in a manner similar to String.intern We should seperate these two concerns - primarily so what is going on can be understood. - WeakHashSet - remains as set of weak references, methods providing additional functionality will be deprecated - CanonicalSet cerated as an extension to WeakHashSet and proivdes a *unique* method This bug report is done when we have updated the code and provided user docs on the result. Sample use: {code} class FooFactory { public Foo create(String definition) { Foo created = new Foo(definition); return (Foo) canionicalSet.unique(created); } } {code} |
Jody Garnett
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Reopened [ 4 ] | Closed [ 6 ] |
Martin Desruisseaux
made changes -
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Fixed [ 1 ] |
Martin Desruisseaux
made changes -
| Affects Version/s | 2.4-M3 [ 13451 ] |
Martin Desruisseaux
made changes -
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |