This is an automated email from the ASF dual-hosted git repository. aherbert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 39e6c29936c5160f547e56ecb15b3a936e75cf13 Author: Alex Herbert <[email protected]> AuthorDate: Fri Nov 8 20:39:01 2019 +0000 Fixed checkstyle for rootfinder. --- .../numbers/rootfinder/BrentSolverTest.java | 23 ++++++++++++---------- .../numbers/rootfinder/MonitoredFunction.java | 10 +++++----- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/BrentSolverTest.java b/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/BrentSolverTest.java index ef1ee7d..c1d6b7e 100644 --- a/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/BrentSolverTest.java +++ b/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/BrentSolverTest.java @@ -1,15 +1,18 @@ /* * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with this - * work for additional information regarding copyright ownership. The ASF - * licenses this file to You under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law - * or agreed to in writing, software distributed under the License is - * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ package org.apache.commons.numbers.rootfinder; diff --git a/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/MonitoredFunction.java b/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/MonitoredFunction.java index 04c4e03..2600901 100644 --- a/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/MonitoredFunction.java +++ b/commons-numbers-rootfinder/src/test/java/org/apache/commons/numbers/rootfinder/MonitoredFunction.java @@ -22,22 +22,22 @@ import java.util.function.DoubleUnaryOperator; * Wrapper class for counting functions calls. */ class MonitoredFunction implements DoubleUnaryOperator { - final int maxCount; + private final int maxCount; private int callsCount; private final DoubleUnaryOperator f; - public MonitoredFunction(DoubleUnaryOperator f) { + MonitoredFunction(DoubleUnaryOperator f) { this(f, Integer.MAX_VALUE); } - public MonitoredFunction(DoubleUnaryOperator f, - int maxCount) { + MonitoredFunction(DoubleUnaryOperator f, + int maxCount) { callsCount = 0; this.f = f; this.maxCount = maxCount; } - public int getCallsCount() { + int getCallsCount() { return callsCount; }
