Skip to content

Commit 67002d2

Browse files
- Added loadClasses(String classNames[]) for loading a set of classes
1 parent 76c0d30 commit 67002d2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/src/main/java/com/chars/android_hotpatch/Hotpatch.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ public void loadClass(String className) throws ClassNotFoundException,
110110

111111
}
112112

113+
public void loadClasses(String classNames[]) throws IOException,
114+
ClassNotFoundException,
115+
IllegalAccessException,
116+
InstantiationException {
117+
for (String className : classNames) {
118+
this.loadClass(className);
119+
}
120+
121+
}
122+
113123
public void loadClasses() throws IOException,
114124
ClassNotFoundException,
115125
IllegalAccessException,

0 commit comments

Comments
 (0)