# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Methods
- Deprecated Constructors

Deprecated Classes
Class and Description
org.apache.sling.commons.osgi.OsgiUtil Use `org.osgi.util.converter.Converters` and `ServiceUtil` instead
org.apache.sling.commons.osgi.PropertiesUtil Use `org.osgi.util.converter.Converters` instead

Deprecated Methods
Method and Description
org.apache.sling.commons.osgi.RankedServices.get() Use `RankedServices.getList()` instead
org.apache.sling.commons.osgi.ServiceUtil.getComparableForServiceRanking(Map<String, Object>) Use `ServiceUtil.getComparableForServiceRanking(Map, Order)` instead.
org.apache.sling.commons.osgi.OsgiUtil.getProperty(Object, double) since 2.0.4, use `OsgiUtil.toDouble(Object, double)` instead

Deprecated Constructors
Constructor and Description
org.apache.sling.commons.osgi.RankedServices() Use `RankedServices.RankedServices(Order)` to explicitly give the order.
org.apache.sling.commons.osgi.RankedServices(RankedServices.ChangeListener) Use `RankedServices.RankedServices(Order order, ChangeListener changeListener)` instead