-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 1: Add an annotation MigrationBlockingAllowInheritance to the py…
…thon annotations: Summary: Add an annotation `MigrationBlockingAllowInheritance` to the python annotations Reviewed By: ahilger Differential Revision: D68361912 fbshipit-source-id: b54739b3ef6243a7d6fcb0b24847cb9fadc2a690
- Loading branch information
1 parent
426f638
commit 7b55a11
Showing
30 changed files
with
1,313 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
...d/com/facebook/thrift/annotation/python_deprecated/MigrationBlockingAllowInheritance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/** | ||
* Autogenerated by Thrift | ||
* | ||
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING | ||
* @generated | ||
*/ | ||
package com.facebook.thrift.annotation.python_deprecated; | ||
|
||
import java.util.List; | ||
import java.util.ArrayList; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
import java.util.Collections; | ||
import java.util.BitSet; | ||
import java.util.Arrays; | ||
import com.facebook.thrift.*; | ||
import com.facebook.thrift.annotations.*; | ||
import com.facebook.thrift.async.*; | ||
import com.facebook.thrift.meta_data.*; | ||
import com.facebook.thrift.server.*; | ||
import com.facebook.thrift.transport.*; | ||
import com.facebook.thrift.protocol.*; | ||
|
||
@SuppressWarnings({ "unused", "serial" }) | ||
public class MigrationBlockingAllowInheritance implements TBase, java.io.Serializable, Cloneable { | ||
private static final TStruct STRUCT_DESC = new TStruct("MigrationBlockingAllowInheritance"); | ||
|
||
|
||
public MigrationBlockingAllowInheritance() { | ||
} | ||
|
||
/** | ||
* Performs a deep copy on <i>other</i>. | ||
*/ | ||
public MigrationBlockingAllowInheritance(MigrationBlockingAllowInheritance other) { | ||
} | ||
|
||
public MigrationBlockingAllowInheritance deepCopy() { | ||
return new MigrationBlockingAllowInheritance(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object _that) { | ||
if (_that == null) | ||
return false; | ||
if (this == _that) | ||
return true; | ||
if (!(_that instanceof MigrationBlockingAllowInheritance)) | ||
return false; | ||
MigrationBlockingAllowInheritance that = (MigrationBlockingAllowInheritance)_that; | ||
|
||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Arrays.deepHashCode(new Object[] {}); | ||
} | ||
|
||
// This is required to satisfy the TBase interface, but can't be implemented on immutable struture. | ||
public void read(TProtocol iprot) throws TException { | ||
throw new TException("unimplemented in android immutable structure"); | ||
} | ||
|
||
public static MigrationBlockingAllowInheritance deserialize(TProtocol iprot) throws TException { | ||
TField __field; | ||
iprot.readStructBegin(); | ||
while (true) | ||
{ | ||
__field = iprot.readFieldBegin(); | ||
if (__field.type == TType.STOP) { | ||
break; | ||
} | ||
switch (__field.id) | ||
{ | ||
default: | ||
TProtocolUtil.skip(iprot, __field.type); | ||
break; | ||
} | ||
iprot.readFieldEnd(); | ||
} | ||
iprot.readStructEnd(); | ||
|
||
MigrationBlockingAllowInheritance _that; | ||
_that = new MigrationBlockingAllowInheritance( | ||
); | ||
_that.validate(); | ||
return _that; | ||
} | ||
|
||
public void write(TProtocol oprot) throws TException { | ||
validate(); | ||
|
||
oprot.writeStructBegin(STRUCT_DESC); | ||
oprot.writeFieldStop(); | ||
oprot.writeStructEnd(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return toString(1, true); | ||
} | ||
|
||
@Override | ||
public String toString(int indent, boolean prettyPrint) { | ||
return TBaseHelper.toStringHelper(this, indent, prettyPrint); | ||
} | ||
|
||
public void validate() throws TException { | ||
// check for required fields | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.