Skip to content

Commit

Permalink
remove call to deprecated for removal ThreadGroup.setDaemon()
Browse files Browse the repository at this point in the history
"The daemon status is not used for anything"
The method setDaemon(boolean) from the type ThreadGroup has been
deprecated since version 16 and marked for removal

EventManager.EventThread.EventThread(ThreadGroup, String) starts threads
as daemon
  • Loading branch information
EcljpseB0T committed Feb 13, 2024
1 parent 8b04c1a commit c3c61f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public class EventAdminImpl implements EventAdmin {
void start() {
log.open();
ThreadGroup eventGroup = new ThreadGroup("Equinox Event Admin"); //$NON-NLS-1$
eventGroup.setDaemon(true);
eventManager = new EventManager(EventAdminMsg.EVENT_ASYNC_THREAD_NAME, eventGroup);
handlers.open();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ protected UserAdminEventProducer(ServiceReference userAdmin, BundleContext conte
this.userAdmin = userAdmin;
this.log = log;
ThreadGroup eventGroup = new ThreadGroup("Equinox User Admin"); //$NON-NLS-1$
eventGroup.setDaemon(true);
eventManager = new EventManager("UserAdmin Event Dispatcher", eventGroup); //$NON-NLS-1$
listeners = new CopyOnWriteIdentityMap<>();

Expand Down Expand Up @@ -76,17 +75,17 @@ protected void generateEvent(int type, Role role) {
*
* <p>
* This method is called before a service which matched the search parameters of
* the <code>ServiceTracker</code> object is added to it. This method should return
* the service object to be tracked for this <code>ServiceReference</code> object.
* The returned service object is stored in the <code>ServiceTracker</code> object
* and is available from the <code>getService</code> and <code>getServices</code>
* methods.
* the <code>ServiceTracker</code> object is added to it. This method should
* return the service object to be tracked for this
* <code>ServiceReference</code> object. The returned service object is stored
* in the <code>ServiceTracker</code> object and is available from the
* <code>getService</code> and <code>getServices</code> methods.
*
* @param reference Reference to service being added to the
* <code>ServiceTracker</code> object.
* @return The service object to be tracked for the <code>ServiceReference</code>
* object or <code>null</code> if the <code>ServiceReference</code> object
* should not be tracked.
* @return The service object to be tracked for the
* <code>ServiceReference</code> object or <code>null</code> if the
* <code>ServiceReference</code> object should not be tracked.
*/
@Override
public Object addingService(ServiceReference reference) {
Expand Down

0 comments on commit c3c61f9

Please sign in to comment.