You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2022/04/28 00:14:31 UTC

[datasketches-characterization] branch master updated: Cleanup warnings

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/datasketches-characterization.git


The following commit(s) were added to refs/heads/master by this push:
     new 5bfe3c1  Cleanup warnings
     new a59fb2d  Merge branch 'master' of git@github.com:apache/datasketches-characterization.git
5bfe3c1 is described below

commit 5bfe3c1796028c74df116a5a33787db548eaf884
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Wed Apr 27 17:13:24 2022 -0700

    Cleanup warnings
---
 .../characterization/hash/HashBytesSpeedProfile.java  |  1 +
 .../characterization/kll/package-info.java            | 19 +++++++++++++++++++
 .../memory/UnsafeDirectSpeedProfile.java              |  1 +
 3 files changed, 21 insertions(+)

diff --git a/src/main/java/org/apache/datasketches/characterization/hash/HashBytesSpeedProfile.java b/src/main/java/org/apache/datasketches/characterization/hash/HashBytesSpeedProfile.java
index 6ab9152..5ed0784 100644
--- a/src/main/java/org/apache/datasketches/characterization/hash/HashBytesSpeedProfile.java
+++ b/src/main/java/org/apache/datasketches/characterization/hash/HashBytesSpeedProfile.java
@@ -169,6 +169,7 @@ public class HashBytesSpeedProfile extends BaseHashSpeedProfile {
     vIn = myVin;
   }
 
+  @SuppressWarnings("restriction")
   private static final long readMem(final WritableMemory wmem) {
     long sumInput = 0;
     long rem = wmem.getCapacity();
diff --git a/src/main/java/org/apache/datasketches/characterization/kll/package-info.java b/src/main/java/org/apache/datasketches/characterization/kll/package-info.java
index cbcc5f6..f28d818 100644
--- a/src/main/java/org/apache/datasketches/characterization/kll/package-info.java
+++ b/src/main/java/org/apache/datasketches/characterization/kll/package-info.java
@@ -1 +1,20 @@
+/*
+ * 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.
+ */
+
 package org.apache.datasketches.characterization.kll;
diff --git a/src/main/java/org/apache/datasketches/characterization/memory/UnsafeDirectSpeedProfile.java b/src/main/java/org/apache/datasketches/characterization/memory/UnsafeDirectSpeedProfile.java
index 945b4b7..f77711c 100644
--- a/src/main/java/org/apache/datasketches/characterization/memory/UnsafeDirectSpeedProfile.java
+++ b/src/main/java/org/apache/datasketches/characterization/memory/UnsafeDirectSpeedProfile.java
@@ -24,6 +24,7 @@ import static org.apache.datasketches.memory.UnsafeUtil.unsafe;
 /**
  * @author Lee Rhodes
  */
+@SuppressWarnings("restriction")
 public class UnsafeDirectSpeedProfile extends BaseSpeedProfile {
   int arrLongs;
   long address;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org