Skip to content

Commit

Permalink
Add a nasty workaround for compatibility library jars.
Browse files Browse the repository at this point in the history
  • Loading branch information
Atsushi Eno committed Jan 4, 2012
1 parent e8bb386 commit b7d0f47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions JavaClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ static String getClassName (Class jclass, boolean isFullname)

public void appendToDocument (Document doc, Element parent)
{
// FIXME: remove this hack (somehow)
if (jclass.getName ().equals ("android.support.v4.widget.SearchViewCompatHoneycomb"))
return;

int mods = jclass.getModifiers ();

Element e = doc.createElement (jclass.isInterface () && !jclass.isAnnotation () ? "interface" : "class");
Expand Down Expand Up @@ -447,6 +451,7 @@ else if (iface instanceof ParameterizedType) {
iface_elem.appendChild (doc.createTextNode ("\n"));
e.appendChild (iface_elem);
}

for (Constructor ctor : jclass.getDeclaredConstructors ())
appendCtor (ctor, doc, e);

Expand Down

0 comments on commit b7d0f47

Please sign in to comment.