bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
public static ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
17,968
public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
public static final ResourceBundle getBundle(String baseName) { return getBundle(baseName, Locale.getDefault(), security.getCallingClassLoader()); }
17,969
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M...
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new Miss...
17,970
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M...
public final Object getObject(String key) { for (ResourceBundle bundle = this; bundle != null; bundle = bundle.parent) try { Object o = bundle.handleGetObject(key); if (o != null) return o; } catch (MissingResourceException ex) { } throw new M...
17,971
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,972
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,973
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,974
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,975
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,976
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,977
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
private static ResourceBundle tryBundle(String localizedName, Locale locale, ClassLoader classloader, ResourceBundle bundle, HashMap cache) { // First look into the cache. if (cache.containsKey(localizedName)) { Refere...
17,978
public void engineSetSeed(byte[] seed) { HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); }
public void engineSetSeed(byte[] seed) { HashMap attributes = new HashMap(); attributes.put(MDGenerator.MD_NAME, mdName); attributes.put(MDGenerator.SEEED, seed); adaptee.init(attributes); }
17,979
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
17,980
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
public void nextBytes(byte[] out, int offset, int length) throws IllegalStateException, LimitReachedException { if (!initialised) throw new IllegalStateException("not initialized"); if (length == 0) return; if (offset < 0 || length < 0 || offset + length > out.length) throw new ArrayInde...
17,981
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g...
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g...
17,982
public abstract byte[] getEncoded(int format);
public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); }
17,984
public UndoableEditSupport() { // TODO } // UndoableEditSupport()
public UndoableEditSupport() { // TODO } // UndoableEditSupport()
17,985
protected void _postEdit(UndoableEdit value0) { // TODO } // _postEdit()
protected void _postEdit(UndoableEdit value0) { // TODO } // _postEdit()
17,986
public synchronized void addUndoableEditListener(UndoableEditListener value0) { // TODO } // addUndoableEditListener()
public synchronized void addUndoableEditListener(UndoableEditListener value0) { // TODO } // addUndoableEditListener()
17,987
public synchronized void beginUpdate() { // TODO } // beginUpdate()
public synchronized void beginUpdate() { // TODO } // beginUpdate()
17,988
protected CompoundEdit createCompoundEdit() { return null; // TODO } // createCompoundEdit()
protected CompoundEdit createCompoundEdit() { return null; // TODO } // createCompoundEdit()
17,989
public synchronized void endUpdate() { // TODO } // endUpdate()
public synchronized void endUpdate() { // TODO } // endUpdate()
17,990
public int getUpdateLevel() { return 0; // TODO } // getUpdateLevel()
public int getUpdateLevel() { return 0; // TODO } // getUpdateLevel()
17,991
public synchronized void postEdit(UndoableEdit value0) { // TODO } // postEdit()
public synchronized void postEdit(UndoableEdit value0) { // TODO } // postEdit()
17,992
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { // TODO } // removeUndoableEditListener()
public synchronized void removeUndoableEditListener(UndoableEditListener value0) { // TODO } // removeUndoableEditListener()
17,993
public String toString() { return null; // TODO } // toString()
public String toString() { return null; // TODO } // toString()
17,994
public Element clone(Element parent, Element clonee) { Element clone = clonee; // We can only handle AbstractElements here. if (clonee instanceof BranchElement) { BranchElement branchEl = (BranchElement) clonee; BranchElement branchClone = new BranchElement(pare...
public Element clone(Element parent, Element clonee) { Element clone = clonee; // We can only handle AbstractElements here. if (clonee instanceof BranchElement) { BranchElement branchEl = (BranchElement) clonee; BranchElement branchClone = new BranchElement(pare...
17,995
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
17,996
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
private void insertFracture(ElementSpec tag) { // insert the fracture at offset. BranchElement parent = (BranchElement) elementStack.peek(); int parentIndex = parent.getElementIndex(offset); AttributeSet parentAtts = parent.getAttributes(); Element toFracture = parent.getElement(parentIn...
17,997
private Element[] recreateAfterFracture(Element[] recreate, BranchElement parent, int startFrom, int startOffset) { Element[] added = new Element[recreate.length - startFrom]; int j = 0; for (int i = startFrom; i < recreat...
private Element[] recreateAfterFracture(Element[] recreate, BranchElement parent, int startFrom, int startOffset) { Element[] added = new Element[recreate.length - startFrom]; int j = 0; for (int i = startFrom; i < recreat...
17,998
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
private Element[] split(Element el, int offset, int space, int editIndex) { // If we are at an element boundary, then return an empty array. if ((offset == el.getStartOffset() || offset == el.getEndOffset()) && space == 0 && el.isLeaf()) return new Element[2]; // If the element...
17,999
protected void create(ElementSpec[] data) { try { // Clear content. content.remove(0, content.length()); // Clear buffer and root element. buffer = new ElementBuffer(createDefaultRoot()); // Insert the data. insert(0, data); } catch (BadLocationException ex) ...
protected void create(ElementSpec[] data) { try { // Clear content. content.remove(0, content.length()); // Clear buffer and root element. buffer = new ElementBuffer(createDefaultRoot()); // Insert the data. insert(0, data); } catch (BadLocationException ex) ...
18,000
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = new LeafElement(para...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = (BranchElement) createBranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = ne...
18,002
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); LeafElement leaf = new LeafElement(para...
protected AbstractDocument.AbstractElement createDefaultRoot() { Element[] tmp; SectionElement section = new SectionElement(); BranchElement paragraph = new BranchElement(section, null); tmp = new Element[1]; tmp[0] = paragraph; section.replace(0, 0, tmp); Element leaf = createLeafElement(paragr...
18,003
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
public boolean addEdit(UndoableEdit edit) { if (edit instanceof DocumentEvent.ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
18,004
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { ElementChange elEdit = (ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
public boolean addEdit(UndoableEdit edit) { if (edit instanceof ElementChange) { DocumentEvent.ElementChange elEdit = (DocumentEvent.ElementChange) edit; changes.put(elEdit.getElement(), elEdit); } return super.addEdit(edit); }
18,005
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
private final void addBranch(int target, byte flags) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
18,008
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(nextIsSuccessor); }
private final void addBranch(int target, boolean nextIsSuccessor) { IRBasicBlock pred = this.currentBlock; IRBasicBlock succ = startBB(target); pred.addSuccessor(succ); endBB(flags); }
18,009
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
private final void endBB(byte flags) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
18,011
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; this.nextIsSuccessor = nextIsSuccessor; }
private final void endBB(boolean nextIsSuccessor) { nextIsStartOfBB = true; int address = getInstructionAddress(); branchFlags[address] |= flags; }
18,012
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(this.currentBlock); } nextIsStartOfBB...
18,013
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
18,014
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
public void startInstruction(int address) { super.startInstruction(address); opcodeFlags[address] |= BytecodeFlags.F_START_OF_INSTRUCTION; if (nextIsStartOfBB || isStartOfBB(address)) { IRBasicBlock pred = this.currentBlock; this.currentBlock = startBB(address); if (nextIsSuccessor) { pred.addSuccessor(thi...
18,015
public void visit_areturn() { endBB(false); }
public void visit_areturn() { endBB(UNCONDITIONAL_BRANCH); }
18,017
public void visit_athrow() { endBB(false); }
public void visit_athrow() { endBB(UNCONDITIONAL_BRANCH); }
18,018
public void visit_dreturn() { endBB(false); }
public void visit_dreturn() { endBB(UNCONDITIONAL_BRANCH); }
18,019
public void visit_freturn() { endBB(false); }
public void visit_freturn() { endBB(UNCONDITIONAL_BRANCH); }
18,020
public void visit_goto(int address) { addBranch(address, false); }
public void visit_goto(int address) { addBranch(address, UNCONDITIONAL_BRANCH); }
18,021
public void visit_if_acmpeq(int address) { addBranch(address, true); }
public void visit_if_acmpeq(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,022
public void visit_if_acmpne(int address) { addBranch(address, true); }
public void visit_if_acmpne(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,023
public void visit_if_icmpeq(int address) { addBranch(address, true); }
public void visit_if_icmpeq(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,024
public void visit_if_icmpge(int address) { addBranch(address, true); }
public void visit_if_icmpge(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,025
public void visit_if_icmpgt(int address) { addBranch(address, true); }
public void visit_if_icmpgt(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,026
public void visit_if_icmple(int address) { addBranch(address, true); }
public void visit_if_icmple(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,027
public void visit_if_icmplt(int address) { addBranch(address, true); }
public void visit_if_icmplt(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,028
public void visit_if_icmpne(int address) { addBranch(address, true); }
public void visit_if_icmpne(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,029
public void visit_ifeq(int address) { addBranch(address, true); }
public void visit_ifeq(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,030
public void visit_ifge(int address) { addBranch(address, true); }
public void visit_ifge(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,031
public void visit_ifgt(int address) { addBranch(address, true); }
public void visit_ifgt(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,032
public void visit_ifle(int address) { addBranch(address, true); }
public void visit_ifle(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,033
public void visit_iflt(int address) { addBranch(address, true); }
public void visit_iflt(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,034
public void visit_ifne(int address) { addBranch(address, true); }
public void visit_ifne(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,035
public void visit_ifnonnull(int address) { addBranch(address, true); }
public void visit_ifnonnull(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,036
public void visit_ifnull(int address) { addBranch(address, true); }
public void visit_ifnull(int address) { addBranch(address, CONDITIONAL_BRANCH); }
18,037
public void visit_ireturn() { endBB(false); }
public void visit_ireturn() { endBB(UNCONDITIONAL_BRANCH); }
18,038
public void visit_jsr(int address) { // Not sure about this, the next block I believe it NOT a // direct successor. This will have to be tested. addBranch(address, false); }
public void visit_jsr(int address) { // Not sure about this, the next block I believe it NOT a // direct successor. This will have to be tested. }
18,039
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], CONDITIONAL_BRANCH); } // Same for default case addBranch(defValue, true); }
18,040
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
public void visit_lookupswitch(int defValue, int[] matchValues, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, CONDITIONAL_BRANCH); }
18,041
public void visit_lreturn() { endBB(false); }
public void visit_lreturn() { endBB(UNCONDITIONAL_BRANCH); }
18,042
public void visit_ret(int index) { // Not sure about this either, this needs testing endBB(false); }
public void visit_ret(int index) { // Not sure about this either, this needs testing endBB(UNCONDITIONAL_BRANCH); }
18,043
public void visit_return() { endBB(false); }
public void visit_return() { endBB(UNCONDITIONAL_BRANCH); }
18,044
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], CONDITIONAL_BRANCH); } // Same for default case addBranch(defValue, true); }
18,045
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, true); }
public void visit_tableswitch(int defValue, int lowValue, int highValue, int[] addresses) { for (int i = 0; i < addresses.length; i++) { // Next block could be successor, e.g. switch could fall through addBranch(addresses[i], true); } // Same for default case addBranch(defValue, CONDITIONAL_BRANCH); }
18,046
public final boolean equals(Object identity) { if (identity instanceof Identity) { if (identity == this) return true; if ((((Identity) identity).getName() == this.name) && (((Identity) identity).getScope() == this.scope)) return true; return identityEquals((Identity) identity); } return false...
public final boolean equals(Object identity) { if (identity instanceof Identity) { if (identity == this) return true; if ((((Identity) identity).getName() == this.name) && (((Identity) identity).getScope() == this.scope)) return true; return identityEquals((Identity) identity); } return false...
18,047
protected boolean identityEquals(Identity identity) { return ((identity.getName() == this.name) && (identity.getPublicKey() == this.publicKey)); }
protected boolean identityEquals(Identity identity) { return ((identity.getName() == this.name) && (identity.getPublicKey() == this.publicKey)); }
18,048
protected CommandInfo getCommandClass(String cmd) throws ClassNotFoundException { try { Class cls = aliasMgr.getAliasClass(cmd); return new CommandInfo(cls, aliasMgr.isInternal(cmd)); } catch (NoSuchAliasException ex) { final ClassLoader cl = Thread.currentThread() ...
protected CommandInfo getCommandClass(String cmd) throws ClassNotFoundException { try { Class cls = aliasMgr.getAliasClass(cmd); return new CommandInfo(cls, aliasMgr.isInternal(cmd)); } catch (NoSuchAliasException ex) { final ClassLoader cl = Thread.currentThread() ...
18,049
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
18,051
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ...
18,052
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -...
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -...
18,054
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -...
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -...
18,055
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ...
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ...
18,057
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ...
public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ...
18,058
public final Class getCommandClass() { return clazz; }
public final Class<?> getCommandClass() { return clazz; }
18,060
public void setCompleted(String completed) { this.items = null; this.completed = completed; }
public void setCompleted(String completed) { this.completed = completed; }
18,061
public CommandInfo(Class clazz, boolean internal) { this.clazz = clazz; this.internal = internal; }
public CommandInfo(Class<?> clazz, boolean internal) { this.clazz = clazz; this.internal = internal; }
18,062
public void start(ScrollableShellConsole console) { consoleX = console.getCursorX(); consoleY = console.getCursorY(); setContent(""); }
public void start(ScrollableShellConsole console) { consoleX = console.getCursorX(); consoleY = console.getCursorY(); setContent(""); }
18,063
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { throw new Error ("not implemented"); }
public TextHitInfo getStrongCaret (TextHitInfo hit1, TextHitInfo hit2, TextLayout layout) { return layout.peer.getStrongCaret(hit1, hit2); }
18,064
public TextLayout (AttributedCharacterIterator text, FontRenderContext frc) { attributedString = new AttributedString (text); fontRenderContext = frc; }
public TextLayout (AttributedCharacterIterator text, FontRenderContext frc) { attributedString = new AttributedString (text); fontRenderContext = frc; }
18,065
protected Object clone () { try { return super.clone (); } catch (CloneNotSupportedException e) { // This should never occur throw new InternalError (); } }
protected Object clone () { try { TextLayout tl = (TextLayout) super.clone (); tl.peer = (ClasspathTextLayoutPeer) this.peer.clone(); return tl; } catch (CloneNotSupportedException e) { // This should never occur throw new InternalError (); } }
18,066
public void draw (Graphics2D g2, float x, float y) { AttributedCharacterIterator ci = attributedString.getIterator (); CharacterIteratorProxy proxy = new CharacterIteratorProxy (ci); Font defFont = g2.getFont (); /* Note: this implementation currently only interprets FONT text * attributes. There is...
public void draw (Graphics2D g2, float x, float y) { AttributedCharacterIterator ci = attributedString.getIterator (); CharacterIteratorProxy proxy = new CharacterIteratorProxy (ci); Font defFont = g2.getFont (); /* Note: this implementation currently only interprets FONT text * attributes. There is...
18,067
public float getAdvance () { throw new Error ("not implemented"); }
public float getAdvance () { return peer.getAdvance(); }
18,068
public float getAscent () { throw new Error ("not implemented"); }
public float getAscent () { return peer.getAscent(); }
18,069
public byte getBaseline () { throw new Error ("not implemented"); }
public byte getBaseline () { return peer.getBaseline(); }
18,070
public float[] getBaselineOffsets () { throw new Error ("not implemented"); }
public float[] getBaselineOffsets () { return peer.getBaselineOffsets(); }
18,071
public Shape getBlackBoxBounds (int firstEndpoint, int secondEndpoint) { throw new Error ("not implemented"); }
public Shape getBlackBoxBounds (int firstEndpoint, int secondEndpoint) { return peer.getBlackBoxBounds(firstEndpoint, secondEndpoint); }
18,072
public Rectangle2D getBounds() { throw new Error ("not implemented"); }
public Rectangle2D getBounds() { return peer.getBounds(); }
18,073
public float[] getCaretInfo (TextHitInfo hit) { throw new Error ("not implemented"); }
public float[] getCaretInfo (TextHitInfo hit) { return getCaretInfo(hit, getBounds()); }
18,074
public Shape getCaretShape (TextHitInfo hit) { throw new Error ("not implemented"); }
public Shape getCaretShape (TextHitInfo hit) { return getCaretShape(hit, getBounds()); }
18,075
public Shape[] getCaretShapes (int offset) { throw new Error ("not implemented"); }
public Shape[] getCaretShapes (int offset) { return getCaretShapes(offset, getBounds()); }
18,076
public int getCharacterCount () { throw new Error ("not implemented"); }
public int getCharacterCount () { return peer.getCharacterCount(); }
18,077