aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-calendar
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
commit65eb16770153f1751c353713b7b4a355470954ad (patch)
tree52fdfcbe990f1106b61cba40bc4dc67840cdfe44 /cgeo-calendar
parentdf8983c679179c1713ee711d7afed484d617e36c (diff)
downloadcgeo-65eb16770153f1751c353713b7b4a355470954ad.zip
cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.gz
cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.bz2
switch to Java 1.7
At least since march both ADT and Android Studio support Java 7 features in Android development. Let's use them.
Diffstat (limited to 'cgeo-calendar')
-rw-r--r--cgeo-calendar/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--cgeo-calendar/src/cgeo/calendar/CalendarActivity.java4
2 files changed, 6 insertions, 5 deletions
diff --git a/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs b/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs
index 4295a0b..6ae8f9e 100644
--- a/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs
+++ b/cgeo-calendar/.settings/org.eclipse.jdt.core.prefs
@@ -6,9 +6,10 @@ org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annota
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
org.eclipse.jdt.core.compiler.annotation.nullanalysis=enabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -96,7 +97,7 @@ org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=0
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
diff --git a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java
index ad54bab..2fbfd05 100644
--- a/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java
+++ b/cgeo-calendar/src/cgeo/calendar/CalendarActivity.java
@@ -43,7 +43,7 @@ public final class CalendarActivity extends Activity {
/**
* Adds the cache to the Android-calendar if it is an event.
- *
+ *
* @param entry
*/
private void selectCalendarForAdding(final CalendarEntry entry) {
@@ -58,7 +58,7 @@ public final class CalendarActivity extends Activity {
return;
}
- final SparseArray<String> calendars = new SparseArray<String>();
+ final SparseArray<String> calendars = new SparseArray<>();
cursor.moveToFirst();
final int indexId = cursor.getColumnIndex("_id");