Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tshirtman committed Dec 4, 2019
1 parent 473b5e0 commit 363308d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .github/actions/scripts/setup.sh

This file was deleted.

10 changes: 0 additions & 10 deletions jnius/reflect.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ def log_method(method, name, signature):

def autoclass(clsname):
jniname = clsname.replace('.', '/')
log.debug(jniname)
cls = MetaJavaClass.get_javaclass(jniname)
log.debug(cls)
if cls:
return cls

Expand All @@ -212,14 +210,11 @@ def autoclass(clsname):
raise Exception('Java class {0} not found'.format(c))
return None

log.debug('found %s', repr(c))

constructors = []
for constructor in c.getConstructors():
sig = '({0})V'.format(
''.join([get_signature(x) for x in constructor.getParameterTypes()]))
constructors.append((sig, constructor.isVarArgs()))
log.debug('constructor: %s' % sig)
classDict['__javaconstructor__'] = constructors

cls = c
Expand All @@ -228,11 +223,8 @@ def autoclass(clsname):
methods_name = [x.getName() for x in methods]

for index, method in enumerate(methods):
log.debug('method %s: %s', index, method)
name = methods_name[index]
log.debug('method name: %s', name)
if name in classDict:
log.debug('already known')
continue

# only one method available
Expand Down Expand Up @@ -272,8 +264,6 @@ def autoclass(clsname):
else:
cls = _cls

log.debug('next parent class is %s', repr(cls))

def _getitem(self, index):
try:
return self.get(index)
Expand Down

0 comments on commit 363308d

Please sign in to comment.