rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return false; | prepareForEditing(); return true; } return false; | public boolean isCellEditable(EventObject value0) { return false; // TODO } |
editingContainer.add(editingComponent); | protected void prepareForEditing() { // TODO } | |
public void setBorderSelectionColor(Color value0) | public void setBorderSelectionColor(Color newColor) | public void setBorderSelectionColor(Color value0) { // TODO } |
this.borderSelectionColor = newColor; | public void setBorderSelectionColor(Color value0) { // TODO } | |
public void setFont(Font value0) | public void setFont(Font font) | public void setFont(Font value0) { // TODO } |
if (font != null) this.font = font; else this.font = renderer.getFont(); | public void setFont(Font value0) { // TODO } | |
protected void setTree(JTree value0) | protected void setTree(JTree newTree) | protected void setTree(JTree value0) { // TODO } |
tree = newTree; | protected void setTree(JTree value0) { // TODO } | |
public boolean shouldSelectCell(EventObject value0) | public boolean shouldSelectCell(EventObject event) | public boolean shouldSelectCell(EventObject value0) { return false; // TODO } |
return false; | return true; | public boolean shouldSelectCell(EventObject value0) { return false; // TODO } |
protected boolean shouldStartEditingTimer(EventObject value0) | protected boolean shouldStartEditingTimer(EventObject event) | protected boolean shouldStartEditingTimer(EventObject value0) { return false; // TODO } |
return false; | if (!(event instanceof MouseEvent) && inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY()) && ((MouseEvent) event). getClickCount() == 1) return true; return false; | protected boolean shouldStartEditingTimer(EventObject value0) { return false; // TODO } |
if (timer == null) timer = new javax.swing.Timer(1200, this); timer.start(); | protected void startEditingTimer() { // TODO } | |
return false; | if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); tree.setCellEditor(null); return true; } return false; | public boolean stopCellEditing() { return false; // TODO } |
public void valueChanged(TreeSelectionEvent value0) | public void valueChanged(TreeSelectionEvent e) | public void valueChanged(TreeSelectionEvent value0) { // TODO } |
lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); TreeSelectionListener[] listeners = tree.getTreeSelectionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].valueChanged(e); | public void valueChanged(TreeSelectionEvent value0) { // TODO } | |
if (max.length() > 0) { | if ((max.length() > 0) || foundCompletion) { | public String complete(CommandLine partial) throws CompletionException { //System.out.println("completing \"" + partial + "\""); String max = ""; for (int i = 0; i < syntaxes.length; i++) { try { final String s = syntaxes[ i].complete(partial ... |
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException | public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm, int fullSize, int pageSize, int downCacheSize) throws JMSException | public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); } |
deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); | try { if (log.isTraceEnabled()) { log.trace("creating core destination for " + destName); } CoreDestination cd = getCoreDestinationInternal(isQueue, destName); if (cd != null) { throw new JMSException("Destination " + destName + " already deployed"); } long id; Long l = getIdForDestination(isQueue, destName); if (l ... | public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); } |
public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries) | public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries, SessionDelegate connectionConsumerSession) | public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries) { throw new IllegalStateException("This invocation should not be handled here!"); } |
public void cancelDeliveries(List ackInfos) | public void cancelDeliveries(List cancels) | public void cancelDeliveries(List ackInfos) { throw new IllegalStateException("This invocation should not be handled here!"); } |
public static Box layout(LayoutContext c, Box block, Content content) { | public static BlockBox layout(LayoutContext c, BlockBox block, Content content) { | public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); // save height incase fixed height int original_height = block.height; // do children's layout c.setExtents(new Rectangle(c.getExtents())); List... |
if (log.isTraceEnabled()) { log.trace("Adding delivery " + d + " to channel: " + channelID);} | public void add(Serializable channelID, Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); } Routable r = d.getRoutable(); if (!r.isReference()) { throw new IllegalStateException("Delivery must contain a message ... | |
if (log.isTraceEnabled()) { log.trace("There are " + count + " deliveries"); } | public List deliveries(Serializable channelID) throws Throwable { if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); } List result = new ArrayList(); Connection conn = ds.getConnection(); String sql = "SELECT MESSAGEID, STOREID FROM DELIVERIES " + ... | |
if (log.isTraceEnabled()) { log.trace("Dropping transacted messages for channel " + channelID); } | public void dropTransactedMessages(Serializable channelID, Serializable txID) throws SystemException { try { if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); } Connection conn = ds.getConnection(); String sql = "DELETE FROM TRANSACTION... | |
if (log.isTraceEnabled()) { log.trace("Enabling transacted messages for " + channelID); } | public void enableTransactedMessages(Serializable channelID, Serializable txID) throws SystemException { try { if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); } Connection conn = ds.getConnection(); Statement stat = conn.creat... | |
if (log.isTraceEnabled()) { log.trace("got " + count + " message refs"); } | public List messages(Serializable channelID) throws Throwable { if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); } List result = new ArrayList(); Connection conn = ds.getConnection(); String sql = "SELECT MESSAGEID, STOREID FROM MESSAGE_REFERENCES "... | |
if (log.isTraceEnabled()) { log.trace("Removing delivery " + d + " from channel: " + channelID);} | public boolean remove(Serializable channelID, Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("Current transaction: " + currentTransactionToString()); } Serializable messageID = d.getRoutable().getMessageID(); Connection conn = ds.getConnection(); String sql = "SELECT MESSA... | |
inline.whitespace = getWhitespace(c, node); | CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t... |
text = stripWhitespace(c, node, prev, text); | text = stripWhitespace(style, prev, text); | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t... |
public String getWhitespace(Context c, Node node) { Element e = null; if (node instanceof Element) { e = (Element) node; } else { e = (Element) node.getParentNode(); } String whitespace = c.css.getStyle(e).getStringProperty("white-space"); if (whitespace == null) { | public String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) { | public String getWhitespace(Context c, Node node) { Element e = null; if (node instanceof Element) { e = (Element) node; } else { e = (Element) node.getParentNode(); } String whitespace = c.css.getStyle(e).getStringProperty("white-space"); if (whitespa... |
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { | public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { | public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... |
String whitespace = getWhitespace(c, node); | String whitespace = getWhitespace(style); | public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... |
positionFixedChild(c,child_box); | public Box layoutChildren( Context c, Box box ) { //u.p("Layout.layoutChildren: " + box); Element elem = (Element)box.node; // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter( 0 ); // for each child NodeList nl = elem.getChildNodes()... | |
boolean addToGraph = false; | protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid... | |
addToGraph = true; | xReady = true; | protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid... |
addToGraph = true; | yReady = true; | protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid... |
if (addToGraph) | if (xReady && yReady) | protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid... |
log.debug("adding (" + x + ", " + y + ") to series"); | protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid... | |
sb.append("\n"); sb.append(" margin = " + this.margin +"\n"); sb.append(" border = " + this.border +"\n"); sb.append(" padding = " + this.padding +"\n"); | public String getTestString() { StringBuffer sb = new StringBuffer(); // type if ( this instanceof LineBox ) { sb.append( "line:" ); } else if ( this instanceof InlineBox ) { sb.append( "inline:" ); } else { sb.append( "box:" ); } // ... | |
public FlowView(Element element) | public FlowView(Element element, int axis) | public FlowView(Element element) { super(element); } |
super(element); | super(element, axis); strategy = sharedStrategy; | public FlowView(Element element) { super(element); } |
this.assignedID = maxAssigned++; | this.assignedID = CSSName.maxAssigned++; | private CSSName(String propName) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } } |
private static synchronized final CSSName addProperty(String propName) { | private final static synchronized CSSName addProperty( String propName ) { | private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; } |
public static final int countCSSNames() { return maxAssigned; | public final static int countCSSNames() { return CSSName.maxAssigned; | public static final int countCSSNames() { return maxAssigned; } |
CellFactory.createJoin(workflow, model, location); | CellFactory.createSplit(workflow, model, location); | public void actionPerformed(ActionEvent e) { CellFactory.createJoin(workflow, model, location); } |
BoxRendering.paint(c, body_box); | BoxRendering.paint(c, body_box, false); | protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ... |
return font.getLineMetrics( string, graphics.getFontRenderContext() ); | return new ScaledLineMetrics(font, font.getLineMetrics( string, graphics.getFontRenderContext() )); | public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ) { return font.getLineMetrics( string, graphics.getFontRenderContext() ); } |
void redeliver(Receiver receiver); | boolean redeliver(Receiver receiver); | void redeliver(Receiver receiver); |
int buttons = data[0] & 7; int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; | final int d0 = data[0] & 0xFF; final int d1 = data[1] & 0xFF; final int d2 = data[2] & 0xFF; final int buttons = d0 & BIT_BUTTON_MASK; final int x; final int y; if ((d0 & BIT_X_SIGN) != 0) { x = d1 - 256; } else { x = d1; | public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); } |
int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; | if ((d0 & BIT_Y_SIGN) != 0) { y = d2 - 256; } else { y = d2; | public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); } |
return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); | return new PointerEvent(buttons, x, -y, PointerEvent.RELATIVE); | public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); } |
public abstract DSAParams getParams(); | DSAParams getParams(); | public abstract DSAParams getParams(); |
} if (getId() == -1) { throw new InvalidWorkflowDescriptorException("Cannot use a step ID of -1 as it is a reserved value"); | public void validate() throws InvalidWorkflowDescriptorException { if ((commonActions.size() == 0) && (actions.size() == 0) && hasActions) { throw new InvalidWorkflowDescriptorException("Step '" + name + "' actions element must contain at least one action or common-action"); } Valida... | |
if (log.isTraceEnabled()) { log.trace("Creating ChannelSupport: " + channelID + " reliable?" + (pm != null)); } | protected ChannelSupport(Serializable channelID, MessageStore ms, PersistenceManager pm, TransactionManager tm) { this.channelID = channelID; this.ms = ms; this.tm = tm; if (pm == null) { state = new T... | |
Delivery newd = r.handle(this, old.getRoutable()); | Delivery newd = r.handle(this, routable); | public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ... |
if (log.isTraceEnabled()) { log.trace("receiver " + receiver + " handled " + routable + " and returned " + d); } | if (trace) { log.trace("receiver " + receiver + " handled " + routable + " and returned " + d); } | public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ... |
public void addColumn(TableColumn col) | public void addColumn(TableColumn column) | public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); } |
if (col == null) | if (column == null) | public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); } |
tableColumns.add(col); | tableColumns.add(column); column.addPropertyChangeListener(this); | public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); } |
protected void fireColumnSelectionChanged(ListSelectionEvent evt) | protected void fireColumnSelectionChanged(ListSelectionEvent e) | protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); } |
((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); | ((TableColumnModelListener) listeners[i]).columnSelectionChanged(e); | protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); } |
public TableColumn getColumn(int i) | public TableColumn getColumn(int columnIndex) | public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(i); } |
return (TableColumn) tableColumns.get(i); | return (TableColumn) tableColumns.get(columnIndex); | public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(i); } |
fireColumnAdded(new TableColumnModelEvent(this, i, j)); | fireColumnMoved(new TableColumnModelEvent(this, i, j)); | public void moveColumn(int i, int j) { int columnCount = getColumnCount(); if (i < 0 || i >= columnCount) throw new IllegalArgumentException("Index 'i' out of range."); if (j < 0 || j >= columnCount) throw new IllegalArgumentException("Index 'j' out of range."); Object column = tableColumns.rem... |
public void propertyChange(PropertyChangeEvent evt) | public void propertyChange(PropertyChangeEvent event) | public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); } |
if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) | if (event.getPropertyName().equals("width")) | public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); } |
public void removeColumn(TableColumn col) | public void removeColumn(TableColumn column) | public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); } |
int index = this.tableColumns.indexOf(col); | int index = this.tableColumns.indexOf(column); | public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); } |
tableColumns.remove(col); | column.removePropertyChangeListener(this); | public void removeColumn(TableColumn col) { int index = this.tableColumns.indexOf(col); if (index < 0) return; fireColumnRemoved(new TableColumnModelEvent(this, index, 0)); tableColumns.remove(col); invalidateWidthCache(); } |
public void setColumnMargin(int m) | public void setColumnMargin(int margin) | public void setColumnMargin(int m) { columnMargin = m; fireColumnMarginChanged(); } |
columnMargin = m; | columnMargin = margin; | public void setColumnMargin(int m) { columnMargin = m; fireColumnMarginChanged(); } |
selectionModel.removeListSelectionListener(this); | public void setSelectionModel(ListSelectionModel model) { if (model == null) throw new IllegalArgumentException(); selectionModel = model; selectionModel.addListSelectionListener(this); } | |
return ((ConnectionState)state.getParent()).getClient(); | return ((ConnectionState)state.getParent()).getRemotingConnection().getInvokingClient(); | protected Client getClient() { //Use the Client in the Connection's state return ((ConnectionState)state.getParent()).getClient(); } |
dispatcher.setDownloader("http", URLHandlerRegistry.getHttp(realm, host, username, passwd)); | URLHandler httpHandler = URLHandlerRegistry.getHttp(realm, host, username, passwd); dispatcher.setDownloader("http", httpHandler); dispatcher.setDownloader("https", httpHandler); | private static void configureURLHandler(String realm, String host, String username, String passwd) { URLHandlerDispatcher dispatcher = new URLHandlerDispatcher(); dispatcher.setDownloader("http", URLHandlerRegistry.getHttp(realm, host, username, passwd)); URLHandlerRegistry.setDefault(dispatche... |
} | viewport = scrollPane.getViewport(); verticalScrollBar = scrollPane.getVerticalScrollBar(); horizontalScrollBar = scrollPane.getHorizontalScrollBar(); verticalScrollBarPolicy = scrollPane.getVerticalScrollBarPolicy(); horizontalScrollBarPolicy = scrollPane.getHorizontalScrollBarPolicy(); lowerLeft = scrollPane.getCorne... | public void syncWithScrollPane(JScrollPane scrollPane) { // TODO } // syncWithScrollPane() |
sc.install(on, null, element); | ClassLoader cl = this.getClass().getClassLoader(); ObjectName loaderObjectName = null; if (cl instanceof UnifiedClassLoader3) { loaderObjectName = ((UnifiedClassLoader3)cl).getObjectName(); } sc.install(on, loaderObjectName, element); | private String createDestination(boolean isQueue, String name, String jndiName) throws Exception { // // TODO - THIS IS A TEMPORARY IMPLEMENTATION; WILL BE REPLACED WITH INTEGRATION-CONSISTENT ONE // String destType = isQueue ? "Queue" : "Topic"; String className = "org.jboss.jms.server.de... |
if (lengths == null || values == null || lengths.length > 16 || values.length > 256) throw new IllegalArgumentException("invalid length or values array"); for (int i = 0; i < lengths.length; i++) { if (lengths[i] < 0) throw new IllegalArgumentException("negative length"); } for (int i = 0; i < values.length; i++) { i... | this(checkLengths(lengths), checkValues(values, lengths), true); | public JPEGHuffmanTable(short[] lengths, short[] values) { if (lengths == null || values == null || lengths.length > 16 || values.length > 256) throw new IllegalArgumentException("invalid length or values array"); for (int i = 0; i < lengths.length; i++) { if (lengths[i] < 0) t... |
short[] lengthsCopy = new short[lengths.length]; System.arraycopy(lengths, 0, lengthsCopy, 0, lengths.length); return lengthsCopy; | return (short[]) lengths.clone(); | public short[] getLengths() { short[] lengthsCopy = new short[lengths.length]; System.arraycopy(lengths, 0, lengthsCopy, 0, lengths.length); return lengthsCopy; } |
short[] valuesCopy = new short[values.length]; System.arraycopy(values, 0, valuesCopy, 0, values.length); return valuesCopy; | return (short[]) values.clone(); | public short[] getValues() { short[] valuesCopy = new short[values.length]; System.arraycopy(values, 0, valuesCopy, 0, values.length); return valuesCopy; } |
public static boolean isRelative(Context c) { | private static boolean isRelative(Context c) { | public static boolean isRelative(Context c) { return c.getCurrentStyle().isIdent(CSSName.POSITION, IdentValue.RELATIVE); } |
securityStore = new SecurityMetadataStore(); | public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC... | |
txRepository = new TransactionRepository(); | public ServerPeer(String serverPeerID, String defaultQueueJNDIContext, String defaultTopicJNDIContext) throws Exception { this.serverPeerID = serverPeerID; this.defaultQueueJNDIContext = defaultQueueJNDIContext; this.defaultTopicJNDIContext = defaultTopicJNDIC... | |
String connFactoryID = connFactoryJNDIMapper.registerConnectionFactory(null, null); | int connFactoryID = connFactoryJNDIMapper.registerConnectionFactory(null, null); | private void createRecoverable() throws Exception { InitialContext ic = new InitialContext(); String connFactoryID = connFactoryJNDIMapper.registerConnectionFactory(null, null); XAConnectionFactory xaConnFactory = (XAConnectionFactory)connFactoryJNDIMapper.getConnectionFactory(connFactoryID)... |
mbeanServer.invoke(connectorName, "removeInvocationHandler", new Object[] {"JMS"}, new String[] {"java.lang.String"}); | private void initializeRemoting(MBeanServer mbeanServer) throws Exception { log.info("Getting invokerlocator for " + connectorName); String s = (String)mbeanServer.getAttribute(connectorName, "InvokerLocator"); locator = new InvokerLocator(s); //Note - There seems to be a bug (featu... | |
public synchronized javax.jms.ConnectionFactory getConnectionFactory(String connectionFactoryID) | public synchronized javax.jms.ConnectionFactory getConnectionFactory(int connectionFactoryID) | public synchronized javax.jms.ConnectionFactory getConnectionFactory(String connectionFactoryID) { return (javax.jms.ConnectionFactory)factories.get(connectionFactoryID); } |
return (javax.jms.ConnectionFactory)factories.get(connectionFactoryID); | return (javax.jms.ConnectionFactory)factories.get(Integer.valueOf(connectionFactoryID)); | public synchronized javax.jms.ConnectionFactory getConnectionFactory(String connectionFactoryID) { return (javax.jms.ConnectionFactory)factories.get(connectionFactoryID); } |
synchronized(consumers) { for(Iterator i = consumers.values().iterator(); i.hasNext(); ) { ((ServerConsumerDelegate)i.next()).remove(); } } | public void close() throws JBossJMSException { if (log.isTraceEnabled()) log.trace("ServerSessionDelegate.close()"); //The traversal of the children is done in the ClosedInterceptor } | |
log.info("Creating pm"); | protected JDBCPersistenceManager createPM() throws Exception { log.info("Creating pm"); try { cm = new JDBCChannelMapper(sc.getDataSource(), sc.getTransactionManager()); JDBCPersistenceManager pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionMana... | |
valid = new Boolean(result); | valid = Boolean.valueOf(result); | public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT, KAT_PT); } valid = new Boolean(result); } return valid.booleanValue(); } |
if (trace) { log.trace(this + ": attempting to add receiver " + r); } | if (trace) { log.trace(this + " attempting to add receiver " + r); } | public boolean add(Receiver r) { if (trace) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (trace) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; } |
config.load(getClass().getResource("/osworkflow-jdbc.xml")); | config.load(getClass().getResource("/samples/invalid/invalid-datasource.xml")); | public void testStoreException() throws Exception { Configuration config = new DefaultConfiguration(); config.load(getClass().getResource("/osworkflow-jdbc.xml")); Workflow workflow = new BasicWorkflow("testuser"); workflow.setConfiguration(config); //correct behaviour is to get a... |
workflow.initialize(url.toString(), 1, new HashMap()); | workflow.initialize(url.toString(), 100, new HashMap()); | public void testStoreException() throws Exception { Configuration config = new DefaultConfiguration(); config.load(getClass().getResource("/osworkflow-jdbc.xml")); Workflow workflow = new BasicWorkflow("testuser"); workflow.setConfiguration(config); //correct behaviour is to get a... |
public Class getCategory() | public final Class getCategory() | public Class getCategory() { return Media.class; } |
public String getName() | public final String getName() | public String getName() { return "media"; } |
LinkedList queue = new LinkedList(); while (true) { | List mesList = new ArrayList(); outer: while (true) { | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
break; | break outer; | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
if (queue.isEmpty()) | if (mesList.isEmpty()) | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
for (int i = 0; i < maxMessages; i++) | inner: for (int i = 0; i < maxMessages; i++) | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
Message m = null; if (!closed) { m = cons.receive(-1); } | Message m = cons.receive(-1); | public void run() { if (trace) { log.trace("running connection consumer"); } try { LinkedList queue = new LinkedList(); while (true) { if (closed) { if (trace) { log.trace("Connection consumer is closed, breaking"); } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.