litesoft
Diff Revisions
911
vs
912
for /trunk/Java/core/Anywhere/src/org/litesoft/core/simpletypes/temporal/CalendarY.java
|
@@ -8,28 +8,19 @@ |
8 |
8 |
|
* Note: This class supports Gregorian dates only and has no concept of time or TimeZones. As such when working with |
9 |
9 |
|
* Java Util Date(s) (or it's descendants) the local (or "Wall") date is all that is considered! |
10 |
10 |
|
*/ |
11 |
|
- |
@SuppressWarnings("UnusedDeclaration") |
12 |
11 |
|
public final class CalendarY extends AbstractCalendarY<CalendarY, AbstractCalendarY.Mutable> implements SQLdateable |
13 |
12 |
|
{ |
14 |
13 |
|
private static final long serialVersionUID = 1L; |
15 |
14 |
|
|
16 |
|
- |
private int mYear; |
17 |
|
- |
|
18 |
|
- |
@Override |
19 |
|
- |
public int getYear() |
|
15 |
+ |
@SuppressWarnings({"deprecation", "UnusedDeclaration"}) @Deprecated /** for Serialization */ |
|
16 |
+ |
protected CalendarY() |
20 |
17 |
|
{ |
21 |
|
- |
return mYear; |
|
18 |
+ |
this( 0 ); |
22 |
19 |
|
} |
23 |
20 |
|
|
24 |
21 |
|
public CalendarY( int pYear ) |
25 |
22 |
|
{ |
26 |
|
- |
mYear = pYear; |
27 |
|
- |
} |
28 |
|
- |
|
29 |
|
- |
@SuppressWarnings({"deprecation", "UnusedDeclaration"}) @Deprecated /** for Serialization */ |
30 |
|
- |
protected CalendarY() |
31 |
|
- |
{ |
32 |
|
- |
this( 0 ); |
|
23 |
+ |
super( pYear ); |
33 |
24 |
|
} |
34 |
25 |
|
|
35 |
26 |
|
public CalendarY( CalendarAccessorY pAccessor ) |
|
@@ -88,7 +79,7 @@ |
88 |
79 |
|
@Override |
89 |
80 |
|
public UtilDateAdaptor toUtilDateAdaptor() |
90 |
81 |
|
{ |
91 |
|
- |
return UtilDateAdaptor.wall( getYear() ); |
|
82 |
+ |
return UtilDateAdaptor.currentWall( getYear() ); |
92 |
83 |
|
} |
93 |
84 |
|
|
94 |
85 |
|
// vvvvvvvvvvvvvvvvvv Support methods vvvvvvvvvvvvvvvvv |