This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury.git
The following commit(s) were added to refs/heads/main by this push:
new 8f9c4455 [JAVA] add guava license header (#1283)
8f9c4455 is described below
commit 8f9c4455ec001080643b85a043675dcfc05f7b1d
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Dec 29 11:59:10 2023 +0100
[JAVA] add guava license header (#1283)
relates to #1275
---
.../java/org/apache/fury/util/Preconditions.java | 30 +++++++++++-----------
licenserc.toml | 1 +
2 files changed, 16 insertions(+), 15 deletions(-)
diff --git
a/java/fury-core/src/main/java/org/apache/fury/util/Preconditions.java
b/java/fury-core/src/main/java/org/apache/fury/util/Preconditions.java
index 3e52d305..72d13238 100644
--- a/java/fury-core/src/main/java/org/apache/fury/util/Preconditions.java
+++ b/java/fury-core/src/main/java/org/apache/fury/util/Preconditions.java
@@ -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) {
diff --git a/licenserc.toml b/licenserc.toml
index eb4eb5d9..5bd40688 100644
--- a/licenserc.toml
+++ b/licenserc.toml
@@ -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",
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]