Skip to content

Commit

Permalink
@HollowTransient annotation has target of ElementType.FIELD only
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoszewnik committed Feb 28, 2017
1 parent e4a5f7b commit 0c416a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.FIELD})
@Target(ElementType.FIELD)

This comment has been minimized.

Copy link
@brettwooldridge

brettwooldridge Feb 28, 2017

Contributor

Good catch, sorry I missed that.

public @interface HollowTransient {

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -206,6 +205,7 @@ public TestClass(int val1, int val2) {
}


@SuppressWarnings("unused")
private static class TestTransientClass {
int notTransient;
transient int transientKeyword;
Expand Down

0 comments on commit 0c416a4

Please sign in to comment.