【发布时间】:2012-10-22 08:35:54
【问题描述】:
当我在我的程序上运行 checkstyle 时,我不断收到此错误:
NonRefundable.java:20:28: Name 'flight_Num' must match pattern '^[a-z][a-zA-Z0-9]*$'.
我不确定我需要做些什么来纠正这个问题。以下是针对此特定错误的 cmets:
/** Comments.
*
* @param flight_Num the flight number.
* @param trip_Data the information stored in the Itinerary object.
* @param base_Fare the double representing the initial cost of the trip.
* @param fare_AdjustmentFactor the number factored into the baseFare and
discountFactor used to calculate totalFare.
* @param discount_Factor the number factored into baseFare and
* fare_AdjustmentFactor to calculate totalFare.
*/
NonRefundable(String flight_Num, Itinerary trip_Data, double base_Fare,
double fare_AdjustmentFactor, double discount_Factor) {
super(flight_Num, trip_Data, base_Fare, fare_AdjustmentFactor);
this.discountFactor = discount_Factor;
}
【问题讨论】:
标签: java javadoc checkstyle