bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); if (messageHolders == null) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.append("]"); return sb.toStri... | 52,157 |
public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | 52,158 |
public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(((MessageHolder)i.next()).getMessa... | 52,159 |
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | 52,161 |
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | 52,162 |
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | 52,163 |
public void documentLoaded() { view.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } | public void documentLoaded () { view.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); } | 52,165 |
public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | public void init(String startPage) { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); ... | 52,166 |
public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | 52,167 |
public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | public void loadPage(final String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully ... | 52,169 |
public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | publicvoidloadPage(Stringurl_text){try{logger.info("LoadingPage:"+url_text);view.setCursor(newCursor(Cursor.WAIT_CURSOR));view.setDocument(url_text);view.addDocumentListener(this);updateButtons();setStatus("Successfullyloaded:"+url_text);if(listener!=null){listener.pageLoadSuccess(url_text,view.getDocumentTitle());}}ca... | 52,170 |
public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(BrowserPanel.this); updateButtons(); setStatus("Succe... | 52,171 |
public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | 52,172 |
public void setStatus(String txt) { status.text.setText(txt); } | public void setStatus (String txt) { status.text.setText(txt); } | 52,173 |
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(left, top, viewport.width, viewport.height); } | protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); } | 52,174 |
public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx) { return new Rectangle(left, top, viewport.width, viewport.height); } | public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); } | 52,175 |
public RemoteContext(int remoteServerIndex) throws Exception { String n = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.NAMING_SERVER_PREFIX + remoteServerIndex; log.info("Using this url for rmi server lookup " + n); namingDelegate = (NamingD... | public RemoteContext(int remoteServerIndex) throws Exception { String n = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.NAMING_SERVER_PREFIX + remoteServerIndex; namingDelegate = (NamingDelegate)Naming.lookup(n); } | 52,177 |
private String buildNested(NestedExpression nestedExpression, StringBuffer sel, List values) { sel.append("SELECT DISTINCT("); // Changed by Anthony on 2 June 2004, to query from OS_CURRENTSTEP instead //sel.append(entryId); sel.append(stepEntryId); sel.append(") FROM "); /... | private String buildNested(NestedExpression nestedExpression, StringBuffer sel, List values) { sel.append("SELECT DISTINCT("); // Changed by Anthony on 2 June 2004, to query from OS_CURRENTSTEP instead //sel.append(entryId); sel.append(stepEntryId); sel.append(") FROM "); /... | 52,179 |
public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... | public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + ',' + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... | 52,180 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 52,181 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 52,182 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { NestedExpression nestedEx... | 52,183 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 52,184 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 52,185 |
private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | 52,186 |
private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | 52,187 |
private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | 52,188 |
private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | 52,189 |
public void tearDown() throws Exception { ServerManagement.undeployTopic("TestTopic"); ServerManagement.deInit(); super.tearDown(); log.debug("tear down done"); } | public void tearDown() throws Exception { ServerManagement.undeployTopic("TestTopic"); super.tearDown(); log.debug("tear down done"); } | 52,190 |
public static boolean isDecoratable(Box box) { if (!(box.getContent() instanceof ReplacedContent)) { if (!(box.getContent() instanceof FloatedBlockContent)) { return true; } } return false; } | public static boolean isDecoratable(Box box) { if (!(box.getContent() instanceof InlineBlockContent)) { if (!(box.getContent() instanceof FloatedBlockContent)) { return true; } } return false; } | 52,191 |
private void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterator(... | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato... | 52,192 |
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // ... | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); /... | 52,193 |
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | 52,194 |
StylePush( String pseudo, Element e ) { _pseudo = pseudo; _elem = e; } | StylePush(String pseudo, Element e) { _pseudo = pseudo; _elem = e; } | 52,195 |
public void insertComponent(Component component) { // TODO: One space must be inserted here with attributes set to indicate // that the component must be displayed here. Have to figure out the // attributes. } | public void insertComponent(Component component) {SimpleAttributeSet atts = new SimpleAttributeSet(); atts.addAttribute(StyleConstants.ComponentAttribute, component); atts.addAttribute(StyleConstants.NameAttribute, StyleConstants.ComponentElementName); try { getDocument().insertString(getCaret().getDot(), " ", atts)... | 52,196 |
public void insertIcon(Icon icon) { // TODO: One space must be inserted here with attributes set to indicate // that the icon must be displayed here. Have to figure out the // attributes. } | public void insertIcon(Icon icon) {SimpleAttributeSet atts = new SimpleAttributeSet(); atts.addAttribute(StyleConstants.IconAttribute, icon); atts.addAttribute(StyleConstants.NameAttribute, StyleConstants.IconElementName); try { getDocument().insertString(getCaret().getDot(), " ", atts); } catch (BadLocationExceptio... | 52,197 |
public static boolean canBeSkipped(Context c, Box box) { Shape clip = c.getGraphics().getClip(); if (!box.isChildrenExceedBounds() && Configuration.isTrue("xr.renderer.viewport-repaint", false) && box.getState() != Box.CHILDREN_FLUX && clip != null && !(box... | public static boolean canBeSkipped(Context c, Box box) { Shape clip = c.getGraphics().getClip(); if (!box.isChildrenExceedBounds() && Configuration.isTrue("xr.renderer.viewport-repaint", false) && box.getState() != Box.CHILDREN_FLUX && clip != null && !(box... | 52,201 |
public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | 52,202 |
public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; ... | public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; ... | 52,204 |
public static void log(int level, String text) { if (isRemote()) { if (server == null) { log.debug("The remote server has not been created yet " + "so this log won't make it to the server!"); return; } try { ... | public static void log(int level, String text) { if (isRemote()) { if (server == null) { log.debug("The remote server has not been created yet " + "so this log won't make it to the server!"); return; } try { ... | 52,205 |
protected boolean removeEldestEntry( java.util.Map.Entry eldest ) { return size() > _cacheCapacity; } | protected boolean removeEldestEntry( java.util.Map.Entry eldest ) { return size() > _cacheCapacity; } | 52,206 |
public Stylesheet parse( java.io.Reader reader, StylesheetInfo info ) { InputSource is = new InputSource( reader ); CSSStyleSheet style = null; try { style = parser.parseStyleSheet( is ); } catch ( java.io.IOException e ) { throw new XRRuntimeException( "IOException... | public Stylesheet parse( java.io.Reader reader, StylesheetInfo info ) { InputSource is = new InputSource( reader ); CSSStyleSheet style = null; try { style = parser.parseStyleSheet( is ); } catch ( java.io.IOException e ) { throw new XRRuntimeException( "IOException... | 52,207 |
public Stylesheet parse( java.io.Reader reader, StylesheetInfo info ) { InputSource is = new InputSource( reader ); CSSStyleSheet style = null; try { style = parser.parseStyleSheet( is ); } catch ( java.io.IOException e ) { throw new XRRuntimeException( "IOException... | public Stylesheet parse( java.io.Reader reader, StylesheetInfo info ) { InputSource is = new InputSource( reader ); CSSStyleSheet style = null; try { style = parser.parseStyleSheet( is ); } catch ( java.io.IOException e ) { throw new XRRuntimeException( "IOException... | 52,208 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return null; // TODO } | public AccessibleStateSet getAccessibleStateSet() { return null; // TODO } | 52,209 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return null; // TODO } | public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return super.getAccessibleStateSet(); // TODO } | 52,210 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(... | public static Icon getMenuArrowIcon() { if (menuArrow == null) menuArrow = new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.ge... | 52,211 |
public static Icon getMenuItemArrowIcon() { return getMenuArrowIcon(); } | public static Icon getMenuItemArrowIcon() { if (menuItemArrow == null) menuItemArrow = new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); for (int i = 0;... | 52,213 |
public int getIconHeight() { return 13; } | public int getIconHeight() { return 13; } | 52,214 |
public int getIconWidth() { return 13; } | public int getIconWidth() { return 13; } | 52,215 |
public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x,... | public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x,... | 52,216 |
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... | 52,217 |
private final static synchronized CSSName addProperty(String propName, boolean isPrimitive) { if (ALL_PROPERTY_NAMES == null) { ALL_PROPERTY_NAMES = new TreeMap(); } if ( ALL_PRIMITIVE_PROPERTY_NAMES == null ) { ALL_PRIMITIVE_PROPERTY_NAMES = new TreeMap(); } ... | private final static synchronized CSSName addProperty(String propName, boolean isPrimitive) { if (ALL_PROPERTY_NAMES == null) { ALL_PROPERTY_NAMES = new TreeMap(); } if (ALL_PRIMITIVE_PROPERTY_NAMES == null) { ALL_PRIMITIVE_PROPERTY_NAMES = new TreeMap(); } C... | 52,218 |
private final static synchronized CSSName addProperty(String propName, boolean isPrimitive) { if (ALL_PROPERTY_NAMES == null) { ALL_PROPERTY_NAMES = new TreeMap(); } if ( ALL_PRIMITIVE_PROPERTY_NAMES == null ) { ALL_PRIMITIVE_PROPERTY_NAMES = new TreeMap(); } ... | private final static synchronized CSSName addProperty(String propName, boolean isPrimitive) { if (ALL_PROPERTY_NAMES == null) { ALL_PROPERTY_NAMES = new TreeMap(); } if ( ALL_PRIMITIVE_PROPERTY_NAMES == null ) { ALL_PRIMITIVE_PROPERTY_NAMES = new TreeMap(); } ... | 52,219 |
public ServerPeer(String id, InvokerLocator locator, Hashtable jndiEnvironment, MessageStore messageStore, AcknowledgmentStore acknowledgmentStore) throws Exception { this.id = id; this.locator = locator; this.jndiEnvironment = jndiEnvironment; clientManager = new Cl... | public ServerPeer(String id, InvokerLocator locator, Hashtable jndiEnvironment, MessageStore messageStore, AcknowledgmentStore acknowledgmentStore) throws Exception { this.id = id; this.locator = locator; this.jndiEnvironment = jndiEnvironment; clientManager = new Cl... | 52,220 |
protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ... | protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ... | 52,221 |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) try return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) { ... | 52,222 |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException x) ... | 52,223 |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); lastException = x; catch (NoSuchAlgorithmExce... | 52,224 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db; try { db = dbf.newDocumentBuild... | 52,226 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 52,228 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 52,229 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 52,230 |
public Context() { font_resolver = new FontResolverTest(); } | publicContext(){font_resolver=newFontResolverTest();} | 52,231 |
public Context() { font_resolver = new FontResolverTest(); } | publicContext(){font_resolver=newFontResolverTest();} | 52,232 |
public boolean debugDrawBoxes() { return debug_draw_boxes; } | publicbooleandebugDrawBoxes(){returndebug_draw_boxes;} | 52,233 |
public boolean debugDrawInlineBoxes() { return debug_draw_inline_boxes; } | publicbooleandebugDrawInlineBoxes(){returndebug_draw_inline_boxes;} | 52,234 |
public boolean debugDrawLineBoxes() { return debug_draw_line_boxes; } | publicbooleandebugDrawLineBoxes(){returndebug_draw_line_boxes;} | 52,235 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("handling " + ((MethodInvocation)invocation).getMethod().getName()); } try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("handling " + ((MethodInvocation)invocation).getMethod().getName()); } try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of ... | 52,236 |
public Class getCategory() { return JobSheets.class; } | public final Class getCategory() { return JobSheets.class; } | 52,237 |
public String getName() { return "job-sheets"; } | public final String getName() { return "job-sheets"; } | 52,238 |
private void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ... | private void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ... | 52,239 |
public void tearDown() throws Exception { // TODO uncomment these// producerConnection.close();// consumerConnection.close(); ServerManagement.undeployQueue("Queue"); ServerManagement.stopInVMServer(); super.tearDown(); } | producerConnection.close(); consumerConnection.close(); public void tearDown() throws ExceptionproducerConnection.close(); consumerConnection.close(); {producerConnection.close(); consumerConnection.close(); producerConnection.close(); consumerConnection.close(); producerConnection.close(); consumerConnection.close()... | 52,240 |
public GraphicsDevice[] getScreenDevices() { if (devices == null) { final Collection devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class); devices = new GraphicsDevice[devs.size()]; int idx = 0; for (Iterator i = devs.iterator(); i.hasNext(); idx++) { devices[idx] = new JNodeFrameBufferDevice((Device) ... | public GraphicsDevice[] getScreenDevices() { if (devices == null) { final Collection devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class); devices = new GraphicsDevice[devs.size()]; int idx = 0; for (Iterator i = devs.iterator(); i.hasNext(); idx++) { devices[idx] = new JNodeFrameBufferDevice((Device) ... | 52,242 |
public static Collection<Device> getDevicesByAPI(Class<? extends DeviceAPI> apiClass) { try { return getDeviceManager().getDevicesByAPI(apiClass); } catch (NameNotFoundException ex) { return Collections.EMPTY_LIST; } } | public static Collection<Device> getDevicesByAPI(Class<? extends DeviceAPI> apiClass) { try { return getDeviceManager().getDevicesByAPI(apiClass); } catch (NameNotFoundException ex) { return Collections.EMPTY_LIST; } } | 52,243 |
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | 52,244 |
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | 52,245 |
public int getIconHeight() { return 0; } | public int getIconHeight() { return delegate.getIconHeight(); } | 52,246 |
public int getIconWidth() { return 0; } | public int getIconWidth() { return delegate.getIconWidth(); } | 52,247 |
public BigInteger getX(); | public BigInteger getX(); | 52,249 |
public WorkflowEntry createEntry(String workflowName) throws StoreException { boolean generatedKeys = GENERATED.equals(entrySequence); Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (... | public WorkflowEntry createEntry(String workflowName) throws StoreException { boolean generatedKeys = GENERATED.equals(entrySequence); Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (... | 52,250 |
private static PreparedStatement prepareStatementWithKeys(Connection conn, String sql, String pkColumnName) throws SQLException, StoreException { return conn.prepareStatement(sql, new String[] {pkColumnName}); } | private static PreparedStatement prepareStatementWithKeys(Connection conn, String sql, String pkColumnName) throws SQLException { return conn.prepareStatement(sql, new String[] {pkColumnName}); } | 52,251 |
public Dimension getPreferredSize(JComponent c) { JLabel b = (JLabel)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), b.getVerticalT... | public Dimension getPreferredSize(JComponent c) { JLabel b = (JLabel)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), b.getVerticalT... | 52,252 |
public void installUI(final JComponent c) { super.installUI(c); foreground = new Color(0,0,250); } | public void installUI(final JComponent c) { super.installUI(c); foreground = new Color(0,0,250); } | 52,253 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,254 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,255 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); g.setFont(f); FontMetrics... | 52,256 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); Font f = c.getFont(); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getIns... | 52,257 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); Insets i = c.getInsets(); ... | 52,258 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,259 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,260 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,261 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,262 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 52,263 |
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " ... | protected Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " ... | 52,264 |
private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " ... | private Object invokeCommon(Remote obj, Method method, Object[] params, int opnum, long hash) throws Exception { UnicastConnection conn; try { conn = manager.getConnection(); } catch (IOException e1) { throw new RemoteException("connection failed to host: " ... | 52,265 |
Object invoke (Remote obj, Method method, Object[] params, long opnum) throws Exception; | Object invoke (Remote obj, Method method, Object[] params, long opnum) throws Exception; | 52,266 |
public void setUp() throws Exception { super.setUp(); ms = new PagingMessageStore("test-memory-store"); log.debug("setup done"); } | public void setUp() throws Exception { super.setUp(); ms = new SimpleMessageStore("test-memory-store"); log.debug("setup done"); } | 52,268 |
public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare... | public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare... | 52,269 |
public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare... | public void addNotify() { super.addNotify(); // let parents inherit the keybord mapping InputMap input = getInputMap(); ActionMap actions = getActionMap(); Container parent = getParent(); while ((parent != null) && (parent instanceof JComponent)) { JComponent jParent = (JComponent) pare... | 52,270 |
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException { VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newVal... | protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException { VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newVal... | 52,271 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.