Skip to content

Commit d0f9fb0

Browse files
author
duke
committedFeb 24, 2022
Automatic merge of jdk:master into master
2 parents 4b198c5 + 3cfffa4 commit d0f9fb0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎src/java.base/share/classes/java/math/MathContext.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -58,7 +58,6 @@ public final class MathContext implements Serializable {
5858
/* ----- Constants ----- */
5959

6060
// defaults for constructors
61-
private static final int DEFAULT_DIGITS = 9;
6261
private static final RoundingMode DEFAULT_ROUNDINGMODE = RoundingMode.HALF_UP;
6362
// Smallest values for digits (Maximum is Integer.MAX_VALUE)
6463
private static final int MIN_DIGITS = 0;
@@ -140,7 +139,6 @@ public final class MathContext implements Serializable {
140139
*/
141140
public MathContext(int setPrecision) {
142141
this(setPrecision, DEFAULT_ROUNDINGMODE);
143-
return;
144142
}
145143

146144
/**
@@ -162,7 +160,6 @@ public MathContext(int setPrecision,
162160

163161
precision = setPrecision;
164162
roundingMode = setRoundingMode;
165-
return;
166163
}
167164

168165
/**
@@ -181,7 +178,6 @@ public MathContext(int setPrecision,
181178
* @throws NullPointerException if the argument is {@code null}
182179
*/
183180
public MathContext(String val) {
184-
boolean bad = false;
185181
int setPrecision;
186182
if (val == null)
187183
throw new NullPointerException("null String");
@@ -232,7 +228,6 @@ public int getPrecision() {
232228
* @return a {@code RoundingMode} object which is the value of the
233229
* {@code roundingMode} setting
234230
*/
235-
236231
public RoundingMode getRoundingMode() {
237232
return roundingMode;
238233
}

0 commit comments

Comments
 (0)