bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { DataInputStream dis; if (in instanceof DataInputStream) { dis = (DataInputStream)in; } else { //Further sanity check if (in instanceof Ob... | 29,388 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 29,389 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 29,390 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 29,391 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 29,392 |
public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | public void write(Object obj, OutputStream out) throws IOException { DataOutputStream dos; if (out instanceof DataOutputStream) { dos = (DataOutputStream)out; } else { //Further sanity check if (out instanceof ObjectOutputStream) { ... | 29,393 |
public DimensionUIResource(int w, int h) { super(w, h); } | public DimensionUIResource(int width, int height) { super(w, h); } | 29,395 |
public DimensionUIResource(int w, int h) { super(w, h); } | public DimensionUIResource(int w, int h) { super(width, height); } | 29,396 |
public void changedUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.changedUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); } | public void changedUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.changedUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); } | 29,397 |
public void insertUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.insertUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) ... | public void insertUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.insertUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()... | 29,398 |
public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), BasicTextUI.this); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()) ... | public void removeUpdate(DocumentEvent ev) { Dimension size = textComponent.getSize(); rootView.removeUpdate(ev, new Rectangle(0, 0, size.width, size.height), rootView.getViewFactory()); int caretPos = textComponent.getCaretPosition(); if (caretPos >= ev.getOffset()... | 29,399 |
public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(this); view = v; } | public void setView(View v) { if (view != null) view.setParent(null); if (v != null) v.setParent(null); view = v; } | 29,400 |
public int viewToModel(float x, float y, Shape a, Position.Bias b) { return view.viewToModel(x, y, a, b); } | public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { return view.viewToModel(x, y, a, b); } | 29,401 |
protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; installDocumentListeners(); Element elem = do... | protected void modelChanged() { if (textComponent == null || rootView == null) return; ViewFactory factory = rootView.getViewFactory(); if (factory == null) return; Document doc = textComponent.getDocument(); if (doc == null) return; installDocumentListeners(); Element elem = do... | 29,402 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 29,405 |
public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(c, width); Rectan... | public static void paintNormal(Context c, Box block, boolean restyle) { int width = block.getWidth(); int height = block.getHeight(); if (block.getState() != Box.DONE) { height += c.getCanvas().getHeight(); } Border margin = block.getMarginWidth(); Rectangle boun... | 29,406 |
public void tearDown() throws Exception { ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { ServerManagement.undeployTopic("Topic"); ServerManagement.undeployTopic("Topic2"); ServerManagement.undeployQueue("Queue"); super.tearDown(); } | 29,407 |
public void mousePressed(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | public void mousePressed(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | 29,408 |
public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | 29,409 |
public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { return; } u.p("pressed " + box); if (box.node != null) { Node node = box.node; if (node.getNodeType() == node.TEXT_NODE) { ... | 29,410 |
private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... | private static void fixHeights(TableBox tableBox, int borderSpacingVertical) { tableBox.height += borderSpacingVertical; for (Iterator tci = tableBox.getChildIterator(); tci.hasNext();) { Object tc = tci.next(); if (tc instanceof RowBox) { RowBox row = (RowBox) tc;... | 29,411 |
public void mouseEntered( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | public void mouseEntered( MouseEvent evt ) { Box ib = findBox(evt); restyle(ib); } | 29,412 |
public void mouseExited( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | public void mouseExited( MouseEvent evt ) { Box ib = findBox(evt); restyle(ib); } | 29,413 |
public void mouseMoved( MouseEvent evt ) { InlineBox ib = findInlineBox(evt); restyle(ib); } | public void mouseMoved( MouseEvent evt ) { Box ib = findBox(evt); restyle(ib); } | 29,414 |
private void restyle(InlineBox ib) { if(prev == ib) { return; } if(ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if(prev != null) { boolean restyled = panel.... | private void restyle(Box ib) { if(prev == ib) { return; } if(ib == null) panel.hovered_element = null; else panel.hovered_element = ib.getRealElement(); // if moved out of the old block then unstyle it if(prev != null) { boolean restyled = panel.getCon... | 29,415 |
public boolean selfTest() { if (valid == null) { valid = new Boolean (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf (DIGEST0.equals(Util.toString(new RipeMD160().digest()))); } return valid.booleanValue(); } | 29,416 |
public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace(this.id + " close"); } this.setStarted(false); this.sessionEndpoint.connectionEndpoint.receivers.remove(id); this.sessionEndpoint.consumers.remove(id); } | public void close() throws JMSException { if (log.isTraceEnabled()) { log.trace(this.id + " close"); } this.setStarted(false); this.sessionEndpoint.connectionEndpoint.receivers.remove(id); this.sessionEndpoint.consumers.remove(id); } | 29,418 |
public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro... | public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here Delivery delivery = null; try { Message message = routable.getMessage(); if (log.isTraceEnabled()) { log.trace("der... | 29,419 |
public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro... | public Delivery handle(DeliveryObserver observer, Routable routable) { // deliver the message on a different thread than the core thread that brought it here if (log.isTraceEnabled()) log.trace(this.id + " received " + routable); Delivery delivery = null; try { Message message = ro... | 29,420 |
public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all"); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on // t... | public void setUp() throws Exception { super.setUp(); // Start the local server localServer = new LocalTestServer(); // Start all the services locally localServer.start("all", true); // This crash test is relying on a precise value of LeaseInterval, so we don't rely on ... | 29,421 |
public String toString() { return "TextContent:\nStyle: " + _style + "\nText: " + _sb.toString(); } | public String toString() { return "TextContent: " + _sb.toString(); } | 29,422 |
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s60"); channel = new SimpleChannel(1, ms); // the state accepts reliable messages state = new ChannelState(channel, persistenceManagerDelegate, true, true, 100, 20, 10); log.debug("setup done"); ... | public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("s60"); channel = new SimpleChannel(1, ms); // the state accepts reliable messages state = new ChannelState(channel, persistenceManagerDelegate, true, true, 100, 20, 10); log.debug("setup done"); ... | 29,423 |
public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... | public static void setupAbsolute( Context c, Box box ) { String position = getPosition( c, box ); if ( position.equals( "absolute" ) ) { if ( c.css.hasProperty( box.node, "right", false ) ) { //u.p("prop = " + c.css.getProperty(box.getRealElement(),"right",false)); ... | 29,424 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitialActions(); addSteps(... | 29,425 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; if(descriptor != null) { this.descriptor = descriptor; addInitailAction(); addSteps()... | 29,426 |
private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ... | private Step createNewCurrentStep(ResultDescriptor theResult, WorkflowEntry entry, WorkflowStore store, int actionId, Step currentStep, long[] previousIds, Map transientVars, PropertySet ps) throws WorkflowException { try { int nextStep = theResult.getStep(); if (nextStep == -1) { ... | 29,428 |
protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato... | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); Map args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterator();... | 29,429 |
protected List getAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException { List l = new ArrayList(); StepDescriptor s = wf.getStep(step.getStepId()); if (s == null) { log.warn("getAvailableActionsForStep called for non-ex... | protected List getAvailableActionsForStep(WorkflowDescriptor wf, Step step, Map transientVars, PropertySet ps) throws WorkflowException { List l = new ArrayList(); StepDescriptor s = wf.getStep(step.getStepId()); if (s == null) { log.warn("getAvailableActionsForStep called for non-ex... | 29,430 |
private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ... | private boolean isActionAvailable(ActionDescriptor action, Map transientVars, PropertySet ps, int stepId) throws WorkflowException { if (action == null) { return false; } WorkflowDescriptor wf = getWorkflowDescriptorForAction(action); Map cache = (Map) stateCache.get(); ... | 29,431 |
protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... | protected void populateTransientMap(WorkflowEntry entry, Map transientVars, List registers, Integer actionId, Collection currentSteps) throws WorkflowException { transientVars.put("context", context); transientVars.put("entry", entry); transientVars.put("store", getPersistence()); transi... | 29,432 |
protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Map cache = (Map) stateCache.get(); if (cache != null) { cache.clear();... | 29,433 |
protected synchronized void closed() throws Throwable { state = CLOSED; if (log.isTraceEnabled()) { log.trace("closed"); } } | protected synchronized void closed() throws Throwable { state = CLOSED; if (trace) { log.trace("closed"); } } | 29,435 |
protected void maintainRelatives(Invocation invocation) { HierarchicalState state = ((DelegateSupport)invocation.getTargetObject()).getState(); //We use a clone to avoid a deadlock where requests //are made to close parent and child concurrently Set clone = n... | protected void maintainRelatives(Invocation invocation) { HierarchicalState state = ((DelegateSupport)invocation.getTargetObject()).getState(); //We use a clone to avoid a deadlock where requests //are made to close parent and child concurrently Set clone = n... | 29,436 |
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); long workflowId = workflow.initialize(workflowName, 100, n... | public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getWorkflowName(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 100)); long workflowId = workflow.initialize(workflowName, 100, n... | 29,437 |
public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = ds.getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement... | public void setEntryState(long id, int state) throws StoreException { Connection conn = null; Statement stmt = null; try { conn = ds.getConnection(); String sql = "UPDATE " + entryTable + " SET " + entryState + " = ? WHERE " + entryId + " = ?"; PreparedStatement... | 29,438 |
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | 29,440 |
public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | public static Font getElementFont(Context c, Element el) { // TODO: need to discuss what sort of caching should be going on here, because relative // datatypes like EM and EX depend in part on the 'current' font for an element (PWW 14/08/04) //u.p("testing node: " + e); Font f = c.getGraphics().getFont(); ... | 29,441 |
private DescriptorFactory() { } | public DescriptorFactory() { } | 29,442 |
public SplitDescriptor createSplitDescriptor(Element split) { return new SplitDescriptor(split); } | public SplitDescriptor createSplitDescriptor(Element split) { return new SplitDescriptor(split); } | 29,443 |
public StepDescriptor createStepDescriptor(Element step, AbstractDescriptor parent) { return new StepDescriptor(step, parent); } | public StepDescriptor createStepDescriptor(Element step, AbstractDescriptor parent) { return new StepDescriptor(step, parent); } | 29,444 |
public ValidatorDescriptor createValidatorDescriptor(Element validator) { return new ValidatorDescriptor(validator); } | public ValidatorDescriptor createValidatorDescriptor(Element validator) { return new ValidatorDescriptor(validator); } | 29,445 |
protected void activateConsumer() throws JMSException { //We execute this on a separate thread to avoid the case where the asynch delivery //arrives before we have returned from the synch call, which would //cause us to lose the message try { pooledExecutor.execute(new Consum... | protected void activateConsumer() throws JMSException { //We execute this on a separate thread to avoid the case where the asynch delivery //arrives before we have returned from the synch call, which would //cause us to lose the message try { pooledExecutor.execute(new Consum... | 29,448 |
protected FilterComboBoxModel() { filters = new FileFilter[1]; filters[0] = getAcceptAllFileFilter(getFileChooser()); selectedIndex = 0; } | protected FilterComboBoxModel() { filters = new FileFilter[1]; filters[0] = getAcceptAllFileFilter(getFileChooser()); selected = filters[0]; } | 29,452 |
public Object getSelectedItem() { if (selectedIndex >= 0) return filters[selectedIndex]; return null; } | public Object getSelectedItem() { if (selectedIndex >= 0) return filters[selectedIndex]; return null; } | 29,453 |
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) { selectedIndex = -1; FileFilter selected = (FileFilter) e.getNewValue(); for (int i = 0; i < filters.length; i++) if (filters[i].equals... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) { selectedIndex = -1; FileFilter selected = (FileFilter) e.getNewValue(); for (int i = 0; i < filters.length; i++) if (filters[i].equals... | 29,454 |
public void setSelectedItem(Object filter) { // change the filter in the file chooser and let the property change // event trigger the change to the selected item getFileChooser().setFileFilter((FileFilter) filter); } | public void setSelectedItem(Object filter) { // change the filter in the file chooser and let the property change // event trigger the change to the selected item if (filter != null) { selected = filter; fireContentsChanged(this, -1, -1); } } | 29,455 |
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileFilter filter = (FileFilter) value; return super.getListCellRendererComponent(list, filter.getDescription(), index, isSelected, cellHasFocus); } | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { FileFilter filter = (FileFilter) value; return super.getListCellRendererComponent(list, filter.getDescription(), index, isSelected, cellHasFocus); } | 29,456 |
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent() | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { return null; // TODO } // getListCellRendererComponent() | 29,458 |
public BasicFileChooserUI(JFileChooser b) { this.filechooser = b; } | public BasicFileChooserUI(JFileChooser b) { } | 29,459 |
public boolean hasNext() { checkMod(); return (next != null); } | public boolean hasNext() { return (next != null); } | 29,460 |
public boolean hasPrevious() { checkMod(); return (previous != null); } | public boolean hasPrevious() { return (previous != null); } | 29,461 |
public T remove(int index) { checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data; } | public boolean remove(Object o) { checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data; } | 29,462 |
public T remove(int index) { checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data; } | public T remove(int index) { checkBoundsExclusive(index); Entry<T> e = getEntry(index); removeEntry(e); return e.data; } | 29,463 |
public abstract BigInteger getPrivateExponent(); | BigInteger getPrivateExponent(); | 29,465 |
public Layout getLayout(Context c, Node elem) { //u.p("getting layout for node: " + elem); // we have to do the inputs manually since they don't depend on // the element name if (elem.getNodeType() == elem.ELEMENT_NODE) { if (elem.getNodeName().equals("input")) { ... | public Layout getLayout(Context c, Node elem) { //u.p("getting layout for node: " + elem); // we have to do the inputs manually since they don't depend on // the element name if (elem.getNodeType() == elem.ELEMENT_NODE) { if (elem.getNodeName().equals("input")) { ... | 29,467 |
private void initializeLayouts() { InlineLayout inline = new InlineLayout(); BoxLayout block = new BoxLayout(); addDisplayLayout("block", inline); addDisplayLayout("inline", inline); addDisplayLayout("list-item", inline); addDisplayLayout("none", inline); addCustomLa... | private void initializeLayouts() { InlineLayout inline = new InlineLayout(); addDisplayLayout("block", inline); addDisplayLayout("inline", inline); addDisplayLayout("list-item", inline); addDisplayLayout("none", inline); addCustomLayout("ol", new ListLayout()); ... | 29,468 |
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (... | public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (trace) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (Message)mi.getA... | 29,472 |
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (... | public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (... | 29,473 |
public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (... | public Object handleAddAsfMessage(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("addAsfMessage"); } MethodInvocation mi = (MethodInvocation)invocation; //Load the session with a message to be processed during a subsequent call to run() Message m = (... | 29,474 |
public Object handleCreateConnectionConsumer(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("createConnectionConsumer"); } MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; String subscriptionNa... | public Object handleCreateConnectionConsumer(Invocation invocation) throws Throwable { if (trace) { log.trace("createConnectionConsumer"); } MethodInvocation mi = (MethodInvocation)invocation; Destination dest = (Destination)mi.getArguments()[0]; String subscriptionName = (String)mi... | 29,475 |
public Object handleGetMessageListener(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("getMessageListener"); } return sessionListener; } | public Object handleGetMessageListener(Invocation invocation) throws Throwable { if (trace) { log.trace("getMessageListener"); } return sessionListener; } | 29,476 |
public Object handleRun(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("run"); } MethodInvocation mi = (MethodInvocation)invocation; SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = getSessionState(invocation).ge... | public Object handleRun(Invocation invocation) throws Throwable { if (trace) { log.trace("run"); } MethodInvocation mi = (MethodInvocation)invocation; SessionDelegate del = (SessionDelegate)mi.getTargetObject(); int ackMode = getSessionState(invocation).getAcknowledgeMod... | 29,477 |
public Object handleSetMessageListener(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("setMessageListener"); } MethodInvocation mi = (MethodInvocation)invocation; MessageListener listener = (MessageListener)mi.getArguments()[0]; if (listener ==... | public Object handleSetMessageListener(Invocation invocation) throws Throwable { if (trace) { log.trace("setMessageListener"); } MethodInvocation mi = (MethodInvocation)invocation; MessageListener listener = (MessageListener)mi.getArguments()[0]; if (listener == null) { ... | 29,478 |
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("s14"); channel = new Queue(1, ms, pm, true, 100, 20, 10); tr.start(pm); } | public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("s14"); channel = new Queue(1, ms, pm, true, 100, 20, 10); tr.start(pm); } | 29,479 |
public void cancelTest() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProduc... | public void cancelTest() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProduc... | 29,480 |
public void testAutoAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProduc... | public void testAutoAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProduc... | 29,481 |
public void testAutoAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProduc... | public void testAutoAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProduc... | 29,482 |
public void testClientAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testClientAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,483 |
public void testClientAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testClientAck1() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,484 |
public void testClientAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testClientAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,485 |
public void testClientAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testClientAck2() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,486 |
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,487 |
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,488 |
public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | public void testRedelivery() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessagePr... | 29,489 |
public void testTransactionCommit() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); Mes... | public void testTransactionCommit() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); Mes... | 29,490 |
public void testTransactionCommit() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); Mes... | public void testTransactionCommit() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); Mes... | 29,491 |
public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M... | public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M... | 29,492 |
public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M... | public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M... | 29,493 |
public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M... | public void testTransactionRollback() throws Exception { if (ServerManagement.isRemote()) return; MessageStore store = ServerManagement.getMessageStore(); Connection conn = cf.createConnection(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); M... | 29,494 |
public static int getBaselineOffset(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; int leading; //int xheight; int baselineOffset; if (new_inline instanceof InlineTextBox) { // should be the metrics of the fo... | public static int getBaselineOffset(Context c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; int leading; //int xheight; int baselineOffset; if (new_inline instanceof InlineTextBox) { // should be the metrics of the fo... | 29,495 |
public boolean getTransacted() { log.warn("getTransacted should not be handled at the server endpoint"); return false; } | public boolean getTransacted() throws JMSException { log.warn("getTransacted should not be handled at the server endpoint"); return false; } | 29,499 |
protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl... | protected void executeRenderThread(Context c, Box root) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphic... | 29,500 |
protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl... | protected void executeRenderThread(Context c) { //Uu.p("do render called"); //Uu.p("last render event = " + last_event); // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics) && expl... | 29,501 |
public void printTree() { printTree(this.body_box, ""); } | public void printTree() { printTree(getRootBox(), ""); } | 29,503 |
protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();... | protected Context newContext(PageInfo pageInfo, Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getView... | 29,504 |
protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();... | protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (pageInfo != null) { extents = new Rectangle(0, 0, (int) pageInfo.getContentWidth(), (int) pageInfo.getCon... | 29,505 |
protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();... | protected Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds();... | 29,506 |
public void clearBody() throws JMSException { payload = new HashMap(); bodyReadOnly = false; super.clearBody(); } | public void clearBody() throws JMSException { payload = new HashMap(); bodyReadOnly = false; super.clearBody(); } | 29,507 |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); bodyReadOnly = in.readBoolean(); payload = (Serializable)readMap(in); } | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); payload = (Serializable)readMap(in); } | 29,508 |
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(bodyReadOnly); writeMap(out, ((Map)payload)); } | public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); writeMap(out, ((Map)payload)); } | 29,509 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.