comparison jvmci/jdk.vm.ci.meta/src/jdk/vm/ci/meta/LocalVariableTable.java @ 23719:a52d7039723b

fixed checkstyle issues
author Doug Simon <doug.simon@oracle.com>
date Fri, 01 Jul 2016 21:21:42 +0200
parents 0bd91cd9869d
children 9bc5db6cdbb0
comparison
equal deleted inserted replaced
23718:0bd91cd9869d 23719:a52d7039723b
45 this.locals = locals; 45 this.locals = locals;
46 } 46 }
47 47
48 /** 48 /**
49 * Gets a description of a local variable that occupies the bytecode frame slot indexed by 49 * Gets a description of a local variable that occupies the bytecode frame slot indexed by
50 * {@code slot} and is live at the bytecode index {@code bci} 50 * {@code slot} and is live at the bytecode index {@code bci}.
51 * 51 *
52 * @return a description of the requested local variable or null if no such variable matches 52 * @return a description of the requested local variable or null if no such variable matches
53 * {@code slot} and {@code bci} 53 * {@code slot} and {@code bci}
54 */ 54 */
55 public Local getLocal(int slot, int bci) { 55 public Local getLocal(int slot, int bci) {
72 public Local[] getLocalsCopy() { 72 public Local[] getLocalsCopy() {
73 return locals.clone(); 73 return locals.clone();
74 } 74 }
75 75
76 /** 76 /**
77 * Gets a description of all the local variables live at the bytecode index {@code bci} 77 * Gets a description of all the local variables live at the bytecode index {@code bci}.
78 */ 78 */
79 public Local[] getLocalsAt(int bci) { 79 public Local[] getLocalsAt(int bci) {
80 List<Local> result = new ArrayList<>(); 80 List<Local> result = new ArrayList<>();
81 for (Local l : locals) { 81 for (Local l : locals) {
82 if (l.getStartBCI() <= bci && bci <= l.getEndBCI()) { 82 if (l.getStartBCI() <= bci && bci <= l.getEndBCI()) {