File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
dts-generator/src/main/java/com/telerik/dts Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,13 @@ public String generateDtsContent(List<JavaClass> javaClasses) {
55
55
56
56
JavaClass currClass = javaClasses .get (i );
57
57
currentFileClassname = currClass .getClassName ();
58
+
59
+ if (currentFileClassname .startsWith ("java.util.function" ) ||
60
+ currentFileClassname .startsWith ("android.support.v4.media.routing.MediaRouterJellybeanMr1" ) ||
61
+ currentFileClassname .startsWith ("android.support.v4.media.routing.MediaRouterJellybeanMr2" )) {
62
+ continue ;
63
+ }
64
+
58
65
boolean isInterface = currClass .isInterface ();
59
66
boolean isAbstract = currClass .isAbstract ();
60
67
@@ -347,6 +354,10 @@ private Set<Field> getAllInterfacesFields(List<JavaClass> interfaces) {
347
354
private void processMethod (Method m , JavaClass clazz , Set <String > methodsSet ) {
348
355
String name = m .getName ();
349
356
357
+ if (m .isSynthetic () || (!m .isPublic () && !m .isProtected ())) {
358
+ return ;
359
+ }
360
+
350
361
// TODO: Pete: won't generate static initializers as invalid typescript properties
351
362
if (clazz .isInterface () && name .equals ("<clinit>" )) {
352
363
return ;
You can’t perform that action at this time.
0 commit comments