Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
AbstractSingletonService: use more specific type
The LazyObjects instance will definitely return a collection of objects
of type PT, not just Object. This distinction is important now that the
ObjectIndex is more selective about which pending objects it resolves.
  • Loading branch information
ctrueden committed May 12, 2015
commit 5ef3f68b2105ac29ef20bf68e649fe5b0c08f4f1
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ public <P extends PT> P getInstance(final Class<P> pluginClass) {
@Override
public void initialize() {
// add singleton instances to the object index... IN THE FUTURE!
objectService.getIndex().addLater(new LazyObjects<Object>() {
objectService.getIndex().addLater(new LazyObjects<PT>() {

@Override
public ArrayList<Object> get() {
return new ArrayList<Object>(getInstances());
public ArrayList<PT> get() {
return new ArrayList<PT>(getInstances());
}
});
}
Expand Down