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 2019/06/16 00:40:59 UTC

[incubator-datasketches-characterization] branch master updated: Eliminate restricted warning, add package info file

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/incubator-datasketches-characterization.git


The following commit(s) were added to refs/heads/master by this push:
     new 1078563  Eliminate restricted warning, add package info file
1078563 is described below

commit 10785636a3f03e45c5e51b37f4f8a44f306cce0f
Author: Lee Rhodes <le...@users.noreply.github.com>
AuthorDate: Sat Jun 15 17:40:50 2019 -0700

    Eliminate restricted warning, add package info file
---
 .../sketches/characterization/frequencies/package-info.java    | 10 ++++++++++
 .../sketches/characterization/hash/HashBytesSpeedProfile.java  |  1 -
 .../characterization/memory/UnsafeDirectSpeedProfile.java      |  1 -
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/yahoo/sketches/characterization/frequencies/package-info.java b/src/main/java/com/yahoo/sketches/characterization/frequencies/package-info.java
new file mode 100644
index 0000000..08ba3f6
--- /dev/null
+++ b/src/main/java/com/yahoo/sketches/characterization/frequencies/package-info.java
@@ -0,0 +1,10 @@
+/*
+ * Copyright 2019, Yahoo! Inc. Licensed under the terms of the
+ * Apache License 2.0. See LICENSE file at the project root for terms.
+ */
+
+/**
+ * @author Lee Rhodes
+ */
+
+package com.yahoo.sketches.characterization.frequencies;
diff --git a/src/main/java/com/yahoo/sketches/characterization/hash/HashBytesSpeedProfile.java b/src/main/java/com/yahoo/sketches/characterization/hash/HashBytesSpeedProfile.java
index 0abf34a..5fc2af7 100644
--- a/src/main/java/com/yahoo/sketches/characterization/hash/HashBytesSpeedProfile.java
+++ b/src/main/java/com/yahoo/sketches/characterization/hash/HashBytesSpeedProfile.java
@@ -156,7 +156,6 @@ 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/com/yahoo/sketches/characterization/memory/UnsafeDirectSpeedProfile.java b/src/main/java/com/yahoo/sketches/characterization/memory/UnsafeDirectSpeedProfile.java
index 0a98f86..c26a351 100644
--- a/src/main/java/com/yahoo/sketches/characterization/memory/UnsafeDirectSpeedProfile.java
+++ b/src/main/java/com/yahoo/sketches/characterization/memory/UnsafeDirectSpeedProfile.java
@@ -10,7 +10,6 @@ import static com.yahoo.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