From b79bd611c416a74db78a6dccd61481a0f661b96a Mon Sep 17 00:00:00 2001 From: Jayaram Sreevalsan <jayaram@basistech.com> Date: Wed, 20 Jan 2021 21:52:38 -0500 Subject: [PATCH] addressing review comment. api scope change --- .../org/sleuthkit/datamodel/AbstractAttribute.java | 7 +++++-- .../java/src/org/sleuthkit/datamodel/Attribute.java | 12 ++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java b/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java index 17a6ca5eb..a5f35d1df 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java +++ b/bindings/java/src/org/sleuthkit/datamodel/AbstractAttribute.java @@ -323,10 +323,13 @@ public byte[] getValueBytes() { /** * Gets the owner Id of this attribute. An owner is defined as the Object * to which this attribute is associated with. - * Eg: For a file Attribute, the owner id would be the file object id. + * Eg: For a file Attribute, the owner id would be the file object id. + * + * Each implementation is expected to give a more specific name. + * * @return */ - public long getAttributeOwnerId() { + long getAttributeOwnerId() { return this.attributeOwnerId; } diff --git a/bindings/java/src/org/sleuthkit/datamodel/Attribute.java b/bindings/java/src/org/sleuthkit/datamodel/Attribute.java index ce3afbccd..ad6e436c0 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/Attribute.java +++ b/bindings/java/src/org/sleuthkit/datamodel/Attribute.java @@ -130,6 +130,18 @@ public Attribute(BlackboardAttribute.Type attributeType, byte[] valueBytes) thro super(attributeOwnerId, attributeType, valueInt, valueLong, valueDouble, valueString, valueBytes, sleuthkitCase); } + /** + * Gets the owner Id of this attribute. An owner is defined as the Object + * to which this attribute is associated with. + * Eg: For a file Attribute, the owner id would be the file object id. + * + * @return + */ + @Override + public long getAttributeOwnerId() { + return super.getAttributeOwnerId(); + } + @Override public int hashCode() { -- GitLab