bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v... | public static void set(Object array, int index, Object value) { if (array instanceof Object[]) { // Too bad Sun won't let us throw the easier ArrayStoreException! if (!array.getClass().getComponentType().isInstance(value)) throw new IllegalArgumentException(); ((Object[]) array)[index] = value; } else if (v... | 46,708 |
public static void setBoolean(Object array, int index, boolean value) { if (array instanceof boolean[]) ((boolean[]) array)[index] = value; else if (array == null) throw new NullPointerException(); else throw new IllegalArgumentException(); } | public static void setBoolean(Object array, int index, boolean value) { if (array instanceof boolean[]) ((boolean[]) array)[index] = value; else if (array == null) throw new NullPointerException(); else throw new IllegalArgumentException(); } | 46,710 |
public static void setByte(Object array, int index, byte value) { if (array instanceof byte[]) ((byte[]) array)[index] = value; else setShort(array, index, value); } | public static void setByte(Object array, int index, byte value) { if (array instanceof byte[]) ((byte[]) array)[index] = value; else setShort(array, index, value); } | 46,711 |
public static void setChar(Object array, int index, char value) { if (array instanceof char[]) ((char[]) array)[index] = value; else setInt(array, index, value); } | public static void setChar(Object array, int index, char value) { if (array instanceof char[]) ((char[]) array)[index] = value; else setInt(array, index, value); } | 46,712 |
public static void setDouble(Object array, int index, double value) { if (array instanceof double[]) ((double[]) array)[index] = value; else if (array == null) throw new NullPointerException(); else throw new IllegalArgumentException(); } | public static void setDouble(Object array, int index, double value) { if (array instanceof double[]) ((double[]) array)[index] = value; else if (array == null) throw new NullPointerException(); else throw new IllegalArgumentException(); } | 46,713 |
public static void setFloat(Object array, int index, float value) { if (array instanceof float[]) ((float[]) array)[index] = value; else setDouble(array, index, value); } | public static void setFloat(Object array, int index, float value) { if (array instanceof float[]) ((float[]) array)[index] = value; else setDouble(array, index, value); } | 46,714 |
public static void setInt(Object array, int index, int value) { if (array instanceof int[]) ((int[]) array)[index] = value; else setLong(array, index, value); } | public static void setInt(Object array, int index, int value) { if (array instanceof int[]) ((int[]) array)[index] = value; else setLong(array, index, value); } | 46,715 |
public static void setLong(Object array, int index, long value) { if (array instanceof long[]) ((long[]) array)[index] = value; else setFloat(array, index, value); } | public static void setLong(Object array, int index, long value) { if (array instanceof long[]) ((long[]) array)[index] = value; else setFloat(array, index, value); } | 46,716 |
public static void setShort(Object array, int index, short value) { if (array instanceof short[]) ((short[]) array)[index] = value; else setInt(array, index, value); } | public static void setShort(Object array, int index, short value) { if (array instanceof short[]) ((short[]) array)[index] = value; else setInt(array, index, value); } | 46,717 |
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start... | public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start... | 46,718 |
public String toString() { return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + baseline; } | public String toString() { return "Line: (" + x + "," + y + ")Xx(" + width + "," + height + ")" + " baseline = " + getBaseline(); } | 46,719 |
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | public static InlineBox generateFloatedBlockInlineBox(Context c, Content content, int avail, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating a new one. is th... | 46,720 |
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | 46,721 |
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | 46,722 |
public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | public static InlineBox generateFloatedBlockInlineBox(Context c, Node node, int avail, InlineBox prev, String text, InlineBox prev_align, Font font) { // u.p("generate floated block inline box: avail = " + avail); /* joshy: change this to just modify the existing block instead of creating ... | 46,723 |
public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | 46,724 |
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde... | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde... | 46,725 |
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde... | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<workflow>"); Iterator iter = metaAttributes.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); XMLUtil.printIndent(out, inde... | 46,726 |
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP... | public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = messageRefs.addLa... | 46,728 |
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP... | public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP... | 46,729 |
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP... | public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } messageRefs.addLast(ref, ref.getP... | 46,730 |
public void afterRollback() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + d.getReference()); } } txToRemoveDeliveryCallbacks.remove(tx); ... | public void afterRollback() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + d.getReference()); } } txToRemoveDeliveryCallbacks.remove(tx); ... | 46,732 |
public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el... | public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el... | 46,733 |
protected void configurePropertiesFromAction(Action a) { // Factory method which sets the AbstractButton's properties according to // values from the Action instance. super.configurePropertiesFromAction(a); } | protected void configurePropertiesFromAction(Action a){// Factory method which sets the AbstractButton's properties according to// values from the Action instance. super.configurePropertiesFromAction(a);} | 46,734 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isCli... | 46,735 |
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if ... | private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly int snuggle; if (isCli... | 46,736 |
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | 46,738 |
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | 46,739 |
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | 46,740 |
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sid... | 46,741 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 46,742 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 46,743 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 46,744 |
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); ... | 46,745 |
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBe... | private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBeve... | 46,746 |
public static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int) border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int) border.left()) - ((sides & RIGHT) == 0 ... | private static Rectangle shrinkRect(final Rectangle rect, final BorderPropertySet border, int sides) { Rectangle r2 = new Rectangle(); r2.x = rect.x + ((sides & LEFT) == 0 ? 0 : (int) border.left()); r2.width = rect.width - ((sides & LEFT) == 0 ? 0 : (int) border.left()) - ((sides & RIGHT) == 0... | 46,747 |
public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate") ... | public Object invoke(Invocation invocation) throws Throwable { String methodName = ((MethodInvocation) invocation).getMethod().getName(); Object retVal = invocation.invokeNext(); if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate") ... | 46,748 |
public static Icon getCheckBoxIcon() { return null; } | public static Icon getCheckBoxIcon() { return new Icon() { public int getIconHeight() { return 10; } public int getIconWidth() { return 10; } public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color ... | 46,749 |
public static Icon getCheckBoxMenuItemIcon() { return null; } | public static Icon getCheckBoxMenuItemIcon() { return new DummyIcon(); } | 46,750 |
public static Icon getMenuArrowIcon() { return null; } | public static Icon getMenuArrowIcon() { return new DummyIcon(); } | 46,751 |
public static Icon getMenuItemArrowIcon() { return null; } | public static Icon getMenuItemArrowIcon() { return new DummyIcon(); } | 46,752 |
public static Icon getMenuItemCheckIcon() { return null; } | public static Icon getMenuItemCheckIcon() { return new DummyIcon(); } | 46,753 |
public static Icon getRadioButtonIcon() { return null; } | public static Icon getRadioButtonIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioBut... | 46,754 |
public static Icon getRadioButtonMenuItemIcon() { return null; } | public static Icon getRadioButtonMenuItemIcon() { return new DummyIcon(); } | 46,755 |
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | 46,756 |
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createP... | 46,757 |
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(D... | 46,758 |
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | 46,759 |
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | 46,760 |
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | 46,761 |
public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | public void testNoLocal() throws Exception { if (log.isTraceEnabled()) log.trace("testNoLocal"); Connection conn1 = cf.createConnection(); Session sess = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer producer = sess.createProducer(topic); producer.setDeliveryMode(De... | 46,762 |
public static void setLogStream(PrintStream out) { DriverManager.log_stream = log_stream; } | public static void setLogStream(PrintStream stream) { DriverManager.log_stream = log_stream; } | 46,763 |
public static void setLogStream(PrintStream out) { DriverManager.log_stream = log_stream; } | public static void setLogStream(PrintStream out) { DriverManager.log_stream = stream; } | 46,764 |
public static void setLoginTimeout(int seconds) { DriverManager.login_timeout = login_timeout; } | public static void setLoginTimeout(int seconds) { DriverManager.login_timeout = seconds; } | 46,765 |
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String stepIdString = (String) args.get("stepId"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); ... | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String stepIdString = (String) args.get("stepId"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); ... | 46,766 |
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String stepIdString = (String) args.get("stepId"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); ... | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws WorkflowException { String stepIdString = (String) args.get("stepId"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("entry"); WorkflowContext context = (WorkflowContext) transientVars.get("context"); ... | 46,767 |
private static float adjustWidth(float parentWidth, Context c) { CalculatedStyle style = c.getCurrentStyle(); boolean hasSpecifiedWidth = !style.isIdent(CSSName.WIDTH, IdentValue.AUTO); if (hasSpecifiedWidth) { return style.getFloatPropertyProportionalWidth(CSSName.WIDTH, parentWidth... | private static float adjustWidth(float parentWidth, Context c) { CalculatedStyle style = c.getCurrentStyle(); boolean hasSpecifiedWidth = !style.isIdent(CSSName.WIDTH, IdentValue.AUTO); if (hasSpecifiedWidth) { return style.getFloatPropertyProportionalWidth(CSSName.WIDTH, parentWidth... | 46,768 |
private static float adjustWidth(float parentWidth, Context c) { CalculatedStyle style = c.getCurrentStyle(); boolean hasSpecifiedWidth = !style.isIdent(CSSName.WIDTH, IdentValue.AUTO); if (hasSpecifiedWidth) { return style.getFloatPropertyProportionalWidth(CSSName.WIDTH, parentWidth... | private static float adjustWidth(float parentWidth, Context c) { CalculatedStyle style = c.getCurrentStyle(); boolean hasSpecifiedWidth = !style.isIdent(CSSName.WIDTH, IdentValue.AUTO); if (hasSpecifiedWidth) { return style.getFloatPropertyProportionalWidth(CSSName.WIDTH, parentWidth... | 46,769 |
private static boolean hasBottomBorderOrPadding(Context c, float parentWidth) { Border width = c.getCurrentStyle().getBorderWidth(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return width.bottom != 0 || (int)padding.bottom() !=... | private static boolean hasBottomBorderOrPadding(Context c, float parentWidth) { BorderPropertySet width = c.getCurrentStyle().getBorder(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return width.bottom != 0 || (int)padding.botto... | 46,770 |
private static boolean hasBottomBorderOrPadding(Context c, float parentWidth) { Border width = c.getCurrentStyle().getBorderWidth(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return width.bottom != 0 || (int)padding.bottom() !=... | private static boolean hasBottomBorderOrPadding(Context c, float parentWidth) { Border width = c.getCurrentStyle().getBorderWidth(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return (int)width.bottom() != 0 || (int)padding.bott... | 46,771 |
private static boolean hasNoBordersPaddingOrHeight(Context c, float parentWidth) { CalculatedStyle style = c.getCurrentStyle(); Border borderWidth = style.getBorderWidth(c.getCtx()); RectPropertySet padding = style.getPaddingRect(parentWidth, parentWidth, c.getCtx()); return borderWidth.... | private static boolean hasNoBordersPaddingOrHeight(Context c, float parentWidth) { CalculatedStyle style = c.getCurrentStyle(); BorderPropertySet borderWidth = style.getBorder(c.getCtx()); RectPropertySet padding = style.getPaddingRect(parentWidth, parentWidth, c.getCtx()); return border... | 46,772 |
private static boolean hasNoBordersPaddingOrHeight(Context c, float parentWidth) { CalculatedStyle style = c.getCurrentStyle(); Border borderWidth = style.getBorderWidth(c.getCtx()); RectPropertySet padding = style.getPaddingRect(parentWidth, parentWidth, c.getCtx()); return borderWidth.... | private static boolean hasNoBordersPaddingOrHeight(Context c, float parentWidth) { CalculatedStyle style = c.getCurrentStyle(); Border borderWidth = style.getBorderWidth(c.getCtx()); RectPropertySet padding = style.getPaddingRect(parentWidth, parentWidth, c.getCtx()); return (int)borderW... | 46,773 |
private static boolean hasTopBorderOrPadding(Context c, float parentWidth) { Border width = c.getCurrentStyle().getBorderWidth(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return width.top != 0 || (int)padding.top() != 0; } | private static boolean hasTopBorderOrPadding(Context c, float parentWidth) { BorderPropertySet width = c.getCurrentStyle().getBorder(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return width.top != 0 || (int)padding.top() != 0;... | 46,774 |
private static boolean hasTopBorderOrPadding(Context c, float parentWidth) { Border width = c.getCurrentStyle().getBorderWidth(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return width.top != 0 || (int)padding.top() != 0; } | private static boolean hasTopBorderOrPadding(Context c, float parentWidth) { Border width = c.getCurrentStyle().getBorderWidth(c.getCtx()); RectPropertySet padding = c.getCurrentStyle().getPaddingRect(parentWidth, parentWidth, c.getCtx()); return (int)width.top() != 0 || (int)padding.top() != 0... | 46,775 |
private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (!style.isIdent(CSSName.RIGHT, IdentValue.AUTO)) { ... | 46,776 |
private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | 46,777 |
private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | 46,778 |
private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | private static int[] extractLeftTopRelative(Context c) { CalculatedStyle style = c.getCurrentStyle(); int top = 0; int left = 0; int topLeft[] = null; if (style.isIdent(CSSName.POSITION, IdentValue.RELATIVE)) { if (style.hasProperty(CSSName.RIGHT)) { left... | 46,779 |
public int getOffset() { // Check precondition. assert mark <= gapStart || mark > gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd; if (mark <= gapStart) return mark; ... | public int getOffset() { // Check precondition. assert mark <= gapStart || mark >= gapEnd : "mark: " + mark + ", gapStart: " + gapStart + ", gapEnd: " + gapEnd; if (mark <= gapStart) return mark; ... | 46,780 |
protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content shiftGap(position); shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= addSize) shiftEnd((addSize - gapEnd + gapStart + 1) * ... | protected void replace(int position, int rmSize, Object addItems, int addSize) { // Remove content if (rmSize > 0) shiftGapEndUp(gapEnd + rmSize); // If gap is too small, enlarge the gap. if ((gapEnd - gapStart) <= addSize) shiftEnd((addSize - gapEnd + gapStart + 1) * 2 + ... | 46,781 |
protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. Vector v = getPositionsInRange(null, gapEnd... | protected void shiftEnd(int newSize) { assert newSize > (gapEnd - gapStart) : "The new gap size must be greater " + "than the old gap size"; int delta = newSize - gapEnd + gapStart; // Update the marks after the gapEnd. Vector v = getPositionsInRange(null, gapEnd... | 46,782 |
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). V... | protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). V... | 46,783 |
protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). V... | protected void shiftGap(int newGapStart) { if (newGapStart == gapStart) return; int newGapEnd = newGapStart + gapEnd - gapStart; if (newGapStart < gapStart) { // Update the positions between newGapStart and (old) gapStart. The marks // must be shifted by (gapEnd - gapStart). V... | 46,784 |
protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; Vector v = getPositionsInRange(null, gapEnd, newGapEnd - gapEnd); for (Iterator i = v.iterator(); i.... | protected void shiftGapEndUp(int newGapEnd) { if (newGapEnd == gapEnd) return; assert newGapEnd > gapEnd : "The new gap end must be greater than the " + "old gap end."; Vector v = getPositionsInRange(null, gapEnd, newGapEnd - gapEnd); for (Iterator i = v.iterator(); i.... | 46,786 |
protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; Vector v = getPositionsInRange(null, newGapStart, gapStart - newGapStart); for (I... | protected void shiftGapStartDown(int newGapStart) { if (newGapStart == gapStart) return; assert newGapStart < gapStart : "The new gap start must be less than the " + "old gap start."; Vector v = getPositionsInRange(null, newGapStart, gapStart - newGapStart); for (I... | 46,787 |
public void addSelectionPath(TreePath path) { if (! isPathSelected(path)) { if (isSelectionEmpty()) setSelectionPath(path); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = path; selection = new Tre... | public void addSelectionPath(TreePath path) { if (! isPathSelected(path)) { if (isSelectionEmpty()) setSelectionPath(path); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = path; selection = new Tre... | 46,788 |
public void addSelectionPath(TreePath path) { if (! isPathSelected(path)) { if (isSelectionEmpty()) setSelectionPath(path); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = path; selection = new Tre... | public void addSelectionPath(TreePath path) { if (! isPathSelected(path)) { if (isSelectionEmpty()) setSelectionPath(path); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = path; selection = new Tre... | 46,789 |
public void addSelectionPaths(TreePath[] paths) { // Must be called, as defined in JDK API 1.4. insureUniqueness(); if (paths != null) { TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (! isPathSelected(v0)) { if (isSelectionEmpty()) setSelect... | public void addSelectionPaths(TreePath[] paths) { // Must be called, as defined in JDK API 1.4. insureUniqueness(); if (paths != null) { TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (! isPathSelected(v0)) { if (isSelectionEmpty()) setSelect... | 46,790 |
protected boolean arePathsContiguous(TreePath[] paths) throws NotImplementedException { return false; // STUB } | protected boolean arePathsContiguous(TreePath[] paths) { return false; // STUB } | 46,792 |
protected boolean arePathsContiguous(TreePath[] paths) throws NotImplementedException { return false; // STUB } | protected boolean arePathsContiguous(TreePath[] paths) throws NotImplementedException { if (rowMapper == null || paths.length < 2) return true; int[] rows = rowMapper.getRowsForPaths(paths); Arrays.sort(rows); for (int i = 1; i < rows.length; i++) { if (rows[i-1] != rows[i] - 1) return false; } return true;... | 46,793 |
protected boolean canPathsBeAdded(TreePath[] paths) throws NotImplementedException { return false; // STUB } | protected boolean canPathsBeAdded(TreePath[] paths) { return false; // STUB } | 46,794 |
protected boolean canPathsBeAdded(TreePath[] paths) throws NotImplementedException { return false; // STUB } | protected boolean canPathsBeAdded(TreePath[] paths) throws NotImplementedException { if (rowMapper == null || isSelectionEmpty() || selectionMode == DISCONTIGUOUS_TREE_SELECTION) return true; TreePath [] all = new TreePath[paths.length + selection.length]; System.arraycopy(paths, 0, all, 0, paths.length); Syst... | 46,795 |
protected boolean canPathsBeRemoved(TreePath[] paths) throws NotImplementedException { return false; // STUB } | protected boolean canPathsBeRemoved(TreePath[] paths) { return false; // STUB } | 46,796 |
protected boolean canPathsBeRemoved(TreePath[] paths) throws NotImplementedException { return false; // STUB } | protected boolean canPathsBeRemoved(TreePath[] paths) throws NotImplementedException { if (rowMapper == null || isSelectionEmpty() || selectionMode == DISCONTIGUOUS_TREE_SELECTION) return true; HashSet set = new HashSet(); for (int i = 0; i < selection.length; i++) set.add(selection[i]); for (int i = 0; i < p... | 46,797 |
public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return - 1; else return rowMapper.getRowsForPaths(new TreePath[] { leadPath })[0]; } | public int getLeadSelectionRow() { if ((rowMapper == null) || (leadPath == null)) return - 1; else return rowMapper.getRowsForPaths(new TreePath[] { leadPath })[0]; } | 46,800 |
protected void insureRowContinuity() throws NotImplementedException { // TODO } | protected void insureRowContinuity() { // TODO } | 46,801 |
protected void insureRowContinuity() throws NotImplementedException { // TODO } | if (selection == null || selection.length < 2) return; else if (selectionMode == CONTIGUOUS_TREE_SELECTION) { if (rowMapper == null) selectOne(); else { int[] rows = rowMapper.getRowsForPaths(selection); Arrays.sort(rows); int i; for (i = 1; i < rows.length; i++) { if (rows[i - 1] != rows[i] - 1) break; } if (i < ro... | 46,802 |
public boolean isRowSelected(int row) throws NotImplementedException { return false; // TODO } | public boolean isRowSelected(int row) { return false; // TODO } | 46,803 |
public boolean isRowSelected(int row) throws NotImplementedException { return false; // TODO } | public boolean isRowSelected(int row) throws NotImplementedException { if (isSelectionEmpty()) return false; RowMapper mapper = getRowMapper(); if (mapper instanceof AbstractLayoutCache) { AbstractLayoutCache ama = (AbstractLayoutCache) mapper; TreePath path = ama.getPathForRow(row); return isPathSelected(path... | 46,804 |
protected void notifyPathChange(Vector value0, TreePath value1) throws NotImplementedException { // STUB } | protected void notifyPathChange(Vector value0, TreePath value1) throws NotImplementedException { // STUB } | 46,805 |
protected void notifyPathChange(Vector value0, TreePath value1) throws NotImplementedException { // STUB } | TreePath[] pathes = new TreePath[vPathes.size()]; for (int i = 0; i < pathes.length; i++) pathes[i] = (TreePath) vPathes.get(i); boolean[] news = new boolean[pathes.length]; for (int i = 0; i < news.length; i++) news[i] = isPathSelected(pathes[i]); TreeSelectionEvent event = new TreeSelectionEvent(this, pathes, news,... | 46,806 |
public void removeSelectionPath(TreePath path) { int index = - 1; if (isPathSelected(path)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(path)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0... | public void removeSelectionPath(TreePath path) { int index = - 1; if (isPathSelected(path)) { for (int i = 0; i < selection.length; i++) { if (selection[i].equals(path)) { index = i; break; } } TreePath[] temp = new TreePath[selection.length - 1]; System.arraycopy(selection, 0, temp, 0... | 46,807 |
public void removeSelectionPaths(TreePath[] paths) { if (paths != null) { int index = - 1; TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { i... | public void removeSelectionPaths(TreePath[] paths) { if (paths != null) { int index = - 1; TreePath v0 = null; for (int i = 0; i < paths.length; i++) { v0 = paths[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { i... | 46,808 |
public void resetRowSelection() throws NotImplementedException { // TODO } | public void resetRowSelection() { // TODO } | 46,810 |
public void resetRowSelection() throws NotImplementedException { // TODO } | public void resetRowSelection() throws NotImplementedException { // TODO } | 46,811 |
public void setSelectionPaths(TreePath[] paths) throws NotImplementedException { // Must be called, as defined in JDK API 1.4. insureUniqueness(); // TODO } | public void setSelectionPaths(TreePath[] paths) { // Must be called, as defined in JDK API 1.4. insureUniqueness(); // TODO } | 46,814 |
public void setSelectionPaths(TreePath[] paths) throws NotImplementedException { // Must be called, as defined in JDK API 1.4. insureUniqueness(); // TODO } | publicclearSelection(); addSelectionPaths(paths); voidclearSelection(); addSelectionPaths(paths); setSelectionPaths(TreePath[]clearSelection(); addSelectionPaths(paths); paths)clearSelection(); addSelectionPaths(paths); clearSelection(); addSelectionPaths(paths); clearSelection(); addSelectionPaths(paths); clearSelect... | 46,815 |
public String toString() throws NotImplementedException { return null; // TODO } | public String toString() { return null; // TODO } | 46,816 |
public String toString() throws NotImplementedException { return null; // TODO } | public String toString() throws NotImplementedException { if (isSelectionEmpty()) return "[selection empty]"; else { StringBuffer b = new StringBuffer("selected rows: ["); for (int i = 0; i < selection.length; i++) { b.append(getRow(selection[i])); b.append(' '); } b.append(", lead "+getLeadSelectionRow()); return ... | 46,817 |
protected void updateLeadIndex() throws NotImplementedException { // STUB } | protected void updateLeadIndex() { // STUB } | 46,818 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.