38
38
import org .slf4j .Logger ;
39
39
import org .slf4j .LoggerFactory ;
40
40
41
- public class AlreadyAliveException extends Exception implements org .apache .thrift7 .TBase <AlreadyAliveException , AlreadyAliveException ._Fields >, java .io .Serializable , Cloneable {
42
- private static final org .apache .thrift7 .protocol .TStruct STRUCT_DESC = new org .apache .thrift7 .protocol .TStruct ("AlreadyAliveException" );
41
+ public class AlreadyAliveException extends Exception implements org .apache .thrift .TBase <AlreadyAliveException , AlreadyAliveException ._Fields >, java .io .Serializable , Cloneable {
42
+ private static final org .apache .thrift .protocol .TStruct STRUCT_DESC = new org .apache .thrift .protocol .TStruct ("AlreadyAliveException" );
43
43
44
- private static final org .apache .thrift7 .protocol .TField MSG_FIELD_DESC = new org .apache .thrift7 .protocol .TField ("msg" , org .apache .thrift7 .protocol .TType .STRING , (short )1 );
44
+ private static final org .apache .thrift .protocol .TField MSG_FIELD_DESC = new org .apache .thrift .protocol .TField ("msg" , org .apache .thrift .protocol .TType .STRING , (short )1 );
45
45
46
46
private String msg ; // required
47
47
48
48
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
- public enum _Fields implements org .apache .thrift7 .TFieldIdEnum {
49
+ public enum _Fields implements org .apache .thrift .TFieldIdEnum {
50
50
MSG ((short )1 , "msg" );
51
51
52
52
private static final Map <String , _Fields > byName = new HashMap <String , _Fields >();
@@ -105,13 +105,13 @@ public String getFieldName() {
105
105
106
106
// isset id assignments
107
107
108
- public static final Map <_Fields , org .apache .thrift7 .meta_data .FieldMetaData > metaDataMap ;
108
+ public static final Map <_Fields , org .apache .thrift .meta_data .FieldMetaData > metaDataMap ;
109
109
static {
110
- Map <_Fields , org .apache .thrift7 .meta_data .FieldMetaData > tmpMap = new EnumMap <_Fields , org .apache .thrift7 .meta_data .FieldMetaData >(_Fields .class );
111
- tmpMap .put (_Fields .MSG , new org .apache .thrift7 .meta_data .FieldMetaData ("msg" , org .apache .thrift7 .TFieldRequirementType .REQUIRED ,
112
- new org .apache .thrift7 .meta_data .FieldValueMetaData (org .apache .thrift7 .protocol .TType .STRING )));
110
+ Map <_Fields , org .apache .thrift .meta_data .FieldMetaData > tmpMap = new EnumMap <_Fields , org .apache .thrift .meta_data .FieldMetaData >(_Fields .class );
111
+ tmpMap .put (_Fields .MSG , new org .apache .thrift .meta_data .FieldMetaData ("msg" , org .apache .thrift .TFieldRequirementType .REQUIRED ,
112
+ new org .apache .thrift .meta_data .FieldValueMetaData (org .apache .thrift .protocol .TType .STRING )));
113
113
metaDataMap = Collections .unmodifiableMap (tmpMap );
114
- org .apache .thrift7 .meta_data .FieldMetaData .addStructMetaDataMap (AlreadyAliveException .class , metaDataMap );
114
+ org .apache .thrift .meta_data .FieldMetaData .addStructMetaDataMap (AlreadyAliveException .class , metaDataMap );
115
115
}
116
116
117
117
public AlreadyAliveException () {
@@ -250,7 +250,7 @@ public int compareTo(AlreadyAliveException other) {
250
250
return lastComparison ;
251
251
}
252
252
if (is_set_msg ()) {
253
- lastComparison = org .apache .thrift7 .TBaseHelper .compareTo (this .msg , typedOther .msg );
253
+ lastComparison = org .apache .thrift .TBaseHelper .compareTo (this .msg , typedOther .msg );
254
254
if (lastComparison != 0 ) {
255
255
return lastComparison ;
256
256
}
@@ -262,33 +262,33 @@ public _Fields fieldForId(int fieldId) {
262
262
return _Fields .findByThriftId (fieldId );
263
263
}
264
264
265
- public void read (org .apache .thrift7 .protocol .TProtocol iprot ) throws org .apache .thrift7 .TException {
266
- org .apache .thrift7 .protocol .TField field ;
265
+ public void read (org .apache .thrift .protocol .TProtocol iprot ) throws org .apache .thrift .TException {
266
+ org .apache .thrift .protocol .TField field ;
267
267
iprot .readStructBegin ();
268
268
while (true )
269
269
{
270
270
field = iprot .readFieldBegin ();
271
- if (field .type == org .apache .thrift7 .protocol .TType .STOP ) {
271
+ if (field .type == org .apache .thrift .protocol .TType .STOP ) {
272
272
break ;
273
273
}
274
274
switch (field .id ) {
275
275
case 1 : // MSG
276
- if (field .type == org .apache .thrift7 .protocol .TType .STRING ) {
276
+ if (field .type == org .apache .thrift .protocol .TType .STRING ) {
277
277
this .msg = iprot .readString ();
278
278
} else {
279
- org .apache .thrift7 .protocol .TProtocolUtil .skip (iprot , field .type );
279
+ org .apache .thrift .protocol .TProtocolUtil .skip (iprot , field .type );
280
280
}
281
281
break ;
282
282
default :
283
- org .apache .thrift7 .protocol .TProtocolUtil .skip (iprot , field .type );
283
+ org .apache .thrift .protocol .TProtocolUtil .skip (iprot , field .type );
284
284
}
285
285
iprot .readFieldEnd ();
286
286
}
287
287
iprot .readStructEnd ();
288
288
validate ();
289
289
}
290
290
291
- public void write (org .apache .thrift7 .protocol .TProtocol oprot ) throws org .apache .thrift7 .TException {
291
+ public void write (org .apache .thrift .protocol .TProtocol oprot ) throws org .apache .thrift .TException {
292
292
validate ();
293
293
294
294
oprot .writeStructBegin (STRUCT_DESC );
@@ -317,26 +317,26 @@ public String toString() {
317
317
return sb .toString ();
318
318
}
319
319
320
- public void validate () throws org .apache .thrift7 .TException {
320
+ public void validate () throws org .apache .thrift .TException {
321
321
// check for required fields
322
322
if (!is_set_msg ()) {
323
- throw new org .apache .thrift7 .protocol .TProtocolException ("Required field 'msg' is unset! Struct:" + toString ());
323
+ throw new org .apache .thrift .protocol .TProtocolException ("Required field 'msg' is unset! Struct:" + toString ());
324
324
}
325
325
326
326
}
327
327
328
328
private void writeObject (java .io .ObjectOutputStream out ) throws java .io .IOException {
329
329
try {
330
- write (new org .apache .thrift7 .protocol .TCompactProtocol (new org .apache .thrift7 .transport .TIOStreamTransport (out )));
331
- } catch (org .apache .thrift7 .TException te ) {
330
+ write (new org .apache .thrift .protocol .TCompactProtocol (new org .apache .thrift .transport .TIOStreamTransport (out )));
331
+ } catch (org .apache .thrift .TException te ) {
332
332
throw new java .io .IOException (te );
333
333
}
334
334
}
335
335
336
336
private void readObject (java .io .ObjectInputStream in ) throws java .io .IOException , ClassNotFoundException {
337
337
try {
338
- read (new org .apache .thrift7 .protocol .TCompactProtocol (new org .apache .thrift7 .transport .TIOStreamTransport (in )));
339
- } catch (org .apache .thrift7 .TException te ) {
338
+ read (new org .apache .thrift .protocol .TCompactProtocol (new org .apache .thrift .transport .TIOStreamTransport (in )));
339
+ } catch (org .apache .thrift .TException te ) {
340
340
throw new java .io .IOException (te );
341
341
}
342
342
}
0 commit comments