bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { ... | 48,765 |
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; try { conn = ds.getConnection();... | 48,766 |
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | 48,767 |
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | 48,768 |
public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | public boolean removeReference(Serializable channelID, MessageReference ref) throws Exception { if (log.isTraceEnabled()) { log.trace("Removing " + ref + " from channel " + channelID); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(... | 48,769 |
public Message retrieveMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn ... | public Message retrieveMessage(Serializable messageID) throws Exception { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { Message m = null; int referenceCount = 0; conn ... | 48,770 |
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | 48,771 |
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | publicListretrievePreparedTransactions()throwsException{if(!storeXid){returnCollections.EMPTY_LIST;}Connectionconn=null;Statementst=null;ResultSetrs=null;TransactionWrapperwrap=newTransactionWrapper();try{Listtransactions=newArrayList();conn=ds.getConnection();st=conn.createStatement();rs=st.executeQuery(selectXATransa... | 48,772 |
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | 48,773 |
public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | public List retrievePreparedTransactions() throws Exception { if (!storeXid) { return Collections.EMPTY_LIST; } Connection conn = null; Statement st = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { List transac... | 48,774 |
public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ... | public void rollbackTx(Transaction tx) throws Exception { if (log.isTraceEnabled()) { log.trace("Rolling back transaction:" + tx); } Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ... | 48,775 |
public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | public void storeMessage(Message m) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); String id = (String)m.getMessageID(); try { conn = ds.getConnection(); // get the reference count fr... | 48,776 |
public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break... | public String paramString() { StringBuffer s = new StringBuffer(); switch (id) { case MOUSE_CLICKED: s.append("MOUSE_CLICKED,("); break; case MOUSE_PRESSED: s.append("MOUSE_PRESSED,("); break; case MOUSE_RELEASED: s.append("MOUSE_RELEASED,("); break... | 48,778 |
public SwingContainerPeer(Container awtCont) { init(awtCont, null); } | public SwingContainerPeer(Component awtCont) { init(awtCont, null); } | 48,780 |
public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; } | public Insets getInsets() { Insets retVal; if (swingComponent != null) retVal = swingComponent.getJComponent().getInsets(); else retVal = new Insets(0, 0, 0, 0); return retVal; } | 48,781 |
public Component getComponentAt(Point p) { return getComponentAt (p.x, p.y); } | public Component getComponentAt(int x, int y) { return getComponentAt (p.x, p.y); } | 48,784 |
public Component getComponentAt(Point p) { return getComponentAt (p.x, p.y); } | public Component getComponentAt(Point p) { return getComponentAt (p.x, p.y); } | 48,785 |
public void tearDown() throws Exception { ServerManagement.deInit(); super.tearDown(); } | public void tearDown() throws Exception { super.tearDown(); } | 48,786 |
public void componentResized(ComponentEvent e) { Uu.p("componentResized() " + this.getSize()); Uu.p("viewport = " + enclosingScrollPane.getViewport().getSize()); if (doc != null) RenderQueue.getInstance().dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, ... | public void componentResized(ComponentEvent e) { Uu.p("componentResized() " + this.getSize()); Uu.p("viewport = " + enclosingScrollPane.getViewport().getSize()); if (doc != null) queue.dispatchLayoutEvent(new ReflowEvent(ReflowEvent.CANVAS_RESIZED, enclosingScrollP... | 48,787 |
public void init() { // Initialise the applets panel. setLayout(new BorderLayout()); setBackground(SystemColor.control); // Layout the left side top inner panel. m_pnlLeftTop.add(BorderLayout.NORTH, m_pnlGfxCmds); m_pnlLeftTop.add(BorderLayout.SOUTH, m_pnlFlowCmds); // Layout the left side panel. m_pnlLeft.a... | public void init() { // Initialise the applets panel. setLayout(new BorderLayout()); setBackground(SystemColor.control); // Layout the left side top inner panel. m_pnlLeftTop.add(BorderLayout.NORTH, m_pnlGfxCmds); m_pnlLeftTop.add(BorderLayout.SOUTH, m_pnlFlowCmds); // Layout the left side panel. m_pnlLeft.a... | 48,788 |
public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m1 = new JBossMessage(123); JBossMessage m2 = new JBossMessage(456); JBossMessage m3 = new JBossMessage(789); List msgs = new ArrayList(); MessagePr... | public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m1 = new JBossMessage(123); JBossMessage m2 = new JBossMessage(456); JBossMessage m3 = new JBossMessage(789); List msgs = new ArrayList(); MessagePr... | 48,789 |
public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m1 = new JBossMessage(123); JBossMessage m2 = new JBossMessage(456); JBossMessage m3 = new JBossMessage(789); List msgs = new ArrayList(); MessagePr... | public void testCallback() throws Exception { int consumerID = 12345678; JBossMessage m1 = new JBossMessage(123); JBossMessage m2 = new JBossMessage(456); JBossMessage m3 = new JBossMessage(789); List msgs = new ArrayList(); MessagePr... | 48,790 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); SimpleMetaData invocationMetaData = invocation.getMetaData(); if (... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); SimpleMetaData invocationMetaData = invocation.getMetaData(); if (... | 48,793 |
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | public JMSRemotingConnection(String serverLocatorURI) throws Throwable { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | 48,796 |
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | 48,797 |
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | 48,798 |
public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | public JMSRemotingConnection(String serverLocatorURI) throws Exception { id = new GUID().toString(); thisAddress = InetAddress.getLocalHost().getHostAddress(); bindPort = PortUtil.findFreePort("localhost"); serverLocator = new InvokerLocator(serverLocatorURI); isMul... | 48,799 |
public void close() { callbackServer.stop(); client.disconnect(); } | public void close() { callbackServer.stop(); client.disconnect(); } | 48,800 |
public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { // Uu.p("calcing new height of line"); if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y; } if (new_inline.baseline > curr_line.baseline)... | public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { // Uu.p("calcing new height of line"); if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y; } if (new_inline.baseline > curr_line.baseline)... | 48,802 |
public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { // Uu.p("calcing new height of line"); if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y; } if (new_inline.baseline > curr_line.baseline)... | public static void adjustLineHeight(LineBox curr_line, InlineBox new_inline) { // Uu.p("calcing new height of line"); if (new_inline.height + new_inline.y > curr_line.height) { curr_line.height = new_inline.height + new_inline.y; } if (new_inline.baseline > curr_line.baseline)... | 48,803 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox curr_line, int sta... | 48,804 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu... | 48,805 |
private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu... | private static InlineBox calculateInline(Context c, Content content, int avail, int max_width, InlineBox prev, InlineBox prev_align, boolean isFirstLetter, CascadedStyle firstLetterStyle, CascadedStyle firstLineStyle, LineBox cu... | 48,806 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyl... | 48,807 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | 48,808 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | 48,809 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | 48,810 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | 48,811 |
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; Border border = c.getCurrentStyle().getBorderWidth(); Border margin = c.getCurrentSt... | 48,812 |
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, l... | private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last, int minHeight) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_sa... | 48,813 |
private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, l... | private static void saveLine(LineBox line_to_save, CalculatedStyle style, LineBox prev_line, int width, int x, Context c, Box block, boolean last) { c.setFirstLine(false); // account for text-align TextAlign.adjustTextAlignment(c, style, line_to_save, width, x, l... | 48,814 |
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP; else eOffset = 0; Rectangl... | public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = editingIcon.getIconWidth(); else eOffset = 0; Rectangle bounds = getBounds(); Com... | 48,816 |
public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP; else eOffset = 0; Rectangl... | public void doLayout() { // The offset of the editing component. int eOffset; // Move the component to the left, leaving room for the editing icon: if (editingIcon != null) eOffset = TREE_ICON_GAP + editingIcon.getIconWidth() + ICON_TEXT_GAP; else eOffset = 0; Rectangl... | 48,817 |
public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. editingIcon.paintIcon(this, g, TREE_ICON_GAP, 0); } super.paint(g); } | public void paint(Graphics g) { if (editingIcon != null) { // From the previous version, the left margin is taken as half // of the icon width. editingIcon.paintIcon(this, g, 0, 0); } super.paint(g); } | 48,818 |
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "... | public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; try { conn = getConnection(); String sql = "INSERT INTO " + currentTable + " (" + stepId... | 48,819 |
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "... | public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "... | 48,820 |
public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "... | public Step createCurrentStep(long entryId, int wfStepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO "... | 48,821 |
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e... | public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("e... | 48,822 |
public BrowserJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, int numMessages, String selector) { super (slaveURL, jndiProperties, destinationName, connectionFactoryJndiName, numConnections, ... | public BrowserJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, int numMessages, long timeToStart, String selector) { super (slaveURL, jndiProperties, destinationName, connectionFactoryJndiName, numCon... | 48,823 |
public BrowserJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, int numMessages, String selector) { super (slaveURL, jndiProperties, destinationName, connectionFactoryJndiName, numConnections, ... | public BrowserJob(String slaveURL, Properties jndiProperties, String destinationName, String connectionFactoryJndiName, int numConnections, int numSessions, int numMessages, String selector) { super (slaveURL, jndiProperties, destinationName, connectionFactoryJndiName, numConnections, ... | 48,824 |
protected void throw4(InputStream in, String id) throws MARSHAL, InvalidName, CannotProceed, NotFound { if (id.equals(NotFoundHelper.id())) throw NotFoundHelper.read(in); else if (id.equals(CannotProceedHelper.id())) throw CannotProceedHelper.read(in); else if (id.equals(InvalidNam... | void throw4(InputStream in, String id) throws MARSHAL, InvalidName, CannotProceed, NotFound { if (id.equals(NotFoundHelper.id())) throw NotFoundHelper.read(in); else if (id.equals(CannotProceedHelper.id())) throw CannotProceedHelper.read(in); else if (id.equals(InvalidNameHelper.id... | 48,825 |
protected void throw5(InputStream in, String id) throws MARSHAL, AlreadyBound, InvalidName, CannotProceed, NotFound { if (id.equals(AlreadyBoundHelper.id())) throw AlreadyBoundHelper.read(in); else throw4(in, id); } | void throw5(InputStream in, String id) throws MARSHAL, AlreadyBound, InvalidName, CannotProceed, NotFound { if (id.equals(AlreadyBoundHelper.id())) throw AlreadyBoundHelper.read(in); else throw4(in, id); } | 48,826 |
public Class getCategory() { return JobState.class; } | public final Class getCategory() { return JobState.class; } | 48,827 |
public String getName() { return "job-state"; } | public final String getName() { return "job-state"; } | 48,828 |
protected void addToNameMap(Binding binding) { Map nameMap = (Map)nameMaps.get(binding.getNodeId()); if (nameMap == null) { nameMap = new LinkedHashMap(); nameMaps.put(binding.getNodeId(), nameMap); } nameMap.put(binding.getQueue().getName(), binding); ... | protected void addToNameMap(Binding binding) { Map nameMap = (Map)nameMaps.get(new Integer(binding.getNodeId())); if (nameMap == null) { nameMap = new LinkedHashMap(); nameMaps.put(binding.getNodeId(), nameMap); } nameMap.put(binding.getQueue().getName(... | 48,829 |
protected void addToNameMap(Binding binding) { Map nameMap = (Map)nameMaps.get(binding.getNodeId()); if (nameMap == null) { nameMap = new LinkedHashMap(); nameMaps.put(binding.getNodeId(), nameMap); } nameMap.put(binding.getQueue().getName(), binding); ... | protected void addToNameMap(Binding binding) { Map nameMap = (Map)nameMaps.get(binding.getNodeId()); if (nameMap == null) { nameMap = new LinkedHashMap(); nameMaps.put(new Integer(binding.getNodeId()), nameMap); } nameMap.put(binding.getQueue().getName(... | 48,830 |
public Binding bindQueue(String condition, Queue queue) throws Exception { if (queue.getName() == null) { throw new IllegalArgumentException("Queue name is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); } l... | public Binding bindQueue(String condition, Queue queue) throws Exception { if (queue.getName() == null) { throw new IllegalArgumentException("Queue name is null"); } if (condition == null) { throw new IllegalArgumentException("Condition is null"); } l... | 48,831 |
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); Queue queue; if (nodeId.equals(this.nodeId)) { QueuedEx... | protected Binding createBinding(int nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); Queue queue; if (nodeId.equals(this.nodeId)) { QueuedExecu... | 48,832 |
protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); Queue queue; if (nodeId.equals(this.nodeId)) { QueuedEx... | protected Binding createBinding(String nodeId, String condition, String queueName, long channelId, String filterString, boolean durable) throws Exception { Filter filter = filterFactory.createFilter(filterString); Queue queue; if (nodeId == this.nodeId) { QueuedExecuto... | 48,833 |
protected boolean deleteBinding(String queueName) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_BINDING")... | protected boolean deleteBinding(String queueName) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("DELETE_BINDING")... | 48,834 |
public Binding getBindingForQueueName(String queueName) throws Exception { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } lock.readLock().acquire(); try { Map nameMap = (Map)nameMaps.get(this.nodeId); ... | public Binding getBindingForQueueName(String queueName) throws Exception { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } lock.readLock().acquire(); try { Map nameMap = (Map)nameMaps.get(new Integer(this.nodeId)); ... | 48,835 |
protected Map getDefaultDDLStatements() { Map map = new LinkedHashMap(); map.put("CREATE_POSTOFFICE_TABLE", "CREATE TABLE JMS_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID VARCHAR(255)," + "QUEUE_NAME VARCHAR(1023), CONDITION VARCHAR(1023), " + "SELECTOR VARCHAR... | protected Map getDefaultDDLStatements() { Map map = new LinkedHashMap(); map.put("CREATE_POSTOFFICE_TABLE", "CREATE TABLE JMS_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID INTEGER," + "QUEUE_NAME VARCHAR(1023), CONDITION VARCHAR(1023), " + "SELECTOR VARCHAR(1023... | 48,836 |
protected void insertBinding(Binding binding) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT... | protected void insertBinding(Binding binding) throws Exception { Connection conn = null; PreparedStatement ps = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn = ds.getConnection(); ps = conn.prepareStatement(getSQLStatement("INSERT... | 48,837 |
protected void loadBindings() throws Exception { lock.writeLock().acquire(); log.info("loading bindings"); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn =... | protected void loadBindings() throws Exception { lock.writeLock().acquire(); log.info("loading bindings"); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; TransactionWrapper wrap = new TransactionWrapper(); try { conn =... | 48,838 |
protected Binding removeBinding(String nodeId, String queueName) { Binding binding = removeFromNameMap(nodeId, queueName); removeFromConditionMap(binding); return binding; } | protected Binding removeBinding(int nodeId, String queueName) { Binding binding = removeFromNameMap(nodeId, queueName); removeFromConditionMap(binding); return binding; } | 48,839 |
protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep... | protected Binding removeFromNameMap(int nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExceptio... | 48,840 |
protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep... | protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(new Integer(nodeId)); if (nameMap == null) { throw new Illegal... | 48,841 |
protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep... | protected Binding removeFromNameMap(String nodeId, String queueName) { if (queueName == null) { throw new IllegalArgumentException("Queue name is null"); } Map nameMap = (Map)nameMaps.get(nodeId); if (nameMap == null) { throw new IllegalArgumentExcep... | 48,842 |
public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition key is null"); ... | public boolean route(MessageReference ref, String condition, Transaction tx) throws Exception { if (ref == null) { throw new IllegalArgumentException("Message reference is null"); } if (condition == null) { throw new IllegalArgumentException("Condition key is null"); ... | 48,843 |
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin... | public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin... | 48,845 |
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin... | public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin... | 48,846 |
public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin... | public void start() throws Exception { try { configureAddress(); toUnbindAtExit.clear(); jndiNamingFactory = System.getProperty("java.naming.factory.initial"); //TODO: need to think more about this; if I don't do it, though, bind() fails because it tries to use "java.namin... | 48,847 |
private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... | private void startManagedConnectionFactory(ObjectName on, String connectionURL, String driverClass, String userName) throws Exception { LocalManagedConnectionFactory mcf = new... | 48,848 |
private DurableSubscription internalCreateDurableSubscription(String clientID, String subName, String topicName, String selector) throws JMSException { Topic topic = (Topic)serverPeer.getDestinationManager().getCoreDestination(false, topi... | private DurableSubscription internalCreateDurableSubscription(String clientID, String subName, String topicName, String selector, boolean noLocal) throws JMSException { Topic topic = (Topic)serverPeer.getDestinationManager().getCoreDestin... | 48,850 |
private DurableSubscription internalCreateDurableSubscription(String clientID, String subName, String topicName, String selector) throws JMSException { Topic topic = (Topic)serverPeer.getDestinationManager().getCoreDestination(false, topi... | private DurableSubscription internalCreateDurableSubscription(String clientID, String subName, String topicName, String selector) throws JMSException { Topic topic = (Topic)serverPeer.getDestinationManager().getCoreDestination(false, topi... | 48,851 |
public float getPreferredSpan(int axis) { // TODO: Implement me. return 0F; } | public float getPreferredSpan(int axis) { // TODO: Implement me. Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; float span = painter.getSpan(this, el.getSt... | 48,852 |
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // Implement me. return null; } | public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // Implement me. GlyphPainter p = getGlyphPainter(); return p.modelToView(this, pos, b, a); } | 48,853 |
public void paint(Graphics g, Shape a) { // TODO: Implement me. } | Element el = getElement(); checkPainter(); getGlyphPainter().paint(this, g, a, el.getStartOffset(), el.getEndOffset()); Element el = getElement(); checkPainter(); getGlyphPainter().paint(this, g, a, el.getStartOffset(), el.getEndOffset()); publicElement el = getElement(); checkPainter(); getGlyphPainter().paint(this, g... | 48,854 |
public int viewToModel(float x, float y, Shape a, Position.Bias b) { // FIXME: Implement this properly. return 0; } | public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: Implement this properly. return 0; } | 48,855 |
public int viewToModel(float x, float y, Shape a, Position.Bias b) { // FIXME: Implement this properly. return 0; } | public int viewToModel(float x, float y, Shape a, Position.Bias b) { // FIXME: Implement this properly. return 0; } | 48,856 |
public InvalidInputException(Object o) { if (o instanceof InvalidInputException) { InvalidInputException iie = (InvalidInputException) o; errors = iie.errors; genericErrors = iie.genericErrors; } else if (o instanceof Map) { errors = (Map) o; } else i... | public InvalidInputException(Object o) { if (o instanceof InvalidInputException) { InvalidInputException iie = (InvalidInputException) o; errors = iie.errors; genericErrors = iie.genericErrors; } else if (o instanceof Map) { errors = (Map) o; } else i... | 48,858 |
static void fillMetalPattern2D(Graphics2D g2d, int x, int y, int w, int h, Color light, Color dark) { if (pattern2D == null || !darkColor.equals(dark) || !lightColor.equals(light)) initializePattern(light, dark); // Prepare the texture. TexturePaint texture = new T... | static void fillMetalPattern2D(Graphics2D g2d, int x, int y, int w, int h, Color light, Color dark) { if (pattern2D == null || !darkColor.equals(dark) || !lightColor.equals(light)) initializePattern(light, dark); // Prepare the texture. TexturePaint texture = new T... | 48,859 |
static void initializePattern(Color light, Color dark) { pattern2D = new BufferedImage(4, 4, BufferedImage.TYPE_INT_RGB); lightColor = light; darkColor = dark; Graphics g = pattern2D.getGraphics(); g.setColor(light); g.fillRect(0, 0, 1, 1); g.fillRect(2, 2, 1, 1); g.setColor(dark); g.fillR... | static void initializePattern(Color light, Color dark) { pattern2D = new BufferedImage(4, 4, BufferedImage.TYPE_INT_ARGB); lightColor = light; darkColor = dark; Graphics g = pattern2D.getGraphics(); g.setColor(light); g.fillRect(0, 0, 1, 1); g.fillRect(2, 2, 1, 1); g.setColor(dark); g.fill... | 48,860 |
public JBossMessageProducer(ProducerDelegate delegate) { this.delegate = delegate; deliveryMode = DeliveryMode.PERSISTENT; isMessageIDDisabled = false; isTimestampDisabled = false; priority = 4; } | public JBossMessageProducer(ProducerDelegate delegate) { this.delegate = delegate; deliveryMode = DeliveryMode.PERSISTENT; isMessageIDDisabled = false; isTimestampDisabled = false; priority = 4; } | 48,861 |
public JBossMessageProducer(ProducerDelegate delegate) { this.delegate = delegate; deliveryMode = DeliveryMode.PERSISTENT; isMessageIDDisabled = false; isTimestampDisabled = false; priority = 4; } | public JBossMessageProducer(ProducerDelegate delegate) { this.delegate = delegate; deliveryMode = DeliveryMode.PERSISTENT; isMessageIDDisabled = false; isTimestampDisabled = false; priority = 4; } | 48,862 |
public void close() throws JMSException { throw new NotYetImplementedException(); } | public void close() throws JMSException { } | 48,863 |
protected void configure(Message m, int deliveryMode, int priority, long timeToLive) throws JMSException { m.setJMSDeliveryMode(deliveryMode); if (isTimestampDisabled) { m.setJMSTimestamp(0l); } else { m.setJMSTimestamp(System.currentTimeMillis()); } ... | protected void configure(Message m, int deliveryMode, int priority, long timeToLive, Destination dest) throws JMSException { m.setJMSDeliveryMode(deliveryMode); if (isTimestampDisabled) { m.setJMSTimestamp(0l); } else { m.setJMSTimestamp(System.currentTimeMilli... | 48,864 |
public Destination getDestination() throws JMSException { throw new NotYetImplementedException(); } | public Destination getDestination() throws JMSException { return destination; } | 48,866 |
public synchronized Object invoke(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (trace) { log.trace("invoking " + methodName + " on server"); } SimpleMetaData md = mi.getMetaData(); md.addMetaD... | public synchronized Object invoke(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if (trace) { log.trace("invoking " + methodName + " on server"); } SimpleMetaData md = mi.getMetaData(); md.addMetaD... | 48,867 |
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 48,868 |
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 48,869 |
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 48,870 |
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 48,871 |
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 48,872 |
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockForm... | 48,873 |
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 48,874 |
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 48,875 |
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 48,876 |
private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | private static CellBox layoutCell(Context c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 48,877 |
private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca... | private static RowBox layoutRow(Context c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); Casca... | 48,878 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.