Skip to content

Commit e73bf48

Browse files
committed
UNITSOFMEASUREMENT-191: Could QuantityFactoryService be merged into
ServiceProvider, too? Task-Url: https://java.net/jira/browse/UNITSOFMEASUREMENT-191
1 parent 411f876 commit e73bf48

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

src/main/java/javax/measure/spi/ServiceProvider.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* <p>
4545
* All the methods in this class are safe for use by multiple concurrent threads.
4646
*
47-
* @version 0.9, May 11, 2016
47+
* @version 0.9.1, June 14, 2016
4848
* @author Werner Keil
4949
* @author Martin Desruisseaux
5050
*/
@@ -90,14 +90,6 @@ public int getPriority() {
9090
*/
9191
public abstract UnitFormatService getUnitFormatService();
9292

93-
/**
94-
* Returns the service to obtain a {@link Quantity}, or {@code null} if none.
95-
*
96-
* @return the service to obtain a {@link Quantity}, or {@code null}.
97-
* @deprecated use {@link #getQuantityFactory(Class)} instead
98-
*/
99-
public abstract QuantityFactoryService getQuantityFactoryService();
100-
10193
/**
10294
* Return a factory for this {@link Quantity}.
10395
*

src/test/java/javax/measure/spi/ServiceProviderTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ public UnitFormatService getUnitFormatService() {
7777
return null;
7878
}
7979

80-
@Override
81-
public QuantityFactoryService getQuantityFactoryService() {
82-
return null;
83-
}
84-
8580
@Override
8681
public <Q extends Quantity<Q>> QuantityFactory<Q> getQuantityFactory(Class<Q> quantity) {
8782
return null;

0 commit comments

Comments
 (0)