rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
throw new TypeError(getRuntime(), | throw getRuntime().newTypeError( | public JavaObject set_value(IRubyObject object, IRubyObject value) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object: " + object); } if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
return RubyBoolean.newBoolean(getRuntime(), Modifier.isStatic(field.getModifiers())); | return getRuntime().newBoolean(Modifier.isStatic(field.getModifiers())); | public RubyBoolean static_p() { return RubyBoolean.newBoolean(getRuntime(), Modifier.isStatic(field.getModifiers())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
throw new TypeError(getRuntime(), "not a java object"); | throw getRuntime().newTypeError("not a java object"); | public JavaObject value(IRubyObject object) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object"); } Object javaObject = ((JavaObject) object).getValue(); try { return JavaObject.wrap(getRuntime(), field.get(javaObject)); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
throw new TypeError(getRuntime(), "illegal access"); | throw getRuntime().newTypeError("illegal access"); | public JavaObject value(IRubyObject object) { if (! (object instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object"); } Object javaObject = ((JavaObject) object).getValue(); try { return JavaObject.wrap(getRuntime(), field.get(javaObject)); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
return RubyString.newString(getRuntime(), field.getType().getName()); | return getRuntime().newString(field.getType().getName()); | public RubyString value_type() { return RubyString.newString(getRuntime(), field.getType().getName()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaField.java/clean/src/org/jruby/javasupport/JavaField.java |
public void mouseDragged( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); | public void mouseDragged(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); setCursor(box); | public void mouseDragged( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
public void mouseEntered( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); | public void mouseEntered(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); setCursor(box); | public void mouseEntered( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
public void mouseExited( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); | public void mouseExited(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); setCursor(box); | public void mouseExited( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
public void mouseMoved( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); | public void mouseMoved(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); setCursor(box); | public void mouseMoved( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); setCursor( box ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
public void mousePressed( MouseEvent evt ) { } | public void mousePressed(MouseEvent evt) { } | public void mousePressed( MouseEvent evt ) { } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
public void mouseReleased( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { | public void mouseReleased(MouseEvent evt) { Box box = panel.findBox(evt.getX(), evt.getY()); if (box == null) { | public void mouseReleased( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { return; } Element elem = box.element; if ( elem == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri(... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
if ( elem == null ) { | if (elem == null) { | public void mouseReleased( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { return; } Element elem = box.element; if ( elem == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri(... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
if ( panel.getContext().getNamespaceHandler().getLinkUri( elem ) != null ) { linkClicked( box, evt ); | String uri = findLink(elem); if (uri != null) { linkClicked(uri); | public void mouseReleased( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { return; } Element elem = box.element; if ( elem == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri(... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
private void setCursor( Box box ) { if ( prev == box || box == null || box.element == null ) { | private void setCursor(Box box) { if (prev == box || box == null || box.element == null) { | private void setCursor( Box box ) { if ( prev == box || box == null || box.element == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri( box.element ) != null ) { if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ) )... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
if ( panel.getContext().getNamespaceHandler().getLinkUri( box.element ) != null ) { if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ) ) { panel.setCursor( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ); | if (findLink(box.element) != null) { if (!panel.getCursor().equals(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR))) { panel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); | private void setCursor( Box box ) { if ( prev == box || box == null || box.element == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri( box.element ) != null ) { if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ) )... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR ) ) ) { panel.setCursor( Cursor.getPredefinedCursor( Cursor.DEFAULT_CURSOR ) ); | if (!panel.getCursor().equals(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR))) { panel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); | private void setCursor( Box box ) { if ( prev == box || box == null || box.element == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri( box.element ) != null ) { if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ) )... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/LinkListener.java/clean/src/java/org/xhtmlrenderer/swing/LinkListener.java |
pos.append(primVal.getCssText().trim() + suffix); | StringBuffer s = new StringBuffer(primVal.getCssText().trim()); if (s.charAt(0) == '"') s.deleteCharAt(0); if (s.charAt(s.length() - 1) == '"') s.deleteCharAt(s.length() - 1); pos.append(s + suffix); | protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0088314e16993b75305f7b1f8f7a8fc17cd713ca/ContentPropertyDeclarationFactory.java/clean/src/java/org/xhtmlrenderer/css/sheet/factory/ContentPropertyDeclarationFactory.java |
protected Iterator doBuildDeclarations(CSSPrimitiveValue[] primVals, boolean important, CSSName cssName, int origin) { StringBuffer pos = new StringBuffer(); String suffix = " ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/0088314e16993b75305f7b1f8f7a8fc17cd713ca/ContentPropertyDeclarationFactory.java/clean/src/java/org/xhtmlrenderer/css/sheet/factory/ContentPropertyDeclarationFactory.java | ||
private void createCollectorIfRequired(String subTask, double work) { boolean newCollector = false; | private boolean createCollectorIfRequired(String subTask, double work) { | private void createCollectorIfRequired(String subTask, double work) { boolean newCollector = false; synchronized (this) { if(collector == null) collector = new Collector(subTask, work, getWrappedProgressMonitor()); } if(newCollector) display.asyncExec(collector); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7b5621604ec00ac4408107c990a055979b19405b/AccumulatingProgressMonitor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/AccumulatingProgressMonitor.java |
if(collector == null) collector = new Collector(subTask, work, getWrappedProgressMonitor()); | if(collector != null) return false; collector = new Collector(subTask, work, getWrappedProgressMonitor()); | private void createCollectorIfRequired(String subTask, double work) { boolean newCollector = false; synchronized (this) { if(collector == null) collector = new Collector(subTask, work, getWrappedProgressMonitor()); } if(newCollector) display.asyncExec(collector); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7b5621604ec00ac4408107c990a055979b19405b/AccumulatingProgressMonitor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/AccumulatingProgressMonitor.java |
if(newCollector) display.asyncExec(collector); | display.asyncExec(collector); return true; | private void createCollectorIfRequired(String subTask, double work) { boolean newCollector = false; synchronized (this) { if(collector == null) collector = new Collector(subTask, work, getWrappedProgressMonitor()); } if(newCollector) display.asyncExec(collector); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7b5621604ec00ac4408107c990a055979b19405b/AccumulatingProgressMonitor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/AccumulatingProgressMonitor.java |
public synchronized void internalWorked(final double work) { createCollectorIfRequired(null, work); collector.worked(work); | public void internalWorked(final double work) { if( createCollectorIfRequired(null, work)) return; synchronized (this) { collector.worked(work); } | public synchronized void internalWorked(final double work) { createCollectorIfRequired(null, work); collector.worked(work); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7b5621604ec00ac4408107c990a055979b19405b/AccumulatingProgressMonitor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/AccumulatingProgressMonitor.java |
createCollectorIfRequired(name, 0); collector.subTask(name); | if(createCollectorIfRequired(name, 0)) return; synchronized (this) { collector.subTask(name); } | public void subTask(final String name) { createCollectorIfRequired(name, 0); collector.subTask(name); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7b5621604ec00ac4408107c990a055979b19405b/AccumulatingProgressMonitor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/AccumulatingProgressMonitor.java |
public synchronized void worked(int work) { | public void worked(int work) { | public synchronized void worked(int work) { internalWorked(work); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7b5621604ec00ac4408107c990a055979b19405b/AccumulatingProgressMonitor.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/operation/AccumulatingProgressMonitor.java |
outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; outerBox.adjustWidthForChild(child.getWidth()); | if (outerBox.getChildCount() > 0) { Box table = (Box)outerBox.getChild(0); outerBox.height = table.height; outerBox.contentWidth = table.contentWidth; | private static void calculateOuterBoxDimensions(BlockBox outerBox) { outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; outerBox.adjustWidthForChild(child.getWidth()); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3e9da5a6a193dd3ded6d850d4f9fbc8df5854462/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java |
cell.expandToMaxChildWidth(); | private static CellBox layoutCell(LayoutContext c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3e9da5a6a193dd3ded6d850d4f9fbc8df5854462/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java | |
tableBox.adjustWidthForChild(row.getWidth()); | private static void layoutChildren(LayoutContext c, TableBox tableBox, Content content, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { Iterator contentIterator = content.getChildContent(c).iterator(); while (contentIterator.hasNext() && !c.shouldStop()) { Object o ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/3e9da5a6a193dd3ded6d850d4f9fbc8df5854462/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java | |
addAlert(state, rb.getString("java.user") + " " + noEmailInIdAccount + " " + rb.getString("java.exists")); | existingUsers.add(noEmailInIdAccount); | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); Site site = null; String siteId = (String) state.getAttribute(STATE_SITE_INSTANCE_ID); try { site = SiteService.getSite(siteId); } catch (IdUnusedException... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/ae9321aa9385c399662bf50168986adc2841be6d/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
addAlert(state, rb.getString("java.user") + " " + emailInIdAccount + " " + rb.getString("java.exists")); | existingUsers.add(emailInIdAccount); | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); Site site = null; String siteId = (String) state.getAttribute(STATE_SITE_INSTANCE_ID); try { site = SiteService.getSite(siteId); } catch (IdUnusedException... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/ae9321aa9385c399662bf50168986adc2841be6d/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
int pListOldSize = pList.size(); | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); Site site = null; String siteId = (String) state.getAttribute(STATE_SITE_INSTANCE_ID); try { site = SiteService.getSite(siteId); } catch (IdUnusedException... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/ae9321aa9385c399662bf50168986adc2841be6d/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java | |
pList=removeExistingParticipants(pList, state); | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); Site site = null; String siteId = (String) state.getAttribute(STATE_SITE_INSTANCE_ID); try { site = SiteService.getSite(siteId); } catch (IdUnusedException... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/ae9321aa9385c399662bf50168986adc2841be6d/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java | |
if (pListOldSize > 0 && pList.size() == 0) | if (pList.size() == 0) | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); Site site = null; String siteId = (String) state.getAttribute(STATE_SITE_INSTANCE_ID); try { site = SiteService.getSite(siteId); } catch (IdUnusedException... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/ae9321aa9385c399662bf50168986adc2841be6d/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
addAlert(state, rb.getString("java.guest")); | } if (!existingUsers.isEmpty()) { int count = 0; String accounts = ""; for (Iterator eIterator = existingUsers.iterator();eIterator.hasNext();) { if (count == 0) { accounts = (String) eIterator.next(); } else { accounts = accounts + ", " + (String) eIterator.next(); } count++; } addAlert(state, rb.getString("add.exis... | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); Site site = null; String siteId = (String) state.getAttribute(STATE_SITE_INSTANCE_ID); try { site = SiteService.getSite(siteId); } catch (IdUnusedException... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/ae9321aa9385c399662bf50168986adc2841be6d/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
if (release.isNew() || release.isModified()) { session = openSession(); if (release.isNew()) { Release releaseModel = new Release(); releaseModel.setReleaseId(release.getReleaseId()); releaseModel.setCreateDate(release.getCreateDate()); releaseModel.setModifiedDate(release.getModifiedDate()); releaseModel.setBuildNumb... | session = openSession(); session.saveOrUpdate(release); session.flush(); release.setNew(false); | public com.liferay.portal.model.Release update( com.liferay.portal.model.Release release) throws SystemException { Session session = null; try { if (release.isNew() || release.isModified()) { session = openSession(); if (release.isNew()) { Release releaseModel = new Release(); releaseModel.setReleas... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ReleasePersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/ReleasePersistence.java |
if (line.firstLinePseudo != null) { line.firstLinePseudo.paintBackground(c, line, inline, BorderPainter.TOP + BorderPainter.BOTTOM); } | public static void paintBackground(RenderingContext c, LineBox line, InlineBox inline) { if (inline.getInlineElement() != null) { inline.getInlineElement().paintBackground(c, line, inline, BorderPainter.TOP + BorderPainter.BOTTOM); } ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java | |
if (line.firstLinePseudo != null) { line.firstLinePseudo.paintTextDecoration(c, line, inline); line.firstLinePseudo.untranslateRelative(c, line.isFirstLine); } | static int paintInline(RenderingContext c, InlineBox ib, int lx, int ly, LineBox line, int padX) { if (ib.pushstyles > 0) padX = ib.getInlineElement().handleStart(c, line, ib, padX, ib.pushstyles); if (ib instanceof InlineBlockBox) { c.translate(line.x, line.y ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/84c49e5f6931ce245212756a3af63d4c69677805/InlineRendering.java/buggy/src/java/org/xhtmlrenderer/render/InlineRendering.java | |
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + border.top); poly.addPoint(bounds.x + border.left, bounds.y + border.top); g.setColor(color.topColor); | poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + border.top-1); poly.addPoint(bounds.x + border.left-1, bounds.y + border.top-1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - border.bottom); poly.addPoint(bounds.x + border.left, bounds.y + bounds.height - border.bottom); | poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + bounds.height - border.bottom+1); poly.addPoint(bounds.x + border.left-1, bounds.y + bounds.height - border.bottom+1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g.setColor(color.bottomColor); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java | |
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + border.top); poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - border.bottom); | poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + border.top-1); poly.addPoint(bounds.x + bounds.width - border.right+1, bounds.y + bounds.height - border.bottom+1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g.setColor(color.rightColor); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java | |
poly.addPoint(bounds.x + border.left, bounds.y + border.top); poly.addPoint(bounds.x + border.left, bounds.y + bounds.height - border.bottom); | poly.addPoint(bounds.x + border.left-1, bounds.y + border.top-1); poly.addPoint(bounds.x + border.left-1, bounds.y + bounds.height - border.bottom+1); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java |
g.setColor(color.leftColor); | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java | |
return; | private static void paintSolid(final Graphics g, final Rectangle bounds, final Border border, final BorderColor color, final int side) { Polygon poly; // CLEAN: duplicate, except for color, with paintGoodBevel() for BOTTOM (PWW 25-01-05) if (side == TOP) { poly = new Polygon(); ... | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/ea4b196646f28c797bd3b0d90c7fcf22c63219af/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java | |
new NewWizardDropDownAction(workbench, newWizardAction); | new NewWizardDropDownAction(window, newWizardAction); | private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); WWinKeyBindingService keyBindingService = getWindo... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/89367d793e5e563c84ffe78274bc12ad95dd473c/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java |
this.listeners = new CopyOnWriteArrayList(); | this.listenersInDispatchThread = new CopyOnWriteArrayList<ListenerInterface>(); this.listenersNotInDispatchThread = new CopyOnWriteArrayList<ListenerInterface>(); | private ListenerSupportInvocationHandler(Class listenerInterface) { this.listenerInterface = listenerInterface; this.listeners = new CopyOnWriteArrayList(); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
public void addListener(Object listener) { | public void addListener(ListenerInterface listener) { | public void addListener(Object listener) { if (checkListener(listener)) { // Okay, add listener listeners.add(listener); } } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
listeners.add(listener); | if (listener.fireInEventDispathThread()) { listenersInDispatchThread.add(listener); } else { listenersNotInDispatchThread.add(listener); } | public void addListener(Object listener) { if (checkListener(listener)) { // Okay, add listener listeners.add(listener); } } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
if (listeners.isEmpty()) { | if (listenersInDispatchThread.isEmpty() && listenersNotInDispatchThread.isEmpty()) { | public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java | ||
for (Object listener: listeners) { | for (ListenerInterface listener : listenersInDispatchThread) { | public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
+ listener.getClass().getName() + "'", e); | + listener.getClass().getName() + "'", e); | public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
+ listener.getClass().getName() + "'", e); | + listener.getClass().getName() + "'", e); | public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
+ listener.getClass().getName() + "'", e.getCause()); | + listener.getClass().getName() + "'", e.getCause()); | public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
for (ListenerInterface listener : listenersNotInDispatchThread) { try { method.invoke(listener, args); } catch (IllegalArgumentException e) { LOG.error("Received an exception from listener '" + listener + "', class '" + listener.getClass().getName() + "'", e); } catch (IllegalAccessException e) { LOG.error("Received a... | public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable { if (listeners.isEmpty()) { // No listeners, skip return null; } // LOG.warn("Deligating to " + listeners.size() // + " liste... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java | |
for (Object listener: listeners) { | for (ListenerInterface listener : listenersInDispatchThread) { | public void run() { for (Object listener: listeners) { try { method.invoke(listener, args); } catch (IllegalArgumentException e) { LOG.error( ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
+ listener.getClass().getName() + "'", e); | + listener.getClass().getName() + "'", e); | public void run() { for (Object listener: listeners) { try { method.invoke(listener, args); } catch (IllegalArgumentException e) { LOG.error( ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
+ listener.getClass().getName() + "'", e); | + listener.getClass().getName() + "'", e); | public void run() { for (Object listener: listeners) { try { method.invoke(listener, args); } catch (IllegalArgumentException e) { LOG.error( ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
+ listener.getClass().getName() + "'", e.getCause()); | + listener.getClass().getName() + "'", e.getCause()); | public void run() { for (Object listener: listeners) { try { method.invoke(listener, args); } catch (IllegalArgumentException e) { LOG.error( ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
listeners.clear(); | listenersInDispatchThread.clear(); listenersNotInDispatchThread.clear(); | public void removeAllListeners() { listeners.clear(); } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
public void removeListener(Object listener) { | public void removeListener(ListenerInterface listener) { | public void removeListener(Object listener) { if (checkListener(listener)) { // Okay, remove listener listeners.remove(listener); } } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
listeners.remove(listener); | if (listener.fireInEventDispathThread()) { listenersInDispatchThread.remove(listener); } else { listenersNotInDispatchThread.remove(listener); } | public void removeListener(Object listener) { if (checkListener(listener)) { // Okay, remove listener listeners.remove(listener); } } | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/5e02adc216a5e874559c0e9881d81ec39d41c9bd/ListenerSupportFactory.java/clean/src/main/de/dal33t/powerfolder/event/ListenerSupportFactory.java |
int msgList[] = StringUtil.split(messages, ",", -1); | long msgList[] = StringUtil.split(messages, ",", -1L); | private String _deleteMessages(HttpServletRequest req) { try { String messages = ParamUtil.getString(req, "messages"); int msgList[] = StringUtil.split(messages, ",", -1); String userId = PortalUtil.getUserId(req); String password = PortalUtil.getUserPassword(req); MailUtil.deleteMessages(userId, pass... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0439a0c32cabd776e788b39ffb360612e0f117eb/MailboxAction.java/clean/portal-ejb/src/com/liferay/portlet/mailbox/action/MailboxAction.java |
jMe.put("id", me.getMsgNum()); | jMe.put("id", me.getMsgUID()); | private String _getPreviewHeaders(HttpServletRequest req) { JSONObject jsonObj = new JSONObject(); try { String userId = PortalUtil.getUserId(req); String password = PortalUtil.getUserPassword(req); String folderId = ParamUtil.getString(req, "folderId"); MailUtil.setCurrentFolder(userId, password, fold... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0439a0c32cabd776e788b39ffb360612e0f117eb/MailboxAction.java/clean/portal-ejb/src/com/liferay/portlet/mailbox/action/MailboxAction.java |
int msgList[] = StringUtil.split(messages, ",", -1); | long msgList[] = StringUtil.split(messages, ",", -1L); | private String _moveMessages(HttpServletRequest req) { try { String userId = PortalUtil.getUserId(req); String password = PortalUtil.getUserPassword(req); String messages = ParamUtil.getString(req, "messages"); String toFolder = ParamUtil.getString(req, "folderId"); int msgList[] = StringUtil.split(messages... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/0439a0c32cabd776e788b39ffb360612e0f117eb/MailboxAction.java/clean/portal-ejb/src/com/liferay/portlet/mailbox/action/MailboxAction.java |
portletURL.setParameter("order_id", order.getOrderId()); | portletURL.setParameter("orderId", order.getOrderId()); | public static String getPayPalReturnURL( PortletURL portletURL, ShoppingOrder order) { portletURL.setParameter( "struts_action", "/shopping/checkout"); portletURL.setParameter(Constants.CMD, Constants.VIEW); portletURL.setParameter("order_id", order.getOrderId()); return portletURL.toString(); } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f50330eba6c1a1fd6ffe7fce92a806c125da6a18/ShoppingUtil.java/clean/portal-ejb/src/com/liferay/portlet/shopping/util/ShoppingUtil.java |
boolean changed= false; | boolean offsetsInitialized= false; boolean offsetsChanged= false; | public boolean updateMarker(IMarker marker, IDocument document, Position position) { if (position == null) return true; if (position.isDeleted()) return false; boolean changed= false; int markerStart= MarkerUtilities.getCharStart(marker); int markerEnd= MarkerUtilities.getCharEnd(marker); if (marker... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d93c396e967ccc4bc1c4a484810017c0785dfd49/BasicMarkerUpdater.java/buggy/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/BasicMarkerUpdater.java |
changed= true; | offsetsChanged= true; | public boolean updateMarker(IMarker marker, IDocument document, Position position) { if (position == null) return true; if (position.isDeleted()) return false; boolean changed= false; int markerStart= MarkerUtilities.getCharStart(marker); int markerEnd= MarkerUtilities.getCharEnd(marker); if (marker... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d93c396e967ccc4bc1c4a484810017c0785dfd49/BasicMarkerUpdater.java/buggy/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/BasicMarkerUpdater.java |
changed= true; | offsetsChanged= true; | public boolean updateMarker(IMarker marker, IDocument document, Position position) { if (position == null) return true; if (position.isDeleted()) return false; boolean changed= false; int markerStart= MarkerUtilities.getCharStart(marker); int markerEnd= MarkerUtilities.getCharEnd(marker); if (marker... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d93c396e967ccc4bc1c4a484810017c0785dfd49/BasicMarkerUpdater.java/buggy/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/BasicMarkerUpdater.java |
if (changed && MarkerUtilities.getLineNumber(marker) != -1) { | if (!offsetsInitialized || (offsetsChanged && MarkerUtilities.getLineNumber(marker) != -1)) { | public boolean updateMarker(IMarker marker, IDocument document, Position position) { if (position == null) return true; if (position.isDeleted()) return false; boolean changed= false; int markerStart= MarkerUtilities.getCharStart(marker); int markerEnd= MarkerUtilities.getCharEnd(marker); if (marker... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d93c396e967ccc4bc1c4a484810017c0785dfd49/BasicMarkerUpdater.java/buggy/bundles/org.eclipse.ui/Eclipse UI Text Editor/org/eclipse/ui/texteditor/BasicMarkerUpdater.java |
Asserts.notNull(type, "type shouldn't be null."); | assert type != null : "type shouldn't be null."; | private IRubyObject defaultObjectUnmarshal(IRubyObject proc) throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); // ... FIXME: handle if class doesn't exist ... RubyClass type = (RubyClass) runtime.getClasses().getClassFromPath(className.asSymbol()); Asserts.notNu... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/UnmarshalStream.java/buggy/src/org/jruby/runtime/marshal/UnmarshalStream.java |
if (ProgressManager.getInstance().getRootElements(false).length == 0) { | if (ProgressManager.getInstance().getRootElements(Policy.DEBUG_SHOW_SYSTEM_JOBS).length == 0) { | void handleDetailsButtonSelect() { Shell shell = getShell(); Point shellSize = shell.getSize(); Composite composite = (Composite) getDialogArea(); if (viewer != null) { viewer.getControl().dispose(); viewer = null; composite.layout(); shell.set... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5131f101b267d5bee08ae1ed9a25ab22ccd38982/ProgressMonitorJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java |
viewer, true); | viewer, !Policy.DEBUG_SHOW_SYSTEM_JOBS); | void handleDetailsButtonSelect() { Shell shell = getShell(); Point shellSize = shell.getSize(); Composite composite = (Composite) getDialogArea(); if (viewer != null) { viewer.getControl().dispose(); viewer = null; composite.layout(); shell.set... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5131f101b267d5bee08ae1ed9a25ab22ccd38982/ProgressMonitorJobsDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressMonitorJobsDialog.java |
sb.append("import java.util.HashSet;"); | private void _createHBM(Entity entity) throws IOException { List pkList = entity.getPKList(); List columnList = entity.getColumnList(); StringBuffer sb = new StringBuffer(); // Package sb.append("package " + _packagePath + ".service.persistence;"); // Imports sb.append("import " + _packagePath + ".model." + ent... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5272ab30592a88344bf4f66910f1de0732e33f30/ServiceBuilder.java/buggy/portal-ejb/src/com/liferay/portal/tools/ServiceBuilder.java | |
sb.append("if (_" + col.getName() + " == null) {"); sb.append("_" + col.getName() + " = new HashSet();"); sb.append("}"); | private void _createHBM(Entity entity) throws IOException { List pkList = entity.getPKList(); List columnList = entity.getColumnList(); StringBuffer sb = new StringBuffer(); // Package sb.append("package " + _packagePath + ".service.persistence;"); // Imports sb.append("import " + _packagePath + ".model." + ent... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5272ab30592a88344bf4f66910f1de0732e33f30/ServiceBuilder.java/buggy/portal-ejb/src/com/liferay/portal/tools/ServiceBuilder.java | |
else if (col.isCollection()) { sb.append(entity.getVarName() + "HBM.set" + col.getMethodName() + "(new HashSet());"); } | private void _createPersistence(Entity entity) throws IOException { List pkList = entity.getPKList(); List columnList = entity.getColumnList(); List finderList = entity.getFinderList(); String pkClassName = entity.getPKClassName(); String pkVarName = entity.getPKVarName(); StringBuffer sb = new StringBuffer(); ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/5272ab30592a88344bf4f66910f1de0732e33f30/ServiceBuilder.java/buggy/portal-ejb/src/com/liferay/portal/tools/ServiceBuilder.java | |
preview.dispose(); | preview.dispose(); | private void clearPreviews() { for (Iterator i = previewSet.iterator(); i.hasNext();) { IPresentationPreview preview = (IPresentationPreview) i.next(); try { preview.dispose(); } catch (RuntimeException e) { WorkbenchPlugin.log(RESOURC... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ecb04eea5d62126494445fc68a862be7c2074997/ColorsAndFontsPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java |
public void dispose() { super.dispose(); clearPreviews(); colorRegistry.dispose(); fontRegistry.dispose(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ecb04eea5d62126494445fc68a862be7c2074997/ColorsAndFontsPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java | ||
ITheme theme = new ITheme() { public void addPropertyChangeListener(IPropertyChangeListener listener) { currentTheme.addPropertyChangeListener(listener); } public void removePropertyChangeListener(IPropertyChangeListener listener) { currentTheme.removePropertyChangeListener(listener); } public String getId() { ret... | ITheme theme = getCascadingTheme(); | private void updateCategorySelection(String categoryId) { Object [] defintions; String key = categoryId; ThemeElementCategory category = null; if (categoryId == null) { key = "uncategorized"; //$NON-NLS-1$ } else { int idx = Arrays.binarySearch(themeRegistry.getCategories(), categoryId, IThemeRegistry... | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ecb04eea5d62126494445fc68a862be7c2074997/ColorsAndFontsPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java |
if (node.isFriend() || node.isSupernode() | if (node.isFriend() || (node.isSupernode() && !offlineTooLong) | private void buildReconnectionQueue() { // Process only valid nodes Member[] nodes = getValidNodes(); int nBefore = reconnectionQueue.size(); synchronized (reconnectionQueue) { reconnectionQueue.clear(); // Offline limit time, all nodes before this time are not gett... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/7192ad1dd27e087f666e5cc30d7aa1a1c4b96e5b/NodeManager.java/buggy/src/main/de/dal33t/powerfolder/net/NodeManager.java |
log().warn( | log().info( | private boolean loadNodesFrom(String filename) { File nodesFile = new File(Controller.getMiscFilesLocation(), filename); if (!nodesFile.exists()) { // Try harder in local base nodesFile = new File(filename); } if (!nodesFile.exists()) { log().warn( ... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/7192ad1dd27e087f666e5cc30d7aa1a1c4b96e5b/NodeManager.java/buggy/src/main/de/dal33t/powerfolder/net/NodeManager.java |
q.setCacheable(true); | q.setCacheable(false); | public int getGroupsSize(String pk) throws SystemException { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETGROUPSSIZE); q.setCacheable(true); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.LONG); QueryPos qPos = QueryPos.getInstance(q); qPos... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c87a9e5474551de7510843e3bbf71a043bcf1043/RolePersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/RolePersistence.java |
q.setCacheable(true); | q.setCacheable(false); | public int getPermissionsSize(String pk) throws SystemException { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETPERMISSIONSSIZE); q.setCacheable(true); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.LONG); QueryPos qPos = QueryPos.getInstance(... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c87a9e5474551de7510843e3bbf71a043bcf1043/RolePersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/RolePersistence.java |
q.setCacheable(true); | q.setCacheable(false); | public int getUsersSize(String pk) throws SystemException { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETUSERSSIZE); q.setCacheable(true); q.addScalar(HibernateUtil.getCountColumnName(), Hibernate.LONG); QueryPos qPos = QueryPos.getInstance(q); qPos.a... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/c87a9e5474551de7510843e3bbf71a043bcf1043/RolePersistence.java/buggy/portal-ejb/src/com/liferay/portal/service/persistence/RolePersistence.java |
IPersistentMap set = new PersistentHybridMap(1001); | IPersistentMap set = new PersistentHashtableMap(1001); | static public void main(String args[]){ if(args.length != 1) System.err.println("Usage: RBTree n"); int n = Integer.parseInt(args[0]); Integer[] ints = new Integer[n]; for(int i = 0; i < ints.length; i++) { ints[i] = new Integer(i); } Collections.shuffle(Arrays.asList(ints)); //force the ListMap class loading now P... | 52334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52334/3e18fcb60b00f869f74b112af5b5d90b9a9edba0/PersistentTree.java/clean/src/org/clojure/runtime/PersistentTree.java |
noEmailInIdAccount.replaceAll("[ \t\r\n]",""); | noEmailInIdAccount.replaceAll("[\t\r\n]",""); | private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); String invalidEmailInIdAccountString = ServerConfigurationService.getString("invalidEmailInIdAccountString", null); //accept noEmailInIdAccounts and/or emailIn... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/34811a961d9639b83b7470f9bab99381a5817e3f/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
String noEmailInIdAccount = StringUtil.trimToNull(noEmailInIdAccountArray[i].replaceAll("[ \t\r\n]","")); | String noEmailInIdAccount = StringUtil.trimToNull(noEmailInIdAccountArray[i].replaceAll("[\t\r\n]","")); | public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //... | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/34811a961d9639b83b7470f9bab99381a5817e3f/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java |
setModified(true); | public void setAltShipping(int altShipping) { if (altShipping != _altShipping) { _altShipping = altShipping; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setCartId(String cartId) { if (((cartId == null) && (_cartId != null)) || ((cartId != null) && (_cartId == null)) || ((cartId != null) && (_cartId != null) && !cartId.equals(_cartId))) { if (!XSS_ALLOW_CARTID) { cartId = XSSUtil.strip(cartId); } _cartId = cartId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setCouponIds(String couponIds) { if (((couponIds == null) && (_couponIds != null)) || ((couponIds != null) && (_couponIds == null)) || ((couponIds != null) && (_couponIds != null) && !couponIds.equals(_couponIds))) { if (!XSS_ALLOW_COUPONIDS) { couponIds = XSSUtil.strip(couponIds); } _co... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setInsure(boolean insure) { if (insure != _insure) { _insure = insure; setModified(true); } } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setItemIds(String itemIds) { if (((itemIds == null) && (_itemIds != null)) || ((itemIds != null) && (_itemIds == null)) || ((itemIds != null) && (_itemIds != null) && !itemIds.equals(_itemIds))) { if (!XSS_ALLOW_ITEMIDS) { itemIds = XSSUtil.strip(itemIds); } _itemIds = itemIds; setModi... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
setModified(true); | public void setUserName(String userName) { if (((userName == null) && (_userName != null)) || ((userName != null) && (_userName == null)) || ((userName != null) && (_userName != null) && !userName.equals(_userName))) { if (!XSS_ALLOW_USERNAME) { userName = XSSUtil.strip(userName); } _userName = user... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/f4d6afc6707f57fd84bf6b624f0c119657b0a766/ShoppingCartModel.java/clean/portal-ejb/src/com/liferay/portlet/shopping/model/ShoppingCartModel.java | |
if (options.hasOption("p")) { System.err.println(options.getOption("p")); | if (commandLine.hasOption("p")) { | public static void startPowerFolder(String[] args) { // Command line parsing Options options = new Options(); options .addOption( "c", "config", true, "<config file>. Sets the configuration file to start. Default: PowerFolde... | 51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/90bb441a258d075ba21535a3d214ff6b5194113c/PowerFolder.java/clean/src/main/de/dal33t/powerfolder/PowerFolder.java |
ActionRequestImpl reqImpl = (ActionRequestImpl)req; ActionResponseImpl resImpl = (ActionResponseImpl)res; | actionReqImpl = (ActionRequestImpl)req; actionResImpl = (ActionResponseImpl)res; | private void _invoke( PortletRequest req, PortletResponse res, boolean action) throws IOException, PortletException { if (_portletConfig.isWARFile()) { String path = StringPool.SLASH + _portletConfig.getPortletName() + "/invoke"; RequestDispatcher rd = _portletCtx.getServletContext().getRequestDispatcher... | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/42e50ccc98fbe9828f2c9204202bbbe54641cf09/CachePortlet.java/buggy/portal-ejb/src/com/liferay/portlet/CachePortlet.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.