Subversion Repository Public Repository

litesoft

Diff Revisions 851 vs 853 for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/nonpublic/CalendarSupport.java

Diff revisions: vs.
  @@ -28,31 +28,14 @@
28 28 }
29 29 }
30 30
31 - protected static void undefinedResultIfNull( String pWhat, Object pToCheck )
31 + protected static <T> T undefinedResultIfNull( String pWhat, T pToCheck )
32 32 throws IllegalArgumentException
33 33 {
34 34 if ( pToCheck == null )
35 35 {
36 36 throw new IllegalArgumentException( "Result is undefined for: " + pWhat + "( null )" );
37 37 }
38 - }
39 -
40 - protected static int LLcheckMonth( int pYear, int pMonth )
41 - {
42 - if ( (pMonth < 1) || (12 < pMonth) )
43 - {
44 - throw new IllegalArgumentException( "Invalid Month provided (Year: " + pYear + "): " + pMonth );
45 - }
46 - return pMonth;
47 - }
48 -
49 - protected static int LLcheckDay( int pYear, int pMonth, int pDay )
50 - {
51 - if ( (pDay < 1) || (Month.daysIn( pYear, pMonth ) < pDay) )
52 - {
53 - throw new IllegalArgumentException( "Invalid Day provided (Year: " + pYear + ", Month: " + pMonth + "): " + pDay );
54 - }
55 - return pDay;
38 + return pToCheck;
56 39 }
57 40
58 41 protected int validate( String pWhat, int pNewValue, int pMaxValue )