Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

piccola correzione in Utility, corretto Warning

  • Loading branch information...
commit dfb42cf35e3a2b3dbe328dccff2ae841223f26d4 1 parent e3cc382
@dav94 authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 QuickAgenda/src/it/valsecchi/quickagenda/data/Utility.java
View
9 QuickAgenda/src/it/valsecchi/quickagenda/data/Utility.java
@@ -232,7 +232,7 @@ public static Calendar parseStringToCalendar(String string_data)
* @version 1.0
*
*/
- public static class DateString implements Comparable {
+ public static class DateString implements Comparable<DateString> {
private String sdate;
/** Costruttore che richiede la stringa che contiene la data */
@@ -254,16 +254,15 @@ public String toString() {
}
@Override
- public int compareTo(Object arg) {
+ public int compareTo(DateString arg) {
// vengono di nuovo trasformate in date
Calendar d1;
Calendar d2;
try {
d1 = Utility.parseStringToCalendar(this.sdate);
- d2 = Utility.parseStringToCalendar(((DateString) arg)
- .toString());
+ d2 = Utility.parseStringToCalendar(arg.toString());
} catch (ParseException e) {
- //in caso di eccezione si ritorna 1
+ // in caso di eccezione si ritorna 1
return 1;
}
// si confrontano
Please sign in to comment.
Something went wrong with that request. Please try again.