Skip to content

Commit 7096890

Browse files
committed
-add final to schemaNode
-change logback-test from debug to error level due to it may affect performance test
1 parent a456ff5 commit 7096890

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

src/main/java/com/networknt/schema/MaximumValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class MaximumValidator extends BaseJsonValidator implements JsonValidator
3434
private final ThresholdMixin typedMaximum;
3535

3636

37-
public MaximumValidator(String schemaPath, JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) {
37+
public MaximumValidator(String schemaPath, final JsonNode schemaNode, JsonSchema parentSchema, ValidationContext validationContext) {
3838
super(schemaPath, schemaNode, parentSchema, ValidatorTypeCode.MAXIMUM, validationContext);
3939

4040
if (!schemaNode.isNumber()) {

src/test/resources/logback-test.xml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
3-
~ Copyright (c) 2016 Network New Technologies Inc.
4-
~
5-
~ Licensed under the Apache License, Version 2.0 (the "License");
6-
~ you may not use this file except in compliance with the License.
7-
~ You may obtain a copy of the License at
8-
~
9-
~ http://www.apache.org/licenses/LICENSE-2.0
10-
~
11-
~ Unless required by applicable law or agreed to in writing, software
12-
~ distributed under the License is distributed on an "AS IS" BASIS,
13-
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
~ See the License for the specific language governing permissions and
15-
~ limitations under the License.
16-
-->
17-
18-
<configuration>
19-
20-
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
21-
<!-- encoders are assigned the type
22-
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
23-
<encoder>
24-
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
25-
</encoder>
26-
</appender>
27-
28-
<root level="DEBUG">
29-
<appender-ref ref="STDOUT"/>
30-
</root>
31-
</configuration>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright (c) 2016 Network New Technologies Inc.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<configuration>
19+
20+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
21+
<!-- encoders are assigned the type
22+
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
23+
<encoder>
24+
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
25+
</encoder>
26+
</appender>
27+
28+
<root level="ERROR">
29+
<appender-ref ref="STDOUT"/>
30+
</root>
31+
</configuration>

0 commit comments

Comments
 (0)