Skip to content

Commit c342bce

Browse files
committed
Completed collection of interfaces in java, class and archive files
1 parent 3b7967e commit c342bce

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

lang-java/src/main/java/org/eclipse/steady/java/JavaId.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ public static org.eclipse.steady.shared.enums.ConstructType toSharedType(JavaId.
301301
return ConstructType.ENUM;
302302
case CLASS:
303303
return ConstructType.CLAS;
304+
case INTERFACE:
305+
return ConstructType.INTF;
304306
default:
305307
throw new IllegalArgumentException("Unknown type [" + _core_type + "]");
306308
}

lang-java/src/test/java/org/eclipse/steady/java/JarAnalyzerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void testInvalidClassEntries() {
9090
ja.analyze(
9191
new File("./src/test/resources/org.apache.servicemix.bundles.jaxb-xjc-2.2.4_1.jar"));
9292
ja.call();
93-
assertEquals(8984, ja.getConstructIds().size());
93+
assertEquals(9884, ja.getConstructIds().size());
9494
} catch (Exception e) {
9595
e.printStackTrace();
9696
assertTrue(false);

lang-java/src/test/java/org/eclipse/steady/java/JavaFileAnalyzer2Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public void testEnumAndNamedClassesInMethod() {
274274
JavaId.parseConstructorQName(
275275
"org.eclipse.steady.java.test.ConfigKey(Class,String,String)");
276276
final JavaMethodId enum_m1 =
277-
JavaId.parseMethodQName("org.eclipse.steady.java.test.ConfigKey.getType()");
277+
JavaId.parseMethodQName("org.eclipse.steady.java.test.ConfigKey.getType(String,int)");
278278
final JavaMethodId enum_m2 =
279279
JavaId.parseMethodQName("org.eclipse.steady.java.test.ConfigKey.getKey()");
280280
final JavaMethodId enum_m3 =

lang-java/src/test/java/org/eclipse/steady/java/test/ConfigKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public enum ConfigKey implements ConfigurationKey {
4141
}
4242

4343
@Override
44-
public final Class getType() {
44+
public final Class getType(String a, int b) {
4545
return type;
4646
}
4747

0 commit comments

Comments
 (0)