ilscipio/scipio-erp

View on GitHub
framework/base/src/org/ofbiz/base/util/UtilDateTime.java

Summary

Maintainability
F
4 days
Test Coverage

UtilDateTime has 159 methods (exceeds 20 allowed). Consider refactoring.
Open

public final class UtilDateTime {

    private static final Debug.OfbizLogger module = Debug.getOfbizLogger(java.lang.invoke.MethodHandles.lookup().lookupClass());

    /**
Severity: Major
Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 3 days to fix

    Method getYearStart has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public static Timestamp getYearStart(Timestamp stamp, Number daysLater, Number monthsLater, Number yearsLater, TimeZone timeZone, Locale locale) {
    Severity: Minor
    Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 45 mins to fix

      Method toTimestamp has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public static java.sql.Timestamp toTimestamp(int month, int day, int year, int hour, int minute, int second) {
      Severity: Minor
      Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 45 mins to fix

        Method toDate has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            public static java.util.Date toDate(String monthStr, String dayStr, String yearStr, String hourStr,
                    String minuteStr, String secondStr) {
        Severity: Minor
        Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 45 mins to fix

          Method toTimestamp has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public static java.sql.Timestamp toTimestamp(String monthStr, String dayStr, String yearStr, String hourStr,
                      String minuteStr, String secondStr) {
          Severity: Minor
          Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 45 mins to fix

            Method getYearStart has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public static Timestamp getYearStart(Timestamp stamp, int daysLater, int monthsLater, int yearsLater, TimeZone timeZone, Locale locale) {
            Severity: Minor
            Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 45 mins to fix

              Method toDate has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public static java.util.Date toDate(int month, int day, int year, int hour, int minute, int second) {
              Severity: Minor
              Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 45 mins to fix

                Method adjustTimestamp has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public static Timestamp adjustTimestamp(Timestamp stamp, int adjType, int adjQuantity, TimeZone timeZone, Locale locale) {
                Severity: Minor
                Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 35 mins to fix

                  Method getPeriodIntervalAndFormatter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      public static TimeInterval getPeriodIntervalAndFormatter(String period, int timeShift, Timestamp fromDate, Locale locale, TimeZone timezone) {
                  Severity: Minor
                  Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 35 mins to fix

                    Method getYearStart has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public static Timestamp getYearStart(Timestamp stamp, int daysLater, int yearsLater, TimeZone timeZone, Locale locale) {
                    Severity: Minor
                    Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 35 mins to fix

                      Method getPeriodInterval has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          public static TimeInterval getPeriodInterval(String period, int timeShift, Timestamp fromDate, Locale locale, TimeZone timezone) {
                      Severity: Minor
                      Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 35 mins to fix

                        Method getMonthStart has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            public static Timestamp getMonthStart(Timestamp stamp, int daysLater, int monthsLater, TimeZone timeZone, Locale locale) {
                        Severity: Minor
                        Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 35 mins to fix

                          Method getWeekStart has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public static Timestamp getWeekStart(Timestamp stamp, int daysLater, int weeksLater, TimeZone timeZone, Locale locale) {
                          Severity: Minor
                          Found in framework/base/src/org/ofbiz/base/util/UtilDateTime.java - About 35 mins to fix

                            There are no issues that match your filters.

                            Category
                            Status