File tree Expand file tree Collapse file tree
src/main/java/javax/measure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public interface Unit<Q extends Quantity<Q>> {
155155 * this unit's dimension do not match. For example:
156156 *
157157 * <code>
158- * {@literal Unit<Speed>} C = METRE.times (299792458).divide(SECOND).asType(Speed.class);
158+ * {@literal Unit<Speed>} C = METRE.multiply (299792458).divide(SECOND).asType(Speed.class);
159159 * </code>
160160 *
161161 * @param <T>
@@ -217,7 +217,7 @@ public interface Unit<Q extends Quantity<Q>> {
217217 *
218218 * <code>
219219 * {@literal Unit<Angle>} RADIAN = ONE.alternate("rad").asType(Angle.class);<br>
220- * {@literal Unit<Force>} NEWTON = METRE.times (KILOGRAM).divide(SECOND.pow(2)).alternate("N").asType(Force.class);<br>
220+ * {@literal Unit<Force>} NEWTON = METRE.multiply (KILOGRAM).divide(SECOND.pow(2)).alternate("N").asType(Force.class);<br>
221221 * {@literal Unit<Pressure>} PASCAL = NEWTON.divide(METRE.pow(2)).alternate("Pa").asType(Pressure.class);<br>
222222 * </code>
223223 *
Original file line number Diff line number Diff line change 3838 *
3939 * <h4><a name="synchronization">Synchronization</a></h4>
4040 * <p>
41- * Instances of this class are not required to be thread-safe. It is recommended to of separate format instances for each thread. If multiple threads
41+ * Instances of this class are not required to be thread-safe. It is recommended to use separate format instances for each thread. If multiple threads
4242 * access a format concurrently, it must be synchronized externally.
4343 * <p>
4444 *
You can’t perform that action at this time.
0 commit comments