|
|
@@ -7,7 +7,6 @@ import java.util.Date;
|
|
|
|
|
|
|
|
|
import com.goafanti.common.error.BusinessException;
|
|
|
-import com.goafanti.common.model.PublicRelease;
|
|
|
|
|
|
public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
|
|
|
|
|
@@ -278,7 +277,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
|
|
*/
|
|
|
public static Date getFirstDayOfQuarter(Integer year, Integer quarter) {
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
- Integer month = new Integer(0);
|
|
|
+ Integer month = 0;
|
|
|
if (quarter == 1) {
|
|
|
month = 1 - 1;
|
|
|
} else if (quarter == 2) {
|
|
|
@@ -315,7 +314,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
|
|
*/
|
|
|
public static Date getLastDayOfQuarter(Integer year, Integer quarter) {
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
- Integer month = new Integer(0);
|
|
|
+ Integer month = 0;
|
|
|
if (quarter == 1) {
|
|
|
month = 3 - 1;
|
|
|
} else if (quarter == 2) {
|
|
|
@@ -352,7 +351,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
|
|
*/
|
|
|
public static Date getLastDayOfLastQuarter(Integer year, Integer quarter) {
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
- Integer month = new Integer(0);
|
|
|
+ Integer month = 0;
|
|
|
if (quarter == 1) {
|
|
|
month = 12 - 1;
|
|
|
} else if (quarter == 2) {
|