Skip to content

Commit

Permalink
Stop importing java.lang.annotation.Retention{Policy} (#234)
Browse files Browse the repository at this point in the history
We don't currently generate any code that uses these annotations so
remove them from the list of imported names.
  • Loading branch information
jparise authored Aug 23, 2019
1 parent 01cf3e9 commit 920dcee
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions Examples/Java/Sources/Board.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Examples/Java/Sources/Everything.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Examples/Java/Sources/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Examples/Java/Sources/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Examples/Java/Sources/Pin.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Examples/Java/Sources/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Examples/Java/Sources/VariableSubtitution.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Date;
import java.util.List;
import java.util.Map;
Expand Down
2 changes: 0 additions & 2 deletions Sources/Core/JavaModelRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@ public struct JavaModelRenderer: JavaFileRenderer {
"java.util.Set",
"java.util.List",
"java.util.Objects",
"java.lang.annotation.Retention",
"java.lang.annotation.RetentionPolicy",
nullabilityAnnotationType.package + ".NonNull",
nullabilityAnnotationType.package + ".Nullable",
] + (self.decorations.imports ?? []))),
Expand Down

0 comments on commit 920dcee

Please sign in to comment.