mirror of
https://github.com/moparisthebest/android_external_SafeParcel
synced 2024-12-12 10:22:14 -05:00
Java 6 compat
This commit is contained in:
parent
b49d1095fd
commit
d7b18b0673
@ -6,14 +6,17 @@ buildscript {
|
|||||||
classpath 'com.android.tools.build:gradle:1.1.3'
|
classpath 'com.android.tools.build:gradle:1.1.3'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
apply from: 'gradle-mvn-push.gradle'
|
apply from: 'gradle-mvn-push.gradle'
|
||||||
|
|
||||||
group = 'org.microg'
|
group = 'org.microg'
|
||||||
version = '1.2-SNAPSHOT'
|
version = '1.2-SNAPSHOT'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 22
|
compileSdkVersion 22
|
||||||
buildToolsVersion "22.0.0"
|
buildToolsVersion "22.0.0"
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
}
|
}
|
@ -55,7 +55,7 @@ public class SafeParcelUtil {
|
|||||||
if (object == null)
|
if (object == null)
|
||||||
throw new NullPointerException();
|
throw new NullPointerException();
|
||||||
Class clazz = object.getClass();
|
Class clazz = object.getClass();
|
||||||
Map<Integer, Field> fieldMap = new HashMap<>();
|
Map<Integer, Field> fieldMap = new HashMap<Integer, Field>();
|
||||||
while (clazz != null) {
|
while (clazz != null) {
|
||||||
for (Field field : clazz.getDeclaredFields()) {
|
for (Field field : clazz.getDeclaredFields()) {
|
||||||
if (field.isAnnotationPresent(SafeParceled.class)) {
|
if (field.isAnnotationPresent(SafeParceled.class)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user