bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected void fireActionPerformed() { ActionEvent event = new ActionEvent(this, 0, notifyAction); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); }
protected void fireActionPerformed() { ActionEvent event = new ActionEvent(this, 0, notifyAction); ActionListener[] listeners = getActionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].actionPerformed(event); }
12,234
public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); }
public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); }
12,235
public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); }
public ActionListener[] getActionListeners() { return (ActionListener[]) getListeners(ActionListener.class); }
12,236
public int getColumns() { return columns; }
public int getColumns() { return columns; }
12,237
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
12,239
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
12,240
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
12,241
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action oldAction = action; action = newAction; if ...
public void setAction(Action newAction) { if (action == newAction) return; if (action != null) { removeActionListener(action); action.removePropertyChangeListener(actionPropertyChangeListener); actionPropertyChangeListener = null; } Action ...
12,242
void findHelper() { if (helper != null || helper_NA) return; try { Class helperClass = Class.forName(ObjectCreator.toHelperName(type.id())); helper = (BoxedValueHelper) helperClass.newInstance(); } catch (Exception ex) { helper_NA = true; } }
void findHelper() { if (helper != null || helper_NA) return; try { Class helperClass = ObjectCreator.forName(ObjectCreator.toHelperName(type.id())); helper = (BoxedValueHelper) helperClass.newInstance(); } catch (Exception ex) { helper_NA = true; } }
12,244
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Mult...
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Mult...
12,245
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Mult...
try { try { try { publictry { voidtry { send()try { throwstry { Exception,try { AddressException,try { MessagingExceptiontry { {//try { try { try { try { try { try { trytry { {try { try { try { try { try { try { try { try { try { if(!loadConfig(configFile))try { try { try { try { try { try { try { try { try { try { try...
12,246
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Mult...
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return false; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it ...
12,247
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Mult...
public void send() throws Exception, AddressException, MessagingException {// try { if(!loadConfig(configFile)) return; Session session = Session.getDefaultInstance(SMTPProperties, null); session.setDebug(false); // create the Multipart and its parts to it Mult...
12,248
public static NotEmpty extract(Any a) { try { return ((NotEmptyHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
public static NotEmpty extract(Any a) { try { return ((NotEmptyHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad; } }
12,249
public Object addMemberObject (Object obj) { if (obj!=null) { if (memberObjHash.add(obj)) return obj; else return null; } else return null; }
public Object addMemberObject (Object obj) { if (obj!=null) { if (memberObjHash.add(obj)) return obj; else return null; } else return null; }
12,250
public boolean hasMemberObj (Object obj) { if (obj!=null) { if (memberObjHash.contains(obj)) { return true; } else return false; } return false; }
public boolean hasMemberObj (Object obj) { if (obj!=null) { if (memberObjHash.contains(obj)) { return true; } else return false; } return false; }
12,252
public boolean hasMemberObj (Object obj) { if (obj!=null) { if (memberObjHash.contains(obj)) { return true; } else return false; } return false; }
public boolean hasMemberObj (Object obj) { if (obj!=null) { if (memberObjHash.contains(obj)) { return true; } else else return false; } else return false; }
12,253
public Object removeMemberObject (Object obj) { if (obj!=null) { if (memberObjHash.contains(obj)) { memberObjHash.remove(obj); return obj; } else return null; } else return null; }
public Object removeMemberObject (Object obj) { if (obj!=null) { if (memberObjHash.contains(obj)) { memberObjHash.remove(obj); return obj; } else return null; } else return null; }
12,254
public Robot() throws AWTException { throw new Error("not implemented"); }
public Robot () throws AWTException { throw new Error("not implemented"); }
12,256
public Robot() throws AWTException { throw new Error("not implemented"); }
public Robot() throws AWTException { if (GraphicsEnvironment.isHeadless ()) throw new AWTException ("Robot: headless graphics environment"); SecurityManager sm = System.getSecurityManager (); if (sm != null) sm.checkPermission (new AWTPermission ("createRobot")); ClasspathToolkit tk = (ClasspathToolkit) Toolkit...
12,257
public BufferedImage createScreenCapture(Rectangle screen) { return null; }
public BufferedImage createScreenCapture (Rectangle screenRect) { return null; }
12,258
public BufferedImage createScreenCapture(Rectangle screen) { return null; }
public BufferedImage createScreenCapture(Rectangle screen) { if (screenRect.width <= 0) throw new IllegalArgumentException ("Robot: capture width is <= 0"); if (screenRect.height <= 0) throw new IllegalArgumentException ("Robot: capture height is <= 0"); SecurityManager sm = System.getSecurityManager (); if (sm...
12,259
public void delay(int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); }
public void delay (int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); }
12,260
public void delay(int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); }
public void delay(int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException ("Robot: delay length out-of-bounds"); try { Thread.sleep (ms); } catch (InterruptedException e) { System.err.println ("Robot: delay interrupted"); } }
12,261
public int getAutoDelay() { return autoDelay; }
public int getAutoDelay () { return autoDelay; }
12,262
public Color getPixelColor(int x, int y) { return null; }
public Color getPixelColor (int x, int y) { return null; }
12,263
public Color getPixelColor(int x, int y) { return null; }
public Color getPixelColor(int x, int y) { return new Color (peer.getRGBPixel (x, y)); }
12,264
public boolean isAutoWaitForIdle() { return waitForIdle; }
public boolean isAutoWaitForIdle () { return waitForIdle; }
12,265
public void keyPress(int keycode) { }
public void keyPress (int keycode) { }
12,266
public void keyRelease(int keycode) { }
public void keyRelease (int keycode) { }
12,268
public void mousePress(int buttons) { }
public void mousePress (int buttons) { }
12,271
public void mouseWheel(int wheelAmt) { }
public void mouseWheel (int wheelAmt) { }
12,274
public void setAutoDelay(int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); autoDelay = ms; }
public void setAutoDelay (int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); autoDelay = ms; }
12,276
public void setAutoDelay(int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); autoDelay = ms; }
public void setAutoDelay(int ms) { if (ms < 0 || ms > 60000) throw new IllegalArgumentException(); autoDelay = ms; }
12,277
public void setAutoWaitForIdle(boolean value) { waitForIdle = value; }
public void setAutoWaitForIdle (boolean isOn) { waitForIdle = value; }
12,278
public void setAutoWaitForIdle(boolean value) { waitForIdle = value; }
public void setAutoWaitForIdle(boolean value) { waitForIdle = isOn; }
12,279
public String toString() { return "unimplemented"; }
public String toString () { return "unimplemented"; }
12,280
public String toString() { return "unimplemented"; }
public String toString() { return getClass ().getName () + "[ autoDelay = " + autoDelay + ", autoWaitForIdle = " + waitForIdle + " ]"; }
12,281
public void waitForIdle() { }
public void waitForIdle () { }
12,282
public TypeCode _type() { return t_fixed; }
public TypeCode _type() { return new fixedTypeCode(value); }
12,284
public static Object allocObject(VmType<?> vmClass, int size) throws UninterruptiblePragma { vmClass.link(); // Screen.debug("ao cls{"); // Screen.debug(vmClass.getName()); VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getHeapManager...
public static Object allocObject(VmType<?> vmClass, int size) throws UninterruptiblePragma { // Screen.debug("ao cls{"); // Screen.debug(vmClass.getName()); VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getHeapManager(); } ...
12,287
public static Object allocObject(VmType<?> vmClass, int size) throws UninterruptiblePragma { vmClass.link(); // Screen.debug("ao cls{"); // Screen.debug(vmClass.getName()); VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getHeapManager...
public static Object allocObject(VmType<?> vmClass, int size) throws UninterruptiblePragma { vmClass.link(); // Screen.debug("ao cls{"); // Screen.debug(vmClass.getName()); VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getHeapManager...
12,288
public static Object allocObject(VmType<?> vmClass, int size) throws UninterruptiblePragma { vmClass.link(); // Screen.debug("ao cls{"); // Screen.debug(vmClass.getName()); VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getHeapManager...
public static Object allocObject(VmType<?> vmClass, int size)throws UninterruptiblePragma {vmClass.link();// Screen.debug("ao cls{");// Screen.debug(vmClass.getName());VmHeapManager hm = heapManager;if (hm == null) {heapManager = hm = Vm.getHeapManager();}Object result;if (size < 0) {result = hm.newInstance(vmClass);} ...
12,289
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand()....
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { saveProps(); setVisible(false); } if (e.getActionCommand().equals("ADD")) { Configure.doEntry((JFrame)getParent(),null,props); ctm.addSession(); } if (e.getActionCommand()....
12,290
void jbInit() throws Exception { // make it non resizable setResizable(false); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ...
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ...
12,291
void jbInit() throws Exception { // make it non resizable setResizable(false); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ...
void jbInit() throws Exception { // make it non resizable setResizable(false); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create some reusable borders and layouts Border etchedBorder = BorderFactory.createEtchedBorder(); BorderLayout borderLayout = new BorderLayout(); ...
12,292
private Math() { }
private Math() { }
12,293
public static double rint(double a) { return StrictMath.rint(a); }
public static double rint(double a) { return StrictMath.rint(a); }
12,294
public static double toDegrees(double rads) { return (rads * 180) / PI; }
public static double toDegrees(double rads) { return (rads * 180) / PI; }
12,295
public static double toRadians(double degrees) { return (degrees * PI) / 180; }
public static double toRadians(double degrees) { return (degrees * PI) / 180; }
12,296
private static PreferencesFactory getFactory() throws SecurityException { // First check for permission SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(prefsPermission); } // Get the factory if (factory == null) { ...
private static PreferencesFactory getFactory() throws SecurityException { // First check for permission SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(prefsPermission); } // Get the factory if (factory == null) { ...
12,298
public NodeReader(InputStream is, PreferencesFactory factory) { this(new InputStreamReader(is), factory); }
public NodeReader(InputStream is, PreferencesFactory factory) { this(new InputStreamReader(is), factory); }
12,299
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
public KeyPair generate() { if (p == null) { BigInteger[] params = new FIPS186(L, rnd).generateParameters(); seed = params[FIPS186.DSA_PARAMS_SEED]; counter = params[FIPS186.DSA_PARAMS_COUNTER]; q = params[FIPS186.DSA_PARAMS_Q]; p = params[FIPS186.DSA_PARAMS_P]; e = ...
12,300
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); int x = c.getMagicCaretPosition().x; int pos = Utilities.getPositionAbove(t, ...
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); Point mcp = c.getMagicCaretPosition(); int x = (mcp != null) ? mcp.x : 0; i...
12,302
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); int x = c.getMagicCaretPosition().x; int pos = Utilities.getPositionBelow(t, ...
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); Point mcp = c.getMagicCaretPosition(); int x = (mcp != null) ? mcp.x : 0; i...
12,303
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); int x = c.getMagicCaretPosition().x; int pos = Utilities.getPositionAbove(t, ...
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); Point mcp = c.getMagicCaretPosition(); int x = (mcp != null) ? mcp.x : 0; i...
12,304
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); int x = c.getMagicCaretPosition().x; int pos = Utilities.getPositionBelow(t, ...
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); try { if (t != null) { Caret c = t.getCaret(); Point mcp = c.getMagicCaretPosition(); int x = (mcp != null) ? mcp.x : 0; i...
12,305
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { int offs = t.getCaretPosition() - 1; if(offs > 0) { Caret c = t.getCaret(); c.moveDot(offs); try { c.setM...
public void actionPerformed(ActionEvent event) { JTextComponent t = getTextComponent(event); if (t != null) { int offs = t.getCaretPosition() - 1; if(offs >= 0) { Caret c = t.getCaret(); c.moveDot(offs); try { c.set...
12,306
public void actionPerformed(ActionEvent e) { if (block) { // Only need to check it if it's block scrolling // We only block scroll if the click occurs // in the track. if (! trackListener.shouldScroll(direction)) { trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); retu...
public void actionPerformed(ActionEvent e) { if (block) { // Only need to check it if it's block scrolling // We only block scroll if the click occurs // in the track. if (! trackListener.shouldScroll(direction)) { trackHighlight = NO_HIGHLIGHT; scrollbar.repaint(); retu...
12,307
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors(...
public void installUI(JComponent c) { super.installUI(c); if (c instanceof JScrollBar) { scrollbar = (JScrollBar) c; trackRect = new Rectangle(); thumbRect = new Rectangle(); scrollTimer = new Timer(200, null); scrollTimer.setRepeats(true); installComponents(); installDefaults(); configureScrollBarColors(...
12,308
private void addByteDataToCurrentArray (Locator location, byte[] data, int amount, String endian) throws SetDataException { ArrayList commandList = (ArrayList) ((FormattedXMLDataIOStyle) CurrentArray.getXMLDataIOStyle()).getFormatCommands(); int nrofIOCmd = commandList.size(); ...
privatevoidaddByteDataToCurrentArray(Locatorlocation,byte[]data,intamount,Stringendian)throwsSetDataException{ArrayListcommandList=(ArrayList)((FormattedXMLDataIOStyle)CurrentArray.getXMLDataIOStyle()).getFormatCommands();intnrofIOCmd=commandList.size();intbytes_added=0;while(bytes_added<amount){FormattedIOCmdcurrentIO...
12,311
protected void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~ stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (stateMas...
private void changeState(int stateflag, boolean b) { int oldstate = stateMask; int newstate; if (b) newstate = oldstate | stateflag; else newstate = oldstate & ~ stateflag; if (oldstate == newstate) return; if ((stateflag != SELECTED) && (stateflag != ENABLED) && (stateMask ...
12,312
public void fireActionPerformed(ActionEvent e) { ActionListener[] ll = getActionListeners(); for (int i = 0; i < ll.length; i++) ll[i].actionPerformed(e); }
protected void fireActionPerformed(ActionEvent e) { ActionListener[] ll = getActionListeners(); for (int i = 0; i < ll.length; i++) ll[i].actionPerformed(e); }
12,313
public void fireItemStateChanged(ItemEvent e) { ItemListener[] ll = getItemListeners(); for (int i = 0; i < ll.length; i++) ll[i].itemStateChanged(e); }
protected void fireItemStateChanged(ItemEvent e) { ItemListener[] ll = getItemListeners(); for (int i = 0; i < ll.length; i++) ll[i].itemStateChanged(e); }
12,314
public void fireStateChanged() { ChangeListener[] ll = getChangeListeners(); for (int i = 0; i < ll.length; i++) ll[i].stateChanged(changeEvent); }
protected void fireStateChanged() { ChangeListener[] ll = getChangeListeners(); for (int i = 0; i < ll.length; i++) ll[i].stateChanged(changeEvent); }
12,315
public CellRendererPane() { } // CellRendererPane()
public CellRendererPane() { } // CellRendererPane()
12,317
protected void addImpl(Component c, Object constraints, int index) { if (!isAncestorOf(c)) { super.addImpl(c, constraints, index); } } // addImpl()
protected void addImpl(Component c, Object constraints, int index) { if (!isAncestorOf(c)) { super.addImpl(c, constraints, index); } } // addImpl()
12,318
public void invalidate() { } // invalidate()
public void invalidate() { } // invalidate()
12,319
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { // reparent c addImpl(c, null, 0); Rectangle oldClip = graphics.getClipBounds(); // translate to (x,y) graphics.translate(x, y); graphics.clipR...
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { // reparent c addImpl(c, null, 0); Rectangle oldClip = graphics.getClipBounds(); // translate to (x,y) graphics.translate(x, y); graphics.clipR...
12,321
public void update(Graphics graphics) { } // update()
public void update(Graphics graphics) { } // update()
12,322
public BinaryQuad(int address, IRBasicBlock block, int lhsIndex, int varIndex1, int operation, int varIndex2) { super(address, block, lhsIndex); this.operand1 = getOperand(varIndex1); this.operation = operation; this.operand2 = getOperand(varIndex2); refs = new Operand[] { operand1, operand2 }; this.commutative...
public BinaryQuad(int address, IRBasicBlock block, int lhsIndex, int varIndex1, int operation, int varIndex2) { super(address, block, lhsIndex); this.operand1 = getOperand(varIndex1); this.operation = operation; this.operand2 = getOperand(varIndex2); refs = new Operand[] { operand1, operand2 }; this.commutative...
12,323
public BinaryQuad(int address, IRBasicBlock block, int lhsIndex, int varIndex1, int operation, int varIndex2) { super(address, block, lhsIndex); this.operand1 = getOperand(varIndex1); this.operation = operation; this.operand2 = getOperand(varIndex2); refs = new Operand[] { operand1, operand2 }; this.commutative...
public BinaryQuad(int address, IRBasicBlock block, int lhsIndex, int varIndex1, int operation, int varIndex2) { super(address, block, lhsIndex); this.operand1 = getOperand(varIndex1); this.operation = operation; this.operand2 = getOperand(varIndex2); refs = new Operand[] { operand1, operand2 }; this.commutative...
12,324
public void doPass2(BootableHashMap liveVariables) { operand1 = operand1.simplify(); operand2 = operand2.simplify(); if (operand1 instanceof Variable) { Variable v = (Variable) operand1; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (operand2 instanceof Variable) { Variable v = (Va...
public void doPass2(BootableHashMap liveVariables) { operand1 = operand1.simplify(); operand2 = operand2.simplify(); if (operand1 instanceof Variable) { Variable v = (Variable) operand1; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (operand2 instanceof Variable) { Variable v = (Va...
12,325
public void doPass2(BootableHashMap liveVariables) { operand1 = operand1.simplify(); operand2 = operand2.simplify(); if (operand1 instanceof Variable) { Variable v = (Variable) operand1; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (operand2 instanceof Variable) { Variable v = (Va...
public void doPass2(BootableHashMap liveVariables) { operand1 = operand1.simplify(); operand2 = operand2.simplify(); if (operand1 instanceof Variable) { Variable v = (Variable) operand1; v.setLastUseAddress(this.getAddress()); liveVariables.put(v, v); } if (operand2 instanceof Variable) { Variable v = (Va...
12,326
public Quad foldConstants() { if (operand1 instanceof Constant && operand2 instanceof Constant) { Constant c1 = (Constant) operand1; Constant c2 = (Constant) operand2; switch (operation) { case IADD: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), ...
public Quad foldConstants() { if (operand1 instanceof Constant && operand2 instanceof Constant) { Constant c1 = (Constant) operand1; Constant c2 = (Constant) operand2; switch (operation) { case IADD: return new ConstantRefAssignQuad(this.getAddress(), this.getBasicBlock(), this.getLHS().getIndex(), ...
12,327
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,328
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,329
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,330
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,331
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,332
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,333
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
public void generateCode(CodeGenerator cg) { cg.checkLabel(getAddress()); Variable lhs = getLHS(); int lhsMode = lhs.getAddressingMode(); int op1Mode = operand1.getAddressingMode(); int op2Mode = operand2.getAddressingMode(); Object reg1 = null; if (lhsMode == Operand.MODE_REGISTER) { RegisterLocation r...
12,334
public Operand getOperand1() { return operand1; }
public Operand getOperand1() { return operand1; }
12,335
public Operand getOperand2() { return operand2; }
public Operand getOperand2() { return operand2; }
12,336
public String toString() { return getAddress() + ": " + getLHS().toString() + " = " + operand1.toString() + " " + OP_MAP[operation - IADD] + " " + operand2.toString(); }
public String toString() { return getAddress() + ": " + getLHS().toString() + " = " + operand1.toString() + " " + OP_MAP[operation - IADD] + " " + operand2.toString(); }
12,337
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {/*// this stuff slows down t...
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat, int intRadix ) {/*// this stuff slows down t...
12,339
private static RMIClassLoaderSpi getProviderInstance() { // TODO: Do something more useful here. return null; }
String prop = SystemProperties.getProperty("java.rmi.server.RMIClassLoaderSpi"); if ("default".equals(prop)) return null; Iterator it = ServiceFactory.lookupProviders(RMIClassLoaderSpi.class, null); if (it == null || ! it.hasNext()) String prop = SystemProperties.getProperty("java.rmi.server.RMIClassLoaderSpi"); ...
12,341
public String getProperty(String key, String def) { return def; }
public String getProperty(String key, String def) { if (settings.containsKey(key)) return settings.getProperty(key); else return def; }
12,343
public MediaPrintableArea(float x, float y, float w, float h, int units) { if (x < 0.0f || y < 0.0f || w <= 0.0f || h <= 0.0f) throw new IllegalArgumentException(); this.x = x; this.y = y; this.width = w; this.height = h; }
public MediaPrintableArea(float x, float y, float w, float h, int units) { if (x < 0.0f || y < 0.0f || w <= 0.0f || h <= 0.0f) throw new IllegalArgumentException(); this.x = x; this.y = y; this.width = w; this.height = h; }
12,345
public float getHeight(int units) { if (units < 1) throw new IllegalArgumentException(); return height * units; }
public float getHeight(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return height * units; }
12,346
public float getHeight(int units) { if (units < 1) throw new IllegalArgumentException(); return height * units; }
public float getHeight(int units) { if (units < 1) throw new IllegalArgumentException(); return height / ((float)units); }
12,347
public float getWidth(int units) { if (units < 1) throw new IllegalArgumentException(); return width * units; }
public float getWidth(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return width * units; }
12,348
public float getWidth(int units) { if (units < 1) throw new IllegalArgumentException(); return width * units; }
public float getWidth(int units) { if (units < 1) throw new IllegalArgumentException(); return width / ((float)units); }
12,349
public float getX(int units) { if (units < 1) throw new IllegalArgumentException(); return x * units; }
public float getX(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return x * units; }
12,350
public float getX(int units) { if (units < 1) throw new IllegalArgumentException(); return x * units; }
public float getX(int units) { if (units < 1) throw new IllegalArgumentException(); return x / ((float)units); }
12,351
public float getY(int units) { if (units < 1) throw new IllegalArgumentException(); return y * units; }
public float getY(int units) { if (units < 1) throw new IllegalArgumentException("units may not be less than 1"); return y * units; }
12,352
public float getY(int units) { if (units < 1) throw new IllegalArgumentException(); return y * units; }
public float getY(int units) { if (units < 1) throw new IllegalArgumentException(); return y / ((float)units); }
12,353
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp...
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp...
12,354
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp...
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp...
12,355
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp...
public Component getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { this.selected = selected; this.hasFocus = hasFocus; if (leaf) setLeafIcon(getLeafIcon()); else if (expanded) setOpenIcon(getOp...
12,356