Skip to content

Commit 2e62a3d

Browse files
committed
Fix license and checkstyle
1 parent 907a9f8 commit 2e62a3d

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

ratis-common/src/main/java/org/apache/ratis/util/BiWeakValueCache.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
118
package org.apache.ratis.util;
219

320
import org.apache.ratis.thirdparty.com.google.common.collect.MapMaker;

ratis-server-api/src/main/java/org/apache/ratis/server/protocol/TermIndex.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ static TermIndex valueOf(long term, long index) {
8181
* An implementation for private use.
8282
* Note that this is not a public API, although this is public class.
8383
*/
84-
class Impl {
84+
final class Impl {
85+
private Impl() { }
86+
8587
private static final BiWeakValueCache<Long, Long, TermIndex> CACHE
8688
= new BiWeakValueCache<>("term", "index", Impl::newTermIndex);
8789

0 commit comments

Comments
 (0)