Skip to content

Commit

Permalink
Update ArrowType.java
Browse files Browse the repository at this point in the history
remove jsonproperty and clarify javadoc.
  • Loading branch information
emkornfield authored and liyafan82 committed Oct 29, 2020
1 parent 2fb45bd commit 217c2a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions java/vector/src/main/codegen/templates/ArrowType.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,15 @@ public static Decimal createDecimal(
}

/**
* Construct Decimal with 128 bits.
*
* This is kept mainly for the sake of backward compatibility.
* Please use {@link org.apache.arrow.vector.types.pojo.ArrowType.Decimal#Decimal(int, int, int)} instead.
*
* @deprecated This API will be removed in a future release.
*/
@Deprecated
public Decimal(
@JsonProperty("precision") int precision,
@JsonProperty("scale") int scale
) {
public Decimal(int precision, int scale) {
this(precision, scale, 128);
}

Expand Down

0 comments on commit 217c2a4

Please sign in to comment.