Skip to content

Commit a5fa333

Browse files
author
Yaison
committed
RCB-613: removing genre field
1 parent 507f2b3 commit a5fa333

File tree

5 files changed

+0
-47
lines changed

5 files changed

+0
-47
lines changed

json/src/main/java/com/basistech/rosette/apimodel/jackson/AdmRequestMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ protected AdmRequestMixin(
3636
@JsonProperty("profileId") String profileId,
3737
@JsonProperty("text") AnnotatedText text,
3838
@JsonProperty("options") Options options,
39-
@Deprecated @JsonProperty("genre") String genre,
4039
@JsonProperty("language") LanguageCode language
4140
) {
4241
//

json/src/main/java/com/basistech/rosette/apimodel/jackson/DocumentRequestMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ protected DocumentRequestMixin(
4747
@JsonProperty("content") Object content,
4848
@JsonProperty("contentUri") String contentUri,
4949
@JsonProperty("contentType") String contentType,
50-
@Deprecated @JsonProperty("genre") String genre,
5150
@JsonProperty("options") Options options
5251
) {
5352
//

json/src/test/java/com/basistech/rosette/apimodel/ModelTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ void packageTest(boolean inputStreams) throws ClassNotFoundException, IOExceptio
134134
o1 = DocumentRequest.builder()
135135
.profileId(r.getProfileId())
136136
.language(r.getLanguage())
137-
.genre(r.getGenre())
138137
.content(r.getContent())
139138
.contentUri(r.getContentUri())
140139
.options(r.getOptions())

model/src/main/java/com/basistech/rosette/apimodel/AdmRequest.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,40 +38,20 @@ public final class AdmRequest<O extends Options> extends Request {
3838
*/
3939
private final O options;
4040

41-
/**
42-
* @return genre
43-
*/
44-
@Deprecated
45-
private final String genre;
46-
4741
/**
4842
* @return language
4943
*/
5044
private final LanguageCode language;
5145

5246

53-
public AdmRequest(String profileId,
54-
AnnotatedText text,
55-
O options,
56-
LanguageCode language) {
57-
super(profileId);
58-
this.text = text;
59-
this.options = options;
60-
this.genre = null;
61-
this.language = language;
62-
}
63-
64-
6547
@Builder // workaround for inheritance https://github.com/rzwitserloot/lombok/issues/853
6648
public AdmRequest(String profileId,
6749
AnnotatedText text,
6850
O options,
69-
@Deprecated String genre,
7051
LanguageCode language) {
7152
super(profileId);
7253
this.text = text;
7354
this.options = options;
74-
this.genre = genre;
7555
this.language = language;
7656
}
7757
}

model/src/main/java/com/basistech/rosette/apimodel/DocumentRequest.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -68,47 +68,23 @@ public final class DocumentRequest<O extends Options> extends Request {
6868
*/
6969
private final String contentType;
7070

71-
/**
72-
* @return request genre
73-
*/
74-
@Deprecated
75-
private final String genre;
76-
7771
/**
7872
* @return request options
7973
*/
8074
private final O options;
8175

82-
83-
public DocumentRequest(String profileId,
84-
LanguageCode language,
85-
Object content,
86-
String contentUri,
87-
String contentType,
88-
O options) {
89-
super(profileId);
90-
this.language = language;
91-
this.content = content;
92-
this.contentUri = contentUri;
93-
this.contentType = contentType;
94-
this.genre = null;
95-
this.options = options;
96-
}
97-
9876
@Builder // workaround for inheritance https://github.com/rzwitserloot/lombok/issues/853
9977
public DocumentRequest(String profileId,
10078
LanguageCode language,
10179
Object content,
10280
String contentUri,
10381
String contentType,
104-
@Deprecated String genre,
10582
O options) {
10683
super(profileId);
10784
this.language = language;
10885
this.content = content;
10986
this.contentUri = contentUri;
11087
this.contentType = contentType;
111-
this.genre = genre;
11288
this.options = options;
11389
}
11490

0 commit comments

Comments
 (0)