Skip to content

Commit

Permalink
[Dubbo-5200] fix javadoc for Serialization.getContentTypeId (apache#5201
Browse files Browse the repository at this point in the history
)
  • Loading branch information
RojerAlone authored and htynkn committed Nov 26, 2019
1 parent e5bc3c6 commit 170a8c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
public interface Serialization {

/**
* Get content type unique id, recommended that custom implementations use values greater than 20.
* Get content type unique id, recommended that custom implementations use values different with
* any value of {@link Constants} and don't greater than ExchangeCodec.SERIALIZATION_MASK (31)
* because dubbo protocol use 5 bits to record serialization ID in header.
*
* @return content type id
*/
Expand Down Expand Up @@ -71,4 +73,4 @@ public interface Serialization {
@Adaptive
ObjectInput deserialize(URL url, InputStream input) throws IOException;

}
}

0 comments on commit 170a8c9

Please sign in to comment.