bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void setFunctions(Map functions) { this.functions = functions; } | public void setFunctions(Map functions) { this.springFunctions = functions; } | 43,288 |
public void objectAdded(NamingEvent evt); | public void objectAdded(NamingEvent evt); | 43,289 |
public void objectRemoved(NamingEvent evt); | public void objectRemoved(NamingEvent evt); | 43,290 |
public void objectRenamed(NamingEvent evt); | public void objectRenamed(NamingEvent evt); | 43,291 |
private static void stripTextContent(LinkedList stripped) { for (Iterator i = stripped.iterator(); i.hasNext();) if (i.next() instanceof TextContent) i.remove(); } | private static void stripTextContent(LinkedList stripped) { for (Iterator i = stripped.iterator(); i.hasNext();) if (i.next() instanceof TextContent) i.remove(); } | 43,292 |
public String replaceAll (String replacement) { reset(); return pattern.getRE().substituteAll(input, replacement, position); } | public String replaceAll (String replacement) { reset(); return pattern.getRE().substituteAll(input, replacement, position, RE.REG_REPLACE_USE_BACKSLASHESCAPE); } | 43,293 |
public void namingExceptionThrown(NamingExceptionEvent evt); | public void namingExceptionThrown(NamingExceptionEvent evt); | 43,294 |
public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model, new GraphLayoutCache(model, new WorkflowCellViewFactory())); ToolTipManager.sharedInstance().registerComponent(this); this.layout = layout; setDescriptor(descriptor); if(doAutoLayo... | public WorkflowGraph(GraphModel model, WorkflowDescriptor descriptor, Layout layout, boolean doAutoLayout) { super(model); getGraphLayoutCache().setFactory(new WorkflowCellViewFactory()); getGraphLayoutCache().setSelectsAllInsertedCells(false); ToolTipManager.sharedInstance().registerComponent(this); this.l... | 43,295 |
public String convertValueToString(Object value) { if(value == null) return null; if(value instanceof CustomEdgeView) { return ((CustomEdgeView)value).getCell().toString(); } else { return value.toString(); } } | public String convertValueToString(Object value) { if(value == null) return null; if(value instanceof EdgeView) { return ((CustomEdgeView)value).getCell().toString(); } else { return value.toString(); } } | 43,296 |
public String convertValueToString(Object value) { if(value == null) return null; if(value instanceof CustomEdgeView) { return ((CustomEdgeView)value).getCell().toString(); } else { return value.toString(); } } | public String convertValueToString(Object value) { if(value == null) return null; if(value instanceof CustomEdgeView) { return ((EdgeView)value).getCell().toString(); } else { return value.toString(); } } | 43,297 |
public CreateStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { super("Step"); this.workflow = workflow; this.model = model; this.location = location; } | public CreateStep(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location) { super(ResourceManager.getString("step")); this.workflow = workflow; this.model = model; this.location = location; } | 43,298 |
public CreateJoin(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location){ super("Join"); this.workflow = workflow; this.model = model; this.location = location; } | public CreateJoin(WorkflowDescriptor workflow, WorkflowGraphModel model, Point location){ super("Join"); this.workflow = workflow; this.model = model; this.location = location; } | 43,299 |
public SetGridSize(WorkflowGraph graph, Point location, int gridSize) { super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler); } | public SetGridSize(WorkflowGraph graph, int gridSize) { super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler); } | 43,300 |
public SetGridSize(WorkflowGraph graph, Point location, int gridSize) { super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler); } | public SetGridSize(WorkflowGraph graph, Point location, int gridSize) { super(gridSize>1 ? gridSize + " pt" : ResourceManager.getString("grid.disable")); setIcon(new GridIcon(gridSize)); customHandler = new SetGridSizeWidthHandler(graph, location, gridSize, this.getName()); addActionListener(customHandler); } | 43,301 |
float determineMaxLineLength() { // if the longest line is cached, return the cached value if (maxLineLength != -1) return maxLineLength; // otherwise we have to go through all the lines and find it Element el = getElement(); Segment seg = getLineBuffer(); float span = 0; for (int i = 0... | float determineMaxLineLength() { // if the longest line is cached, return the cached value if (maxLineLength != -1) return maxLineLength; // otherwise we have to go through all the lines and find it Element el = getElement(); Segment seg = getLineBuffer(); float span = 0; for (int i = 0... | 43,302 |
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { Element line = getElement().getElement(lineIndex); int startOffset = line.getStartOffset(); int endOffset = line.getEndOffset(); if (selectionStart <= startOffset) // Selection starts before the lin... | protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { Element line = getElement().getElement(lineIndex); int startOffset = line.getStartOffset(); int endOffset = line.getEndOffset() - 1; if (selectionStart <= startOffset) // Selection starts before the... | 43,303 |
protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { Element line = getElement().getElement(lineIndex); int startOffset = line.getStartOffset(); int endOffset = line.getEndOffset(); if (selectionStart <= startOffset) // Selection starts before the lin... | protected void drawLine(int lineIndex, Graphics g, int x, int y) { try { Element line = getElement().getElement(lineIndex); int startOffset = line.getStartOffset(); int endOffset = line.getEndOffset(); if (selectionStart <= startOffset) // Selection starts before the lin... | 43,304 |
protected Segment getLineBuffer() { if (lineBuffer == null) lineBuffer = new Segment(); return lineBuffer; } | protected final Segment getLineBuffer() { if (lineBuffer == null) lineBuffer = new Segment(); return lineBuffer; } | 43,305 |
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { float oldMaxLineLength = maxLineLength; Rectangle alloc = a.getBounds(); Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the ... | protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { float oldMaxLineLength = maxLineLength; Rectangle alloc = a.getBounds(); Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the ... | 43,306 |
public int charWidth(char ch) { return 1; } | public int charWidth(int ch) { return 1; } | 43,307 |
public int charWidth(char ch) { return 1; } | public int charWidth(char ch) { return charWidth((char) ch); } | 43,308 |
public ElementChange getChange(Element element); | public ElementChange getChange(Element element); | 43,309 |
public int getOffset(); | public int getOffset(); | 43,310 |
public EventType getType(); | public EventType getType(); | 43,311 |
public Element[] getChildrenRemoved(); | public Element[] getChildrenRemoved(); | 43,312 |
public Element[] getChildrenAdded(); | public Element[] getChildrenAdded(); | 43,313 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0) { return getTabbedTextOffset(s, fm, x0, x, te, p0, true); } | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0, boolean round) { return getTabbedTextOffset(s, fm, x0, x, te, p0, true); } | 43,314 |
public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0) { return getTabbedTextOffset(s, fm, x0, x, te, p0, true); } | public static final int getTabbedTextOffset(Segment s, FontMetrics fm, int x0, int x, TabExpander te, int p0) { int pos; int currentX = x0; for (pos = 0; pos < s.count; pos++) { char nextChar = s.array[s.offset+pos]; if (nextChar == 0) { if (! round && pos > 0) pos-... | 43,315 |
public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca... | public void run() { try { if (trace) { log.trace("handing " + this.msg + " over to the remoting layer"); } MessagingMarshallable mm = new MessagingMarshallable(connection.getUsingVersion(), this); connection.getCallbackClient().invoke(mm); } ca... | 43,316 |
ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID); | ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID); | 43,317 |
public void menuCanceled(MenuEvent event); | public void menuCanceled(MenuEvent event); | 43,327 |
public void menuDeselected(MenuEvent event); | public void menuDeselected(MenuEvent event); | 43,328 |
public void menuSelected(MenuEvent event); | public void menuSelected(MenuEvent event); | 43,329 |
public void processKeyEvent(KeyEvent e) throws NotImplementedException { throw new UnsupportedOperationException("not implemented"); } | public void processKeyEvent(KeyEvent e) { throw new UnsupportedOperationException("not implemented"); } | 43,330 |
public void processKeyEvent(KeyEvent e) throws NotImplementedException { throw new UnsupportedOperationException("not implemented"); } | public void processKeyEvent(KeyEvent e) throws NotImplementedException { MenuElement[] selection = (MenuElement[]) selectedPath.toArray(new MenuElement[selectedPath.size()]); MenuElement[] path; for (int index = selection.length - 1; index >= 0; index--) { MenuElement el = selection[index]; MenuElement[] ... | 43,331 |
public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | public static void paint(Context c, Box box, boolean stylePushed, boolean restyle) { Box block = (Box) box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset if (block instanceof AnonymousBlockBox) { InlineRendering.paintInlineContext(c, block, res... | 43,332 |
public Object handleClosing(Invocation invocation) throws Throwable { ConsumerState consumerState = getState(invocation); // First we call close on the messagecallbackhandler which waits for onMessage invocations // to complete and then cancels anything in the client buffer. /... | public Object handleClosing(Invocation invocation) throws Throwable { ConsumerState consumerState = getState(invocation); // First we call close on the messagecallbackhandler which waits for onMessage invocations // to complete and then cancels anything in the client buffer. // any further messages ... | 43,333 |
public void installUI(JComponent c) { tree = (JTree) c; configureLayoutCache(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background"... | public void installUI(JComponent c) { tree = (JTree) c; configureLayoutCache(); UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background"... | 43,335 |
public void uninstallUI(JComponent c) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); uninstallKeyboardActions(); tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionLi... | public void uninstallUI(JComponent c) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); uninstallKeyboardActions(); tree.removePropertyChangeListener(propertyChangeListener); tree.removeFocusListener(focusListener); tree.removeTreeSelectionListener(treeSelectionLi... | 43,336 |
public void bind(String name, Object obj) throws NamingException { getURLOrDefaultInitCtx(name).bind(name, obj); } | public void bind(String name, Object obj) throws NamingException { getURLOrDefaultInitCtx(name).bind(name, obj); } | 43,338 |
public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } | public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } | 43,339 |
public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } | public static Connection getConnection(String url, String user, String password) throws SQLException { Driver d = getDriver(url); if (d == null) throw new SQLException("Driver not found for URL: " + url); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("passwo... | 43,340 |
public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } | public static Connection getConnection(String url, String user, String password) throws SQLException { Properties p = new Properties(); if (user != null) p.setProperty("user", user); if (password != null) p.setProperty("password", password); return getConnection(url, p); } | 43,341 |
public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g... | public void replaceSelection(String content) { Caret caret = getCaret(); StyledDocument doc = getStyledDocument(); int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = g... | 43,342 |
protected EditorKit createDefaultEditorKit() { return new DefaultEditorKit(); } | protected EditorKit createDefaultEditorKit() { return new PlainEditorKit(); } | 43,343 |
public void paintChild(Context c, Box box, Renderer layout) { if (box.isChildrenExceedBounds()) { layout.paint(c, box); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Rectangle... | public void paintChild(Context c, Box box, Renderer layout) { if (box.isChildrenExceedBounds()) { layout.paint(c, box); return; } if (Configuration.isTrue("xr.renderer.viewport-repaint", false)) { if (c.getGraphics().getClip() != null) { Rectangle... | 43,344 |
protected void configure(Message m, int deliveryMode, int priority, long timeToLive, Destination dest) throws JMSException { m.setJMSDeliveryMode(deliveryMode); if (isTimestampDisabled) { m.setJMSTimestamp(0l); } else { m.setJMSTimest... | protected void configure(Message m, int deliveryMode, int priority, long timeToLive, Destination dest) throws JMSException { ((JBossMessage)m).setPropertiesReadWrite(false); m.setJMSDeliveryMode(deliveryMode); if (isTimestampDisabled) { ((JBossMessage)m).setProper... | 43,345 |
protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | 43,346 |
protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | 43,347 |
protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | 43,348 |
protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | 43,349 |
protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | 43,350 |
protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | protected void init(Element result) { oldStatus = result.getAttribute("old-status"); status = result.getAttribute("status"); try { setId(Integer.parseInt(result.getAttribute("id"))); } catch (NumberFormatException e) { } dueDate = result.getAttribute("due-date");... | 43,351 |
CoreDestinationManager(DestinationManagerImpl destinationManager) throws Exception { queueMap = new HashMap(); topicMap = new HashMap(); this.destinationManager = destinationManager; } | CoreDestinationManager(DestinationManagerImpl destinationManager) throws Exception { queueMap = new HashMap(); topicMap = new HashMap(); this.destinationManager = destinationManager; } | 43,352 |
public Topic(String name, MessageStore ms, PersistenceManager pm, TransactionManager tm) { super(name, ms, pm, tm); router = new PointToMultipointRouter(); } | public Topic(String name, MessageStore ms) { super(name, ms, pm, tm); router = new PointToMultipointRouter(); } | 43,354 |
public Topic(String name, MessageStore ms, PersistenceManager pm, TransactionManager tm) { super(name, ms, pm, tm); router = new PointToMultipointRouter(); } | public Topic(String name, MessageStore ms, PersistenceManager pm, TransactionManager tm) { super(name, ms, pm, tm); router = new PointToMultipointRouter(); } | 43,355 |
public CatalogContentHandler() { this.entityMap = new HashMap(); } | public CatalogContentHandler() { this.entityMap = new HashMap(); } | 43,356 |
public Map getEntityMap() { return entityMap; } | public Map getEntityMap() { return entityMap; } | 43,357 |
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { if ( localName.equals("public")) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } } | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { if ( localName.equals("public")) { entityMap.put(atts.getValue("publicId"), atts.getValue("uri")); } } | 43,358 |
public FSCatalog() { } | public FSCatalog() { } | 43,359 |
private void addHandlers(XMLReader xmlReader, ContentHandler ch) { try { // add our own entity resolver //xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setContentHandler(ch); xmlReader.setErrorHandler( new ErrorHandler() { ... | private void addHandlers(XMLReader xmlReader, ContentHandler ch) { try { // add our own entity resolver //xmlReader.setEntityResolver(FSEntityResolver.instance()); xmlReader.setContentHandler(ch); xmlReader.setErrorHandler( new ErrorHandler() { ... | 43,360 |
public void error( SAXParseException ex ) { XRLog.xmlEntities(Level.WARNING, ex.getMessage()); } | public void error( SAXParseException ex ) { XRLog.xmlEntities(Level.WARNING, ex.getMessage()); } | 43,361 |
public void fatalError( SAXParseException ex ) { XRLog.xmlEntities(Level.WARNING, ex.getMessage()); } | public void fatalError( SAXParseException ex ) { XRLog.xmlEntities(Level.WARNING, ex.getMessage()); } | 43,362 |
public void warning( SAXParseException ex ) { XRLog.xmlEntities(Level.WARNING, ex.getMessage()); } | public void warning( SAXParseException ex ) { XRLog.xmlEntities(Level.WARNING, ex.getMessage()); } | 43,363 |
public Map parseCatalog(String catalogURI) { URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Co... | public Map parseCatalog(String catalogURI) { URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Co... | 43,364 |
public Map parseCatalog(String catalogURI) { URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Co... | public Map parseCatalog(String catalogURI) { URL url = null; Map map = null; try { url = FSCatalog.class.getClassLoader().getResource(catalogURI); map = parseCatalog(new InputSource(new BufferedInputStream(url.openStream()))); } catch ( Exception ex ) { XRLog.xmlEntities( Level.WARNING, "Co... | 43,365 |
private void setFeature(XMLReader xmlReader, String featureUri, boolean value) { try { xmlReader.setFeature( featureUri, value); XRLog.xmlEntities(Level.FINE, "SAX Parser feature: " + featureUri.substring(featureUri.lastIndexOf("/")) + " set to " + ... | private void setFeature(XMLReader xmlReader, String featureUri, boolean value) { try { xmlReader.setFeature( featureUri, value); XRLog.xmlEntities(Level.FINE, "SAX Parser feature: " + featureUri.substring(featureUri.lastIndexOf("/")) + " set to " + ... | 43,366 |
public static void xmlEntities( Level level, String msg ) { log( XML_ENTITIES, level, msg ); } | public static void xmlEntities( Level level, String msg ) { log( XML_ENTITIES, level, msg ); } | 43,367 |
public static WorkflowDescriptor load(final InputStream is, boolean validate) throws SAXException, IOException, InvalidWorkflowDescriptorException { return load(is, null, validate); } | public static WorkflowDescriptor load(final InputStream is, boolean validate) throws SAXException, IOException, InvalidWorkflowDescriptorException { return load(is, null, validate); } | 43,368 |
public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(RE.getReplacement(replacement, match, RE.REG_REPLACE_USE_BACKSLASHESCAPE)); appendPosition... | public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(RE.getReplacement(replacement, match, RE.REG_REPLACE_USE_BACKSLASHESCAPE)); appendPosition... | 43,369 |
public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(RE.getReplacement(replacement, match, RE.REG_REPLACE_USE_BACKSLASHESCAPE)); appendPosition... | public Matcher appendReplacement (StringBuffer sb, String replacement) throws IllegalStateException { assertMatchOp(); sb.append(input.subSequence(appendPosition, match.getStartIndex()).toString()); sb.append(RE.getReplacement(replacement, match, RE.REG_REPLACE_USE_BACKSLASHESCAPE)); appendPosition... | 43,370 |
public boolean find () { boolean first = (match == null); match = pattern.getRE().getMatch(input, position); if (match != null) { int endIndex = match.getEndIndex(); // Are we stuck at the same position? if (!first && endIndex == position) { match = null; // Not at the end of the input yet? ... | public boolean find () { boolean first = (match == null); match = pattern.getRE().getMatch(input, position); if (match != null) { int endIndex = match.getEndIndex(); // Are we stuck at the same position? if (!first && endIndex == position) { match = null; // Not at the end of the input yet? ... | 43,371 |
public boolean lookingAt () { match = pattern.getRE().getMatch(input, 0); if (match != null) { if (match.getStartIndex() == 0) { position = match.getEndIndex(); return true; } match = null; } return false; } | public boolean lookingAt () { match = pattern.getRE().getMatch(input, 0); if (match != null) { if (match.getStartIndex() == 0) { position = match.getEndIndex(); return true; } match = null; } return false; } | 43,372 |
public boolean matches () { match = pattern.getRE().getMatch(input, 0, RE.REG_TRY_ENTIRE_MATCH); if (match != null) { if (match.getStartIndex() == 0) { position = match.getEndIndex(); if (position == input.length()) return true; } match = null; } return false; } | public boolean matches () { match = pattern.getRE().getMatch(input, 0, RE.REG_TRY_ENTIRE_MATCH); if (match != null) { if (match.getStartIndex() == 0) { position = match.getEndIndex(); if (position == input.length()) return true; } match = null; } return false; } | 43,373 |
public boolean matches () { match = pattern.getRE().getMatch(input, 0, RE.REG_TRY_ENTIRE_MATCH); if (match != null) { if (match.getStartIndex() == 0) { position = match.getEndIndex(); if (position == input.length()) return true; } match = null; } return false; } | public boolean matches () { match = pattern.getRE().getMatch(input, 0, RE.REG_TRY_ENTIRE_MATCH); if (match != null) { if (match.getStartIndex() == 0) { position = match.getEndIndex(); if (position == input.length()) return true; } match = null; } return false; } | 43,374 |
public String replaceAll (String replacement) { reset(); return pattern.getRE().substituteAll(input, replacement, position, RE.REG_REPLACE_USE_BACKSLASHESCAPE); } | public String replaceAll (String replacement) { reset(); return pattern.getRE().substituteAll(input, replacement, position, RE.REG_REPLACE_USE_BACKSLASHESCAPE); } | 43,375 |
public String replaceFirst (String replacement) { reset(); // Semantics might not quite match return pattern.getRE().substitute(input, replacement, position, RE.REG_REPLACE_USE_BACKSLASHESCAPE); } | public String replaceFirst (String replacement) { reset(); // Semantics might not quite match return pattern.getRE().substitute(input, replacement, position, RE.REG_REPLACE_USE_BACKSLASHESCAPE); } | 43,376 |
private ConnectionFactory createConnectionFactory() throws Exception { ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(); return new JBossConnectionFactory(proxy); } | private ConnectionFactory createConnectionFactory(String connFactoryID) throws Exception { ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(); return new JBossConnectionFactory(proxy); } | 43,378 |
private ConnectionFactory createConnectionFactory() throws Exception { ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(); return new JBossConnectionFactory(proxy); } | private ConnectionFactory createConnectionFactory() throws Exception { ConnectionFactoryDelegate proxy = (ConnectionFactoryDelegate)createProxy(connFactoryID); return new JBossConnectionFactory(proxy); } | 43,379 |
private Object createProxy() throws Exception { Serializable oid = connFactoryAdvisor.getName(); String stackName = "ConnectionFactoryStack"; AdviceStack stack = AspectManager.instance().getAdviceStack(stackName); // TODO why do I need an advisor to create an interceptor stack? Interceptor... | private Object createProxy(String connFactoryID) throws Exception { Serializable oid = connFactoryAdvisor.getName(); String stackName = "ConnectionFactoryStack"; AdviceStack stack = AspectManager.instance().getAdviceStack(stackName); // TODO why do I need an advisor to create an interceptor sta... | 43,380 |
public ConnectionFactoryDelegate getConnectionFactoryDelegate() { return connFactoryDelegate; } | public ConnectionFactoryDelegate getConnectionFactoryDelegate(String connectionFactoryID) { return connFactoryDelegate; } | 43,383 |
public ConnectionFactoryDelegate getConnectionFactoryDelegate() { return connFactoryDelegate; } | public ConnectionFactoryDelegate getConnectionFactoryDelegate() { return (ConnectionFactoryDelegate)connFactoryDelegates.get(connectionFactoryID); } | 43,384 |
public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); initialContext = new InitialContext(jndiEnvironment); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new Clien... | public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); initialContext = new InitialContext(jndiEnvironment); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new Clien... | 43,385 |
public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); initialContext = new InitialContext(jndiEnvironment); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new Clien... | public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); initialContext = new InitialContext(jndiEnvironment); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new Clien... | 43,386 |
public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); unbindConnectionFactory(); mbeanServer.unregisterMBean(DESTINATION_MANAGER_OBJECT_NAME); tearDownAdvisors(); started = false; log.debug(this + " stopped")... | public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); tearDownConnectionFactories(); mbeanServer.unregisterMBean(DESTINATION_MANAGER_OBJECT_NAME); tearDownAdvisors(); started = false; log.debug(this + " stopp... | 43,387 |
public String createQueue(String name, String jndiName) throws Exception { return createDestination(true, name, jndiName); } | public String createQueue(String name) throws Exception { return createDestination(true, name, jndiName); } | 43,389 |
public String createQueue(String name, String jndiName) throws Exception { return createDestination(true, name, jndiName); } | public String createQueue(String name, String jndiName) throws Exception { return createDestination(true, name, null); } | 43,390 |
public String createTopic(String name, String jndiName) throws Exception { return createDestination(false, name, jndiName); } | public String createTopic(String name) throws Exception { return createDestination(false, name, jndiName); } | 43,391 |
public String createTopic(String name, String jndiName) throws Exception { return createDestination(false, name, jndiName); } | public String createTopic(String name, String jndiName) throws Exception { return createDestination(false, name, null); } | 43,392 |
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { //u.p("line calc with avail = " + avail); // calculate the starting index int start = 0; if ( prev != null && pre... | privateInlineBoxcalculateInline(Contextc,Nodenode,intavail,intmax_width,LineBoxline,InlineBoxprev,Elementcontaining_block,InlineBoxprev_align){//u.p("linecalcwithavail="+avail);//calculatethestartingindexintstart=0;if(prev!=null&&prev.node==node){start=prev.end_index;}//getthetextofthenodeStringtext=node.getNodeValue()... | 43,393 |
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { //u.p("line calc with avail = " + avail); // calculate the starting index int start = 0; if ( prev != null && pre... | privateInlineBoxcalculateInline(Contextc,Nodenode,intavail,intmax_width,LineBoxline,InlineBoxprev,Elementcontaining_block,InlineBoxprev_align){//u.p("linecalcwithavail="+avail);//calculatethestartingindexintstart=0;if(prev!=null&&prev.node==node){start=prev.end_index;}//getthetextofthenodeStringtext=node.getNodeValue()... | 43,394 |
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { //u.p("line calc with avail = " + avail); // calculate the starting index int start = 0; if ( prev != null && pre... | private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { //u.p("line calc with avail = " + avail); // calculate the starting index int start = 0; if ( prev != null && pre... | 43,395 |
public Box layoutChildren( Context c, Box box ) { if ( isHiddenNode( box.getElement(), c ) ) { return box; } //u.p("InlineLayout.layoutChildren(: " + box); //u.dump_stack(); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); ... | public Box layoutChildren( Context c, Box box ) { if ( isHiddenNode( box.getElement(), c ) ) { return box; } //u.p("InlineLayout.layoutChildren(: " + box); //u.dump_stack(); //u.p("parent box = " + c.parent_box); //u.p("placement point = " + c.placement_point); ... | 43,396 |
public boolean hasProperty( String propName ) { if(propName.equals("width")) return true; if(propName.equals("height")) return true; if(propName.equals("top")) return true; if(propName.equals("left")) return true; if(propName.equals("bottom")) return true; if(propName.equal... | public boolean hasProperty( String propName ) { if(propName.equals("width")) return true; if(propName.equals("height")) return true; if(propName.equals("top")) return true; if(propName.equals("left")) return true; if(propName.equals("bottom")) return true; if(propName.equal... | 43,397 |
public DerivedProperty propertyByName( String propName ) { //TODO: return these values when DerivedProperty and DerivedValue are disconnected from CSS return null; } | public DerivedProperty propertyByName(String propName) { //TODO: return these values when DerivedProperty and DerivedValue are disconnected from CSS return null; } | 43,398 |
public Dimension maximumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.maximum + i.left + i.right... | public Dimension maximumLayoutSize(Container parent) { synchronized (container.getTreeLock()) { if (container != parent) throw new AWTError("BoxLayout can't be shared"); checkTotalRequirements(); Insets i = container.getInsets(); return new Dimension(xTotal.maximum + i.left + i.right... | 43,399 |
void addLayoutComponent(Component component, Object contraints); | void addLayoutComponent(Component component, Object contraints); | 43,400 |
protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(i, reliable, System... | protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossMapMessage m = new JBossMapMessage(i, reliable, System... | 43,401 |
public JBossMapMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map coreHeaders, byte[] payloadAsByteArray, String jmsType, String correlationID, byte[] correlationIDBytes, JBossDestination destin... | public JBossMapMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, Map coreHeaders, byte[] payloadAsByteArray, String jmsType, String correlationID, byte[] correlationIDBytes, JBossDestination destin... | 43,402 |
protected void damageLineRange (int line0, int line1, Shape a, Component host) { if (a == null) return; Rectangle rec0 = lineToRect(a, line0); Rectangle rec1 = lineToRect(a, line1); if (rec0 == null || rec1 == null) // something went wrong, repaint the entire host to be safe host.repaint()... | protected void damageLineRange (int line0, int line1, Shape a, Component host) { if (a == null) return; Rectangle rec0 = lineToRect(a, line0); Rectangle rec1 = lineToRect(a, line1); if (rec0 == null || rec1 == null) // something went wrong, repaint the entire host to be safe host.repaint(r... | 43,404 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.