bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void installUI(final JComponent c) { super.installUI(c); textColor = new Color(0,0,0); disabledTextColor = new Color(130, 130, 130); pressedBackgroundColor = new Color(150,150,150); pressedBackgroundColor = new Color(150,150,150); normalBackgroundColor = new Color(192,192,192... | public void installUI(final JComponent c) { super.installUI(c); textColor = new Color(0,0,0); disabledTextColor = new Color(130, 130, 130); pressedBackgroundColor = new Color(150,150,150); pressedBackgroundColor = new Color(150,150,150); normalBackgroundColor = new Color(192,192,192... | 50,925 |
protected void paintButtonNormal(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(normalBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); } | protected void paintButtonNormal(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(normalBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); } | 50,926 |
protected void paintButtonPressed(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(pressedBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); } | protected void paintButtonPressed(Graphics g, JComponent b) { Dimension size = b.getSize(); g.setColor(pressedBackgroundColor); g.fillRect(1,1,size.width-2, size.height-2); } | 50,927 |
protected void paintFocus(Graphics g, JComponent c, Rectangle vr, Rectangle tr, Rectangle ir) { } | protected void paintFocus(Graphics g, JComponent c, Rectangle vr, Rectangle tr, Rectangle ir) { } | 50,928 |
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y; System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { /... | protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y; System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { /... | 50,929 |
protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y; System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { /... | protected void paintIcon(Graphics g, JComponent c, Rectangle iconRect) { AbstractButton b = (AbstractButton) c; if (b.getIcon() != null) { int x = iconRect.x; int y = iconRect.y; System.out.println("WE HAVE AN ICON: " + b.getIcon()); b.getIcon().paintIcon(c, g, x, y); } else { /... | 50,930 |
protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); g.setColor(c.isEnabled() ? textColor : disabledTextColor); BasicGraphicsUtils.drawString(g, te... | protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); g.setColor(c.isEnabled() ? textColor : disabledTextColor); BasicGraphicsUtils.drawString(g, te... | 50,931 |
private synchronized void checkMarshallers() { if (checked) { return; } //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. try { SerializationStreamFactory.setManagerClassName("jms", "... | private synchronized void checkMarshallers() { if (checked) { return; } //We explicitly associate the datatype "jms" with our customer SerializationManager //This is vital for performance reasons. try { SerializationStreamFactory.setManagerClassName("jms", "... | 50,932 |
public void paintChildren(Context c, Box box) { if (box.isAnonymous()) { return; } //TODO: wouldn't the box itself know if it was block layout? if (LayoutUtil.isBlockLayout(box.getElement(), c)) { super.paintChildren(c, box); } } | public void paintChildren(Context c, Box box) { if (box.isAnonymous()) { return; } //TODO: wouldn't the box itself know if it was block layout? if (box instanceof BlockBox) { super.paintChildren(c, box); } } | 50,933 |
public void paintComponent(Context c, Box box) { if (box.isAnonymous()) { paintInlineContext(c, box); return; } //TODO: wouldn't the box itself know if it contained a block layout? if (LayoutUtil.isBlockLayout(box.getElement(), c)) { super.paintComponent(... | public void paintComponent(Context c, Box box) { if (box.isAnonymous()) { paintInlineContext(c, box); return; } //TODO: wouldn't the box itself know if it contained a block layout? if (box.getContent() != null && !(box.getContent() instanceof TextContent)) { ... | 50,934 |
private void restyleChildren(Context ctx, Box box) { for (int i = 0; i < box.getChildCount(); i++) { Box child = box.getChild(i); if (child.hasNode()) { Layout lt = ctx.getLayout(child.getRealElement()); if (lt instanceof InlineLayout) { ... | private void restyleChildren(Context ctx, Box box) { for (int i = 0; i < box.getChildCount(); i++) { Box child = box.getChild(i); if (child.hasNode()) { Layout lt = ctx.getLayout(child.getRealElement()); if (lt instanceof InlineLayout) { ... | 50,935 |
public void testInvalidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testInvalidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | 50,936 |
public void testInvalidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testInvalidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) { conn.close(); } } ... | 50,937 |
public void testInvalidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testInvalidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("nobody", "nobody"); assertFalse(canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | 50,938 |
public void testValidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testValidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | 50,939 |
public void testValidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testValidTopicPublisher() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canWriteDestination(conn, testTopic)); } finally { if (conn != null) { conn.close(); } } ... | 50,940 |
public void testValidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testValidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | 50,941 |
public void testValidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) conn.close(); } } | public void testValidTopicSubscriber() throws Exception { Connection conn = null; try { conn = cf.createConnection("john", "needle"); assertTrue(this.canReadDestination(conn, testTopic)); } finally { if (conn != null) { conn.close(); } } } | 50,942 |
public static void prepBox(Context c, InlineTextBox box, InlineBox prev_align, Font font) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line if... | public static void prepBox(Context c, InlineTextBox box, InlineBox prev_align, Font font) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line if... | 50,943 |
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ServerConsumerDelegate[" + id + "]"); this.... | ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ServerConsumerDelegate[" + id + "]"); this.... | 50,944 |
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ServerConsumerDelegate[" + id + "]"); this.... | ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ServerConsumerDelegate[" + id + "]"); this.... | 50,945 |
public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (... | public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (... | 50,946 |
public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (... | public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (... | 50,947 |
public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (... | public synchronized Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace("Attempting to handle ref: " + reference.getMessageID()); } if (!wantReference()) { return null; } try { if (... | 50,948 |
Message getMessageNow() throws JMSException; | Message getMessageNow() throws JMSException; | 50,949 |
protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); b.setMargin(UIManager.getInsets(... | protected void installDefaults(AbstractButton b) { String prefix = getPropertyPrefix(); LookAndFeel.installColorsAndFont(b, prefix + "background", prefix + "foreground", prefix + "font"); LookAndFeel.installBorder(b, prefix + "border"); b.setMargin(UIManager.getInsets(... | 50,950 |
void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons); | void addAsfMessage(Message m, String consumerID, ConsumerDelegate cons); | 50,951 |
void postDeliver(String messageID, String receiverID) throws JMSException; | void postDeliver(String messageID, String receiverID) throws JMSException; | 50,952 |
void preDeliver(String messageID, String receiverID) throws JMSException; | void preDeliver(String messageID, String receiverID) throws JMSException; | 50,953 |
ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint... | ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint... | 50,954 |
ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint... | ServerConsumerEndpoint(int id, Channel channel, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; this.channel = channel; this.sessionEndpoint... | 50,955 |
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (accept) { ... | public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (accept) { ... | 50,956 |
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects " + Util.guidToString(ref... | public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects " + Util.guidToString(ref... | 50,957 |
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ... | void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ... | 50,958 |
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ... | void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ... | 50,959 |
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | public static void prepBox(Context c, InlineTextBox box, InlineBox prev_align) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line if ( prev_ali... | 50,960 |
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); // use the prev_align to calculate the Xx if not at start of // new line if ( prev_align != null && !pre... | 50,961 |
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | 50,962 |
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | 50,963 |
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | 50,964 |
public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | public static void prepBox( Context c, InlineTextBox box, InlineBox prev_align, Font font ) { //Uu.p("box = " + box); //Uu.p("prev align = " + prev_align); CalculatedStyle style = c.getCurrentStyle(); // use the prev_align to calculate the Xx if not at start of // new line ... | 50,965 |
public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... | public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... | 50,966 |
public static String subordinateToString(Serializable category, Serializable subordinateID, Address address) { StringBuffer sb = new StringBuffer(); sb.append(category).append(":"); sb.append(subordinateID).append(":"); sb.append(address); r... | public static String subordinateToString(Serializable category, Serializable subordinateID, Address address) { StringBuffer sb = new StringBuffer(); sb.append(category).append(":"); sb.append(subordinateID).append(":"); sb.append(address); r... | 50,967 |
public static String subordinateToString(Serializable category, Serializable subordinateID, Address address) { StringBuffer sb = new StringBuffer(); sb.append(category).append(":"); sb.append(subordinateID).append(":"); sb.append(address); r... | public static String subordinateToString(Serializable category, Serializable subordinateID, Address address) { StringBuffer sb = new StringBuffer(); sb.append(category).append(":"); sb.append(Util.guidToString((String)subordinateID)).append(":"); sb.ap... | 50,968 |
public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non... | public void testNonRecoverableMessageStore_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable stor... | 50,969 |
public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // non-recoverable store, n... | public void testNonRecoverableMessageStore_1_1() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable st... | 50,970 |
public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i... | public void testNonRecoverableMessageStore_2() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(i... | 50,971 |
public void testNonRecoverableMessageStore_3() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (ms.acceptReliableMessages()) { // we only test message stores that do not accept reliable message return;... | public void testNonRecoverableMessageStore_3() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (ms.acceptReliableMessages()) { // we only test message stores that do not accept reliable message return;... | 50,972 |
public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | public void testNonRecoverableMessageStore_4() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | 50,973 |
public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | public void testNonRecoverableMessageStore_5() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | 50,974 |
public void testNonRecoverableMessageStore_6() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | public void testNonRecoverableMessageStore_6() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | 50,975 |
public void testNonRecoverableMessageStore_7() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | public void testNonRecoverableMessageStore_7() throws Exception { if (ms.isRecoverable()) { // we only test non-recoverable message stores return; } if (!ms.acceptReliableMessages()) { // we only test message stores that accept reliable message return; ... | 50,976 |
public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable ... | public void testRecoverableMessageStore_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-rel... | 50,977 |
public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliabl... | public void testRecoverableMessageStore_1_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", false, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-r... | 50,978 |
public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | public void testRecoverableMessageStore_2() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | 50,979 |
public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable m... | public void testRecoverableMessageStore_3() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-reli... | 50,980 |
public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // recoverable store, non-reliable... | public void testRecoverableMessageStore_3_1() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // recoverable store, non-re... | 50,981 |
public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | public void testRecoverableMessageStore_4() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message[] m = new Message[NUMBER_OF_MESSAGES]; MessageReference[] refs = new MessageReference[NUMBER_OF_MESSAGES]; for(int i =... | 50,982 |
public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliab... | public void testRecoverableMessageStore_6() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non-... | 50,983 |
public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, 9, headers, "payload"); // non-recoverable store, non-reliab... | public void testRecoverableMessageStore_7() throws Exception { if (!ms.isRecoverable()) { // we only test recoverable message stores return; } Message m = MessageFactory.createMessage("message0", true, 777l, 888l, (byte)9, headers, "payload"); // non-recoverable store, non-... | 50,984 |
protected Message createForeignMessage() throws Exception { SimpleJMSMessage m = new SimpleJMSMessage(); log.debug("creating JMS Message type " + m.getClass().getName()); return m; } | protected Message createForeignMessage() throws Exception { SimpleJMSMessage m = new SimpleJMSMessage(); log.debug("creating JMS Message type " + m.getClass().getName()); return m; } | 50,985 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Message m) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null)... | 50,987 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | 50,988 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | 50,989 |
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("message " + r + " is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null... | 50,990 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | protected void remove(String messageId, boolean reliable) throws Exception { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID(... | 50,991 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | public void remove(MessageReference ref) throws Throwable { super.remove(messageId, reliable); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()... | 50,992 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (reliable) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (log.isTra... | 50,993 |
public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | public void remove(MessageReference ref) throws Throwable { super.remove(ref); if (ref.isReliable()) { if (log.isTraceEnabled()) { log.trace("removing (or decrementing reference count) " + ref.getMessageID() + " on disk"); } pm.removeMessage((String)ref.getMessageID()); if (l... | 50,994 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | public Message retrieveMessage(String messageId) throws Exception { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence ma... | 50,995 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | 50,996 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | 50,997 |
protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | protected Message retrieveMessage(Serializable messageID) { Message m = null; try { m = pm.retrieveMessage(messageID); if (log.isTraceEnabled()) { log.trace("Retreived it from persistent storage:" + m); } } catch(Throwable t) { log.error("Persistence manager fa... | 50,998 |
final boolean isValid(Address sf) { if (sf == null) { return false; } if (getMethod(sf) == null) { return false; } final int magic = getMagic(sf); if ((magic != VmStackFrame.MAGIC_COMPILED) && (magic != VmStackFrame.MAGIC_INTERPRETED)) { return false; } return true; } | final boolean isValid(Address sf) { if (sf == null) { return false; } if (getMethod(sf) == null) { return false; } final int magic = getMagic(sf); if ((magic != VmStackFrame.MAGIC_COMPILED) && (magic != VmStackFrame.MAGIC_INTERPRETED)) { return false; } return true; } | 50,999 |
public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException, InvalidEntryStateException; | public long initialize(String workflowName, int initialAction, Map inputs) throws InvalidRoleException, InvalidInputException, WorkflowException, InvalidEntryStateException; | 51,000 |
public boolean selfTest() { if (valid == null) { valid = new Boolean(DIGEST0.equals(Util.toString(new MD5().digest()))); } return valid.booleanValue(); } | public boolean selfTest() { if (valid == null) { valid = Boolean.valueOf(DIGEST0.equals(Util.toString(new MD5().digest()))); } return valid.booleanValue(); } | 51,001 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); if (args != null) { for(int i = 0; i < args.length; i++) ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); if (args != null) { for(int i = 0; i < args.length; i++) ... | 51,002 |
private static CollapsableContent collapseAdjoiningIntervening(LayoutContext c, CachingContent parent, float parentWidth, CollapsableContent target, List collapsed, int direction) { CollapsableContent currentTarget = target; while (true... | private static CollapsableContent collapseAdjoiningIntervening(LayoutContext c, CachingContent parent, float parentWidth, CollapsableContent target, List collapsed, int direction) { CollapsableContent currentTarget = target; while (true... | 51,003 |
public SwingFrame(Frame awtFrame) { super(awtFrame); } | public SwingFrame(Frame awtFrame) { super(awtFrame); } | 51,004 |
public SwingFramePeer(SwingToolkit toolkit, Frame target) { super(toolkit, target, new SwingFrame(target)); setResizable(target.isResizable()); peerComponent.setIconifiable(true); peerComponent.setMaximizable(true); peerComponent.setClosable(true); try { peerComp... | public SwingFramePeer(SwingToolkit toolkit, Frame target) { super(toolkit, target, new SwingFrame(target, target.getTitle())); setResizable(target.isResizable()); peerComponent.setIconifiable(true); peerComponent.setMaximizable(true); peerComponent.setClosable(true); try { ... | 51,005 |
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalDesktopIconUI(); return instance; } | public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalDesktopIconUI(); return instance; } | 51,006 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == n... | public ImageResource getImageResource(String uri) { ImageResource ir = null; uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is = null; ... | 51,007 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == n... | public ImageResource getImageResource(String uri) { ImageResource ir = null; Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null) { InputStream is ... | 51,008 |
private void scaleToOutputResolution(Image image) { float factor = _sharedContext.getPixelsPerDot(); image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor); } | private void scaleToOutputResolution(Image image) { float factor = _sharedContext.getDotsPerPixel(); image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor); } | 51,009 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is s... | public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is s... | 51,010 |
public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); Uu.p("resolved URI to: " + uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is s... | public ImageResource getImageResource(String uri) { ImageResource ir = null; System.out.println("here"); Uu.p("getImageResource() called on: " + uri); uri = resolveURI(uri); ir = (ImageResource) imageCache.get(uri); //TODO: check that cached image is still valid if (ir == null)... | 51,011 |
public Dimension getPreferredSize(JComponent c) { JScrollPane p = (JScrollPane ) c; Dimension d = new Dimension(min_w, min_h); Dimension a = p.getViewport().getPreferredSize(); if (a != null) { d.width = Math.max(d.width, a.width); d.height = Math.max(d.height, a.height); } System.out.p... | public Dimension getPreferredSize(JComponent c) { JScrollPane p = (JScrollPane ) c; Dimension d = new Dimension(min_w, min_h); Dimension a = p.getViewport().getPreferredSize(); if (a != null) { d.width = Math.max(d.width, a.width); d.height = Math.max(d.height, a.height); } System.out.p... | 51,012 |
public void paint(Graphics g, JComponent c) { System.out.println("BasicScrollPaneUI->paint()->"+c); JScrollPane p = (JScrollPane ) c; p.getViewport().paint(g); } | public void paint(Graphics g, JComponent c) { System.out.println("BasicScrollPaneUI->paint()->"+c); JScrollPane p = (JScrollPane ) c; p.getViewport().paint(g); } | 51,013 |
public Dimension preferredLayoutSize(Container parent) { return null; // TODO } // preferredLayoutSize() | public Dimension preferredLayoutSize(Container parent) { return null; // TODO } // preferredLayoutSize() | 51,014 |
public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | publicsynchronizedvoidstartService()throwsException{try{started=true;if(serviceName!=null){name=serviceName.getKeyProperty("name");}if(name==null||name.length()==0){thrownewIllegalStateException("The"+(isQueue()?"queue":"topic")+"namewasnotproperlysetintheservice'sObjectName");}ServerPeerserverPeer=(ServerPeer)server.g... | 51,015 |
public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | 51,016 |
public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | public synchronized void startService() throws Exception { try { started = true; if (serviceName != null) { name = serviceName.getKeyProperty("name"); } if (name == null || name.length() == 0) { throw new IllegalStateExc... | 51,017 |
public boolean isCellEditable(EventObject event) { if (!(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable() | public boolean isCellEditable(EventObject event) { if (event == null || !(event instanceof MouseEvent)) return true; //Todo: if the right number of clicks has occured, return true; return false; } // isCellEditable() | 51,018 |
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { return null; // TODO } // getTreeCellEditorCompo... | public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (editorComponent instanceof JTextField) { ((J... | 51,019 |
private AnonymousBoxing() { } | private AnonymousBoxing() { } | 51,020 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 51,021 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incase fi... | 51,022 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 51,023 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 51,024 |
public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | public static Box layout( Context c, Content content ) { Box block = new AnonymousBlockBox( content ); // copy the extents Rectangle oe = c.getExtents(); c.setExtents( new Rectangle( oe ) ); block.x = c.getExtents().x; block.y = c.getExtents().y; // save height incas... | 51,025 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.