From 0c416a448b20f3b57c4d764a60344718bc78e580 Mon Sep 17 00:00:00 2001 From: Drew Koszewnik Date: Mon, 27 Feb 2017 18:08:53 -0800 Subject: [PATCH] @HollowTransient annotation has target of ElementType.FIELD only --- .../netflix/hollow/core/write/objectmapper/HollowTransient.java | 2 +- .../hollow/core/write/objectmapper/HollowObjectMapperTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/HollowTransient.java b/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/HollowTransient.java index 9ffc687c3f..99981f8d65 100644 --- a/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/HollowTransient.java +++ b/hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/HollowTransient.java @@ -24,7 +24,7 @@ import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.TYPE, ElementType.FIELD}) +@Target(ElementType.FIELD) public @interface HollowTransient { } diff --git a/hollow/src/test/java/com/netflix/hollow/core/write/objectmapper/HollowObjectMapperTest.java b/hollow/src/test/java/com/netflix/hollow/core/write/objectmapper/HollowObjectMapperTest.java index 07b6acfb30..3969bf3c11 100644 --- a/hollow/src/test/java/com/netflix/hollow/core/write/objectmapper/HollowObjectMapperTest.java +++ b/hollow/src/test/java/com/netflix/hollow/core/write/objectmapper/HollowObjectMapperTest.java @@ -19,7 +19,6 @@ import java.io.ByteArrayOutputStream; import java.util.Date; - import com.netflix.hollow.core.AbstractStateEngineTest; import com.netflix.hollow.core.schema.HollowSchema; import com.netflix.hollow.tools.stringifier.HollowRecordJsonStringifier; @@ -206,6 +205,7 @@ public TestClass(int val1, int val2) { } + @SuppressWarnings("unused") private static class TestTransientClass { int notTransient; transient int transientKeyword;