File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/com/lcl/lclmeasurementtool/Utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public class ConvertUtils {
14
14
*/
15
15
public static double toMbps (double MBps ) {
16
16
if (MBps < 0 ) {
17
- throw new IllegalArgumentException ("the input parameter MBps should be greater than 0" );
17
+ throw new IllegalArgumentException ("the input parameter MBps should be greater than or equal to 0" );
18
18
}
19
19
return MBps * CONVERSION_RATE ;
20
20
}
@@ -28,7 +28,7 @@ public static double toMbps(double MBps) {
28
28
*/
29
29
public static double toMBps (double Mbps ) {
30
30
if (Mbps < 0 ) {
31
- throw new IllegalArgumentException ("the input parameter Mbps should be greater than 0" );
31
+ throw new IllegalArgumentException ("the input parameter Mbps should be greater than or equal to 0" );
32
32
}
33
33
return Mbps / CONVERSION_RATE ;
34
34
}
You can’t perform that action at this time.
0 commit comments