src/share/classes/com/sun/tools/javac/code/Symbol.java

changeset 1473
31780dd06ec7
parent 1464
f72c9c5aeaef
child 1491
9f42a06a49c0
equal deleted inserted replaced
1472:0c244701188e 1473:31780dd06ec7
1281 // If ClassReader.saveParameterNames has been set false, then 1281 // If ClassReader.saveParameterNames has been set false, then
1282 // savedParameterNames will be null. 1282 // savedParameterNames will be null.
1283 List<Name> paramNames = savedParameterNames; 1283 List<Name> paramNames = savedParameterNames;
1284 savedParameterNames = null; 1284 savedParameterNames = null;
1285 // discard the provided names if the list of names is the wrong size. 1285 // discard the provided names if the list of names is the wrong size.
1286 if (paramNames == null || paramNames.size() != type.getParameterTypes().size()) 1286 if (paramNames == null || paramNames.size() != type.getParameterTypes().size()) {
1287 paramNames = List.nil(); 1287 paramNames = List.nil();
1288 }
1288 ListBuffer<VarSymbol> buf = new ListBuffer<VarSymbol>(); 1289 ListBuffer<VarSymbol> buf = new ListBuffer<VarSymbol>();
1289 List<Name> remaining = paramNames; 1290 List<Name> remaining = paramNames;
1290 // assert: remaining and paramNames are both empty or both 1291 // assert: remaining and paramNames are both empty or both
1291 // have same cardinality as type.getParameterTypes() 1292 // have same cardinality as type.getParameterTypes()
1292 int i = 0; 1293 int i = 0;

mercurial