Skip to content

Commit

Permalink
UNITSOFMEASUREMENT-183: getProductUnits should probably be renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Jun 29, 2016
1 parent 3676ab6 commit ae020ff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
6 changes: 1 addition & 5 deletions src/main/java/tec/uom/impl/enums/unit/DimensionlessUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

/**
* @author Werner Keil
* @version 1.2, $Date: 2016-06-21 $
* @version 1.3, $Date: 2016-06-30 $
*/
public enum DimensionlessUnit implements Unit<Dimensionless>,
DoubleFactorSupplier {
Expand Down Expand Up @@ -161,8 +161,4 @@ public Unit<Dimensionless> transform(UnitConverter operation) {
public Unit<Dimensionless> shift(double v) {
return this;
}

public Map getProductUnits() {
throw new UnsupportedOperationException("Use getBaseUnits() instead");
}
}
7 changes: 1 addition & 6 deletions src/main/java/tec/uom/impl/enums/unit/DistanceUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@

/**
* @author Werner Keil
* @version 1.3.1 ($Revision: 444 $), $Date: 2014-03-18 23:55:19 +0100 (Di, 18
* Mär 2014) $
* @version 1.3.2, $Date: 2016-06-30 $
*/
public enum DistanceUnit implements Unit<Length>, DoubleFactorSupplier,
DescriptiveEnum<DistanceUnit> {
Expand Down Expand Up @@ -177,8 +176,4 @@ public String getDescription() {
public DescriptiveEnum<DistanceUnit>[] dValues() {
return DistanceUnit.values();
}

public Map getProductUnits() {
throw new UnsupportedOperationException("Use getBaseUnits() instead");
}
}
6 changes: 1 addition & 5 deletions src/main/java/tec/uom/impl/enums/unit/ShirtSizeUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

/**
* @author Werner Keil
* @version 0.1, $Date: 2014-08-28 $
* @version 0.2, $Date: 2016-06-30 $
*/
public enum ShirtSizeUnit implements Unit<ShirtSize>,
DescriptiveEnum<ShirtSizeUnit> {
Expand Down Expand Up @@ -165,8 +165,4 @@ public String getDescription() {
public DescriptiveEnum<ShirtSizeUnit>[] dValues() {
return ShirtSizeUnit.values();
}

public Map getProductUnits() {
throw new UnsupportedOperationException("Use getBaseUnits() instead");
}
}
6 changes: 1 addition & 5 deletions src/main/java/tec/uom/impl/enums/unit/TemperatureUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

/**
* @author Werner Keil
* @version 0.4.1, $Date: 2014-12-20 $
* @version 0.5, $Date: 2016-06-30 $
*/
public enum TemperatureUnit implements Unit<Temperature>, DoubleFactorSupplier,
DescriptionSupplier {
Expand Down Expand Up @@ -237,8 +237,4 @@ public Unit<Temperature> shift(double v) {
public String getDescription() {
return description;
}

public Map getProductUnits() {
throw new UnsupportedOperationException("Use getBaseUnits() instead");
}
}
7 changes: 1 addition & 6 deletions src/main/java/tec/uom/impl/enums/unit/TimeUnit.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@

/**
* @author Werner Keil
* @version 1.2 ($Revision: 444 $), $Date: 2014-03-18 23:55:19 +0100 (Di, 18 Mär
* 2014) $
* @version 1.3, $Date: 2016-06-30 $
*/
public enum TimeUnit implements Unit<Time>, DoubleFactorSupplier {

Expand Down Expand Up @@ -165,8 +164,4 @@ public Unit<Time> transform(UnitConverter operation) {
public Unit<Time> shift(double v) {
return this;
}

public Map getProductUnits() {
throw new UnsupportedOperationException("Use getBaseUnits() instead");
}
}

0 comments on commit ae020ff

Please sign in to comment.