Skip to content

Commit

Permalink
[JAVA] add guava license header (#1283)
Browse files Browse the repository at this point in the history
relates to #1275
  • Loading branch information
pjfanning authored Dec 29, 2023
1 parent bdada2d commit 8f9c445
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
/*
* 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
* Copyright (C) 2007 The Guava Authors
*
* http://www.apache.org/licenses/LICENSE-2.0
* Licensed 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
*
* 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.
* 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.fury.util;

/** Check utils. */
/**
* Check utils.
*
* <p>derived from
* https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Preconditions.java
*/
public class Preconditions {
public static <T> T checkNotNull(T o) {
if (o == null) {
Expand Down
1 change: 1 addition & 0 deletions licenserc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ excludes = [
"java/fury-core/src/main/java/org/apache/fury/memory/MemoryBuffer.java",
"java/fury-core/src/main/java/org/apache/fury/type/Generics.java",
"java/fury-core/src/main/java/org/apache/fury/util/Platform.java",
"java/fury-core/src/main/java/org/apache/fury/util/Preconditions.java",
"java/fury-core/src/test/java/org/apache/fury/type/GenericsTest.java",
"java/fury-format/src/main/java/org/apache/fury/format/vectorized/ArrowWriter.java",
"javascript/packages/hps/src/v8-fast-api-calls.h",
Expand Down

0 comments on commit 8f9c445

Please sign in to comment.