Skip to content

Commit a462789

Browse files
committed
improved error message
1 parent 00d4121 commit a462789

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.classpath

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" output="build/classes" path="src">
3+
<classpathentry including="**/*.java" kind="src" output="build/classes" path="src">
44
<attributes>
55
<attribute name="optional" value="true"/>
66
<attribute name="maven.pomderived" value="true"/>
77
</attributes>
88
</classpathentry>
9-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
1010
<attributes>
1111
<attribute name="maven.pomderived" value="true"/>
1212
</attributes>

.settings/org.eclipse.jdt.core.prefs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
eclipse.preferences.version=1
2-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3-
org.eclipse.jdt.core.compiler.compliance=1.7
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
3+
org.eclipse.jdt.core.compiler.compliance=1.8
4+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
45
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5-
org.eclipse.jdt.core.compiler.source=1.7
6+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
7+
org.eclipse.jdt.core.compiler.release=disabled
8+
org.eclipse.jdt.core.compiler.source=1.8

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
</scm>
3939

4040
<properties>
41-
<maven.compiler.source>1.7</maven.compiler.source>
42-
<maven.compiler.target>1.7</maven.compiler.target>
41+
<maven.compiler.source>1.8</maven.compiler.source>
42+
<maven.compiler.target>1.8</maven.compiler.target>
4343
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4444
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
4545
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
@@ -53,7 +53,7 @@
5353
<dependency>
5454
<groupId>org.slf4j</groupId>
5555
<artifactId>slf4j-api</artifactId>
56-
<version>1.7.5</version>
56+
<version>2.0.16</version>
5757
</dependency>
5858
</dependencies>
5959

src/pxb/android/axml/AxmlParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public int next() throws IOException {
180180
if (fileSize < 0) {
181181
int type = in.getInt() & 0xFFFF;
182182
if (type != RES_XML_TYPE) {
183-
throw new RuntimeException();
183+
throw new RuntimeException(String.format("Resource type was 0x%04X instead of XML_TYPE (0x0003)", type));
184184
}
185185
fileSize = in.getInt();
186186
return START_FILE;

0 commit comments

Comments
 (0)