Subversion Repository Public Repository

litesoft

Diff Revisions 897 vs 898 for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/CalendarYM.java

Diff revisions: vs.
  @@ -13,15 +13,29 @@
13 13 {
14 14 private static final long serialVersionUID = 1L;
15 15
16 - @SuppressWarnings({"deprecation", "UnusedDeclaration"}) @Deprecated /** for Serialization */
17 - protected CalendarYM()
16 + private int mYear, mMonth;
17 +
18 + @Override
19 + public int getYear()
18 20 {
19 - super( 0, 0 );
21 + return mYear;
22 + }
23 +
24 + @Override
25 + public int getMonth()
26 + {
27 + return mMonth;
20 28 }
21 29
22 30 public CalendarYM( int pYear, int pMonth )
23 31 {
24 - super( pYear, pMonth );
32 + mMonth = validateMonth( mYear = pYear, pMonth);
33 + }
34 +
35 + @SuppressWarnings({"deprecation", "UnusedDeclaration"}) @Deprecated /** for Serialization */
36 + protected CalendarYM()
37 + {
38 + this( 0, 0 );
25 39 }
26 40
27 41 public CalendarYM( CalendarAccessorYM pAccessor )
  @@ -95,12 +109,6 @@
95 109 }
96 110
97 111 @Override
98 - protected Mutable createMutable( int pNewYear )
99 - {
100 - return new Mutable( pNewYear, getMonth() );
101 - }
102 -
103 - @Override
104 112 protected Mutable createMutable( int pYear, int pNewMonth )
105 113 {
106 114 return new Mutable( pYear, pNewMonth );