Skip to content

Commit df00212

Browse files
remove Vector related additions
1 parent 5225515 commit df00212

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

core/src/main/java/oracle/weblogic/deploy/util/PyOrderedDict.java

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
import java.io.IOException;
88
import java.io.ObjectInputStream;
9-
import java.lang.reflect.Constructor;
10-
import java.lang.reflect.Type;
119
import java.util.Collection;
1210
import java.util.Iterator;
1311
import java.util.LinkedHashMap;
@@ -294,7 +292,7 @@ public void __setitem__(PyObject key, PyObject value) {
294292
@Override
295293
public void clear() {
296294
this.linkedHashMap.clear();
297-
super.clear();;
295+
super.clear();
298296
}
299297

300298
/**
@@ -347,10 +345,6 @@ public PyList items() {
347345
for (Map.Entry<PyObject, PyObject> entry: entries) {
348346
l.add(new PyTuple(new PyObject[] { entry.getKey(), entry.getValue() }));
349347
}
350-
System.out.println("Class is " + l.getClass().getName());
351-
for (Class i : l.getClass().getInterfaces()) {
352-
System.out.println("Interface : " + i.getName());
353-
}
354348
return new PyList(l);
355349
}
356350

@@ -391,31 +385,9 @@ public PyObject iteritems() {
391385
*/
392386
@Override
393387
public PyList keys() {
394-
395-
Class<?> c = PyList.class;
396-
Constructor[] allConstructors = c.getDeclaredConstructors();
397388
Set<PyObject> keys = this.linkedHashMap.keySet();
398389
java.util.Vector<PyObject> v = new java.util.Vector<>(keys.size());
399390
v.addAll(keys);
400-
System.out.println("########## What is the type of the vector key lists " + v.getClass().getName());
401-
Class<?> cArg = v.getClass();
402-
for (Constructor ctor : allConstructors) {
403-
Class<?>[] pType = ctor.getParameterTypes();
404-
for (int i = 0; i < pType.length; i++) {
405-
if (pType[i].equals(cArg)) {
406-
System.out.format("%s%n", ctor.toGenericString());
407-
408-
Type[] gpType = ctor.getGenericParameterTypes();
409-
for (int j = 0; j < gpType.length; j++) {
410-
char ch = (pType[j].equals(cArg) ? '*' : ' ');
411-
System.out.format("%7c%s[%d]: %s%n", ch,
412-
"GenericParameterType", j, gpType[j]);
413-
}
414-
break;
415-
}
416-
}
417-
}
418-
System.out.println();
419391
return new PyList(v);
420392
}
421393

@@ -509,11 +481,9 @@ private void doUpdate(PyDictionary od) {
509481

510482
for (int i = 0; i < pylist.size(); i++) {
511483
PyTuple tuple = (PyTuple) pylist.get(i);
512-
System.out.println("py tuple " + tuple.toString());
513484
this.__setitem__(Py.java2py(tuple.get(0)), Py.java2py(tuple.get(1)));
514485
super.__setitem__(Py.java2py(tuple.get(0)), Py.java2py(tuple.get(1)));
515486
}
516-
System.out.println("LOOP ENDED");
517487
}
518488

519489
private void doUpdate(PyObject d,PyObject keys) {

0 commit comments

Comments
 (0)