[LIB-5] Inheritance from lib-parent pom
[snooker-score-api.git] / src / main / java / org / hedgecode / snooker / api / Season.java
index f4b1cf5..3732528 100644 (file)
@@ -30,9 +30,12 @@ public class Season implements Serializable {
 
     private static final Calendar CURRENT_CALENDAR = Calendar.getInstance();
 
+    private static final int NEW_SEASON_MONTH = 5; /* June */
+
     public static final int BEGIN_YEAR = 2005;
+
     public static final int CURRENT_YEAR =
-            CURRENT_CALENDAR.get(Calendar.MONTH) >= 6
+            CURRENT_CALENDAR.get(Calendar.MONTH) >= NEW_SEASON_MONTH
                     ? CURRENT_CALENDAR.get(Calendar.YEAR)
                     : CURRENT_CALENDAR.get(Calendar.YEAR) - 1;