bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void modify(FunctionDescriptor func) { ConfigFunctionDescriptor function; if(func.getName() != null) { function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName())); } else { function = new ConfigFunctionDescriptor(getModel().getPalette()); fun... | public void modify(FunctionDescriptor func) { ConfigFunctionDescriptor function; if(func.getName() != null && (getModel().getPalette().getPrefunction(func.getName()) != null)) { function = new ConfigFunctionDescriptor(getModel().getPalette().getPrefunction(func.getName())); } else { functi... | 26,199 |
public TableCellEditor getCellEditor() { return cellEditor; } | public TableCellEditor getCellEditor(int row, int column) { return cellEditor; } | 26,200 |
public TableCellEditor getCellEditor() { return cellEditor; } | public TableCellEditor getCellEditor() { TableCellEditor editor = columnModel.getColumn(column).getCellEditor(); if (editor == null) editor = getDefaultEditor(dataModel.getColumnClass(column)); return editor; } | 26,201 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (trace) { log.trace("adding " + ref + (tx == null ? " to database non-transactiona... | 26,202 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { super.addReference(ref, tx); if (ref.isReliable()) { // Reliable message in a recoverable state - also add to db if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database n... | 26,203 |
protected void installDefaults() { LookAndFeel.installBorder(menuItem, "Menu.border"); LookAndFeel.installColorsAndFont(menuItem, "Menu.background", "Menu.foreground", "Menu.font"); menuItem.setMargin(UIManager.getInsets("Menu.margin")); acceleratorFont = UIManager.get... | protected void installDefaults() { LookAndFeel.installBorder(menuItem, "Menu.border"); LookAndFeel.installColorsAndFont(menuItem, "Menu.background", "Menu.foreground", "Menu.font"); menuItem.setMargin(UIManager.getInsets("Menu.margin")); acceleratorFont = UIManager.get... | 26,205 |
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c... | 26,206 |
public VmType getComponentType() { return componentType; } | public VmType<?> getComponentType() { return componentType; } | 26,207 |
public float getAlignment(int axis) { return 0; } | public float getAlignment(int axis) { float align; if (axis == X_AXIS) align = getComponent().getAlignmentX(); else if (axis == Y_AXIS) align = getComponent().getAlignmentY(); else throw new IllegalArgumentException(); return align; } | 26,208 |
public final Component getComponent() { return null; } | public final Component getComponent() { if (comp == null) comp = createComponent(); return comp; } | 26,209 |
public float getMaximumSpan(int axis) { return 0; } | public float getMaximumSpan(int axis) { float span; if (axis == X_AXIS) span = getComponent().getMaximumSize().width; else if (axis == Y_AXIS) span = getComponent().getMaximumSize().height; else throw new IllegalArgumentException(); return span; } | 26,210 |
public float getMinimumSpan(int axis) { // TODO: Implement this properly. return 0; } | public float getMinimumSpan(int axis) { // TODO: Implement this properly. float span; if (axis == X_AXIS) span = getComponent().getMinimumSize().width; else if (axis == Y_AXIS) span = getComponent().getMinimumSize().height; else throw new IllegalArgumentException(); return span; } | 26,211 |
public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { // TODO: Implement this properly. throw new AssertionError("Not implemented yet."); } | public int getNextVisualPositionFrom(JTextComponent c, int pos, Position.Bias b, int d, Position.Bias[] biasRet) throws BadLocationException { // TODO: Implement this properly. throw new AssertionError("Not yet implemented"); } | 26,212 |
public float getPreferredSpan(int axis) { // TODO: Implement this properly. return 0; } | public float getPreferredSpan(int axis) { // TODO: Implement this properly. float span; if (axis == X_AXIS) span = getComponent().getPreferredSize().width; else if (axis == Y_AXIS) span = getComponent().getPreferredSize().height; else throw new IllegalArgumentException(); return span; } | 26,213 |
public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // TODO: Implement this properly. return null; } | public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException { // TODO: Implement this properly. Element el = getElement(); if (pos < el.getStartOffset() || pos >= el.getEndOffset()) throw new BadLocationException("Illegal offset for this view", pos); Rectangle r = a.getBounds(... | 26,214 |
public void setParent(View p) { // TODO: Implement this properly. } | public void setParent(final View p) { if (SwingUtilities.isEventDispatchThread()) setParentImpl(p); else SwingUtilities.invokeLater (new Runnable() { public void run() { // TODO: Implement this properly. } | 26,216 |
public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { // TODO: Implement this properly. return 0; } | public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) { // TODO: Implement this properly. return 0; } | 26,218 |
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet s = new AccessibleStateSet(); if (Component.this.isEnabled()) s.add(AccessibleState.ENABLED); if (isFocusable()) s.add(AccessibleState.FOCUSABLE); if (isFocusOwner()) s.add(AccessibleState.FOCUSED); if (isOpaque()) s.add... | public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet s = new AccessibleStateSet(); if (Component.this.isEnabled()) s.add(AccessibleState.ENABLED); if (isFocusable()) s.add(AccessibleState.FOCUSABLE); if (isFocusOwner()) s.add(AccessibleState.FOCUSED); if (isOpaque()) s.add... | 26,220 |
public void ancestorAdded(AncestorEvent event); | void ancestorAdded(AncestorEvent event); | 26,221 |
boolean contains(JComponent c, int x, int y) { return c.inside(x,y); } | boolean contains(JComponent c, int x, int y) { return c.inside(x,y); } | 26,222 |
public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | public EventListener[] getListeners(Class c) { int count, f; EventListener[] result; // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count... | 26,223 |
public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | public EventListener[] getListeners(Class c) { // Variables int count; EventListener[] list; String name; int index; // Get count of listeners count = getListenerCount(c); // Create Event Listener list list = new EventListener[count]; // Construct List count = 0; name = c.getName(); for (inde... | 26,224 |
public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | public Point getLocation() { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | 26,225 |
public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | public Point getLocation(Point p) { if (p == null) p = new Point(); p.x = x; p.y = y; return p; } | 26,226 |
setClip(Shape clip); | setClip(int x, int y, int width, int height); | 26,227 |
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c); } | public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(),c.getHeight()); } paint(g, c); } | 26,228 |
public KeyStroke[] allKeys() { Set set = new HashSet(); if (parent != null) set.addAll(Arrays.asList(parent.allKeys())); set.addAll(inputMap.keySet()); if (set.size() == 0) return null; KeyStroke[] array = new KeyStroke[set.size()]; return (KeyStroke[]) set.toArray(array); } | public KeyStroke[] allKeys() { Set set = new HashSet(); if (parent != null) { Object[] parentKeys = parent.allKeys(); if (parentKeys != null) set.addAll(Arrays.asList(parentKeys)); } set.addAll(inputMap.keySet()); if (set.size() == 0) return null; KeyStroke[] array = new KeyStroke[set.size(... | 26,230 |
public void close() throws JMSException { synchronized (mainLock) { log.debug(this + " closing"); if (closed) { return; } closed = true; if (receiverThread != null) { // Wake up any ... | public void close() throws JMSException { synchronized (mainLock) { log.debug(this + " closing"); if (closed) { return; } closed = true; if (receiverThread != null) { // Wake up any ... | 26,231 |
private MessageProxy getMessage(long timeout) throws JMSException { if (timeout == -1) { // receiveNoWait so don't wait } else { try { if (timeout == 0) { // wait for ever potentially while (!closed... | private MessageProxy getMessage(long timeout) throws JMSException { if (timeout == -1) { // receiveNoWait so don't wait } else { try { if (timeout == 0) { // wait for ever potentially while (!closed... | 26,232 |
public DeliveryInfo(MessageProxy msg, int consumerId, long channelID) { this.msg = msg; this.consumerId = consumerId; this.channelID = channelID; } | public DeliveryInfo(MessageProxy msg, int consumerId, long channelID, SessionDelegate connectionConsumerSession) { this.msg = msg; this.consumerId = consumerId; this.channelID = channelID; } | 26,233 |
public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (file, false); } | public FileOutputStream (String path, boolean append) throws SecurityException, FileNotFoundException { this (file, false); } | 26,236 |
public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (file, false); } | public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (new File(path), append); } | 26,237 |
InlineBorder(int y, int height, RectPropertySet margin, Border border, RectPropertySet padding, CalculatedStyle style, LineMetrics lm, Color background_color) { this.y = y; this.height = height; this.margin = margin; this.border = border; this.padding = padding; this.style ... | InlineBorder(int y, int height, RectPropertySet margin, BorderPropertySet border, RectPropertySet padding, CalculatedStyle style, LineMetrics lm, Color background_color) { this.y = y; this.height = height; this.margin = margin; this.border = border; this.padding = padding; ... | 26,238 |
void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - (int)margin.top() - border.top - (int)padding.top() + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); c.getGraphics().translate(0, ty)... | void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - (int)margin.top() - (int)border.top() - (int)padding.top() + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); c.getGraphics().translate... | 26,239 |
void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - (int)margin.top() - border.top - (int)padding.top() + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); c.getGraphics().translate(0, ty)... | void paint(Context c, LineBox line, int start, int width, int sides) { if (width <= 0) return; int ty = line.getBaseline() - y - height - (int)margin.top() - border.top - (int)padding.top() + line.y; ty += (int) lm.getDescent(); c.translate(0, ty); c.getGraphics().translate(0, ty)... | 26,240 |
public DerivedProperty propertyByName( String propName ) { // HERE: when we get the property, check if it is resolved // if not, call resolve() and pass it our parent's reference // or just our XRElement DerivedProperty prop = (DerivedProperty)_derivedPropertiesByName.get( propName ); ... | public DerivedProperty propertyByName( String propName ) { // HERE: when we get the property, check if it is resolved // if not, call resolve() and pass it our parent's reference // or just our XRElement DerivedProperty prop = (DerivedProperty)_derivedPropertiesByName.get( propName ); ... | 26,241 |
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati... | public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) {... | 26,242 |
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati... | public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( type ) { // relative length or size case CSSPrimiti... | 26,243 |
public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati... | public static boolean isAbsoluteUnit(CSSValue cssValue) { // WARN: this will fail if not a primitive value if ( !( cssValue instanceof CSSPrimitiveValue )) return false; // TODO: check this list... switch ( ((CSSPrimitiveValue)cssValue).getPrimitiveType() ) { // relati... | 26,244 |
public static void main(String[] args) { log.info("Slave starting"); int port; try { port = Integer.parseInt(args[0]); } catch (Exception e) { log.info("Invalid port or no port specified"); return; } new Slave().run(port); } | public static void main(String[] args) { log.info("Slave starting"); int port; try { port = Integer.parseInt(args[0]); } catch (Exception e) { log.error("Invalid port or no port specified"); return; } new Slave().run(port); } | 26,246 |
public void testCommonActions() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString()); descriptor.validate(); } catch (InvalidWorkflowDescriptorException e) { ... | public void testCommonActions() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/common-actions.xml").toString()); descriptor.validate(); } catch (InvalidWorkflowDescriptorException e) { e.printSta... | 26,247 |
public void testCommonActions() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString()); descriptor.validate(); } catch (InvalidWorkflowDescriptorException e) { ... | public void testCommonActions() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/common-actions.xml").toString()); descriptor.validate(); } catch (InvalidWorkflowDescriptorException e) { ... | 26,248 |
public void testDuplicateActionID() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getClassLoader().getResource("samples/duplicate-action.xml").toString()); descriptor.validate(); fail("descriptor loaded successfully, even t... | public void testDuplicateActionID() throws Exception { try { WorkflowDescriptor descriptor = DescriptorLoader.getDescriptor(getClass().getResource("/samples/invalid/duplicate-action.xml").toString()); descriptor.validate(); fail("descriptor loaded successfully, even though du... | 26,249 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,251 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,252 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,253 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,254 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,255 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,256 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,257 |
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if(getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(ge... | 26,258 |
public int charsWidth(char[] buf, int offset, int len) { int total_width = 0; for (int i = offset; i < len; i++) total_width += charWidth(buf[i]); return total_width; } | public int charsWidth(char[] buf, int offset, int len) { int total_width = 0; int endOffset = offset + len; for (int i = offset; i < endOffset; i++) total_width += charWidth(buf[i]); return total_width; } | 26,259 |
public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; } | public BorderLayout() { this.hgap = hgap; this.vgap = vgap; } | 26,260 |
public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; } | public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; } | 26,261 |
public JButton(Icon icon) { this(null, icon); } | public JButton() { this(null, icon); } | 26,262 |
public JButton(Icon icon) { this(null, icon); } | public JButton(Icon icon) { this(null, null); } | 26,263 |
void start() { if (isRunning()) { System.err.println("attempt to start a running timer"); return; } new Waker().start(); } | public void start() { if (isRunning()) { System.err.println("attempt to start a running timer"); return; } new Waker().start(); } | 26,264 |
void stop() { running = false; } | public void stop() { running = false; } | 26,265 |
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | public boolean redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | 26,267 |
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | public void redeliver(Receiver receiver) { log.debug("redeliver(" + receiver + ")"); deliveryNotification = true; } | 26,268 |
public ConditionDescriptor createConditionDescriptor(Element function) { return new ConditionDescriptor(function); } | public ConditionDescriptor createConditionDescriptor(Element function) { return new ConditionDescriptor(function); } | 26,270 |
public ConditionsDescriptor createConditionsDescriptor(Element element) { return new ConditionsDescriptor(element); } | public ConditionsDescriptor createConditionsDescriptor(Element element) { return new ConditionsDescriptor(element); } | 26,271 |
public void println(String str) { synchronized (lock) { print(str); println(); } } | public void println() { synchronized (lock) { print(str); println(); } } | 26,272 |
public void println(String str) { synchronized (lock) { print(str); println(); } } | public void println(String str) { synchronized (lock) { print(str); println(); } } | 26,273 |
protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi... | protected void init(Element action) { try { setId(Integer.parseInt(action.getAttribute("id"))); } catch (Exception ex) { throw new IllegalArgumentException("Invalid action id value " + action.getAttribute("id")); } this.name = action.getAttribute("name"); thi... | 26,274 |
public ValidatorDescriptor(Element validator) { init(validator); } | public ValidatorDescriptor(Element validator) { init(validator); } | 26,276 |
public FunctionDescriptor(Element function) { init(function); } | public FunctionDescriptor(Element function) { init(function); } | 26,277 |
public ConditionalResultDescriptor(Element conditionalResult) { init(conditionalResult); } | public ConditionalResultDescriptor(Element conditionalResult) { init(conditionalResult); } | 26,278 |
public ResultDescriptor(Element result) { init(result); } | public ResultDescriptor(Element result) { init(result); } | 26,279 |
public RestrictionDescriptor(Element restriction) { init(restriction); } | public RestrictionDescriptor(Element restriction) { init(restriction); } | 26,280 |
public void writeXML(PrintWriter out, int indent) { if (conditions.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsD... | public void writeXML(PrintWriter out, int indent) { ConditionsDescriptor conditions = getConditionsDescriptor(); List list = conditions.getConditions(); if (list.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); if (conditions.... | 26,281 |
public void writeXML(PrintWriter out, int indent) { if (conditions.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsD... | public void writeXML(PrintWriter out, int indent) { if (conditions.size() == 0) { return; } XMLUtil.printIndent(out, indent++); out.println("<restrict-to>"); if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsD... | 26,282 |
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<function " + (hasId() ? ("id=\"" + getId() + "\" ") : "") + (((name != null) && (name.length() > 0)) ? ("name=\"" + getName() + "\" ") : "") + "type=\"" + type + "\">"); Iterator iter = args.en... | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); out.println("<function " + (hasId() ? ("id=\"" + getId() + "\" ") : "") + (((name != null) && (name.length() > 0)) ? ("name=\"" + XMLUtil.encode(getName()) + "\" ") : "") + "type=\"" + type + "\">"); Iterato... | 26,283 |
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } if (dueDate != null) { buf.append(... | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } if (dueDate != null && dueDate.length() > 0) ... | 26,284 |
public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<unconditional-result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } if (dueDate != null) { ... | public void writeXML(PrintWriter out, int indent) { XMLUtil.printIndent(out, indent++); StringBuffer buf = new StringBuffer(); buf.append("<unconditional-result"); if (hasId()) { buf.append(" id=\"").append(getId()).append("\""); } if (dueDate != null && dueDate.... | 26,285 |
public void pushLayer(Box master) { Layer layer = null; if (rootLayer == null) { layer = new Layer(master); rootLayer = layer; } else { Layer parent = getLayer(); if (master.getStyle().isFixed()) { while (parent.getP... | public void pushLayer(Box master) { Layer layer = null; if (rootLayer == null) { layer = new Layer(master); rootLayer = layer; } else { Layer parent = getLayer(); if (master.getStyle().isFixed() || master.getStyle().isAlternateFlow... | 26,286 |
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty... | public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty... | 26,288 |
public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty... | public static void paintPadding(Context c, LineBox line, InlineBox inline) { //Uu.p("painting border: " + inline.border); // paint the background int padding_xoff = inline.totalLeftPadding(c.getCurrentStyle()); int padding_yoff = inline.totalTopPadding(c.getCurrentStyle()); int ty... | 26,289 |
private CascadedStyle() { _cascadedPropertiesByID = new PropertyDeclaration[CSSName.countCSSNames()]; } | private CascadedStyle() { _cascadedPropertiesByID = new PropertyDeclaration[CSSName.countCSSNames()]; } | 26,290 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 26,294 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 26,295 |
static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | static int paintInline(Context c, InlineBox ib, int lx, int ly, LineBox line, boolean restyle, LinkedList pushedStyles, LinkedList decorations, int padX) { //Uu.p("paint inline: " + ib); restyle = restyle || ib.restyle;//cascade it down ib.restyle = false;//reset if (ib.pushstyles != nul... | 26,296 |
static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y int lx = line.x + getTextAlign(c, line); //Uu.p("getting the text align for line: " + line); //Uu.p("getTextAlign = " + getTextAlign(c,line))... | static void paintLine(Context c, LineBox line, boolean restyle, LinkedList decorations) { //Uu.p("painting line: " + line); // get Xx and y if (!line.textAligned) { line.x += getTextAlign(c, line); line.textAligned = true; } int lx = line.x; //Uu.p("getting the text align for line: " + l... | 26,297 |
public static void justifyLine(Context c, LineBox line, Element elem, int width) { if (line.width > width) { return; } //u.p("line width = " + line.width); //u.p("available width = " + width); //u.p("inlines = " + line.getChildCount()); //u.p("word count = " + wo... | public static void justifyLine(Context c, LineBox line, int width) { if (line.width > width) { return; } //u.p("line width = " + line.width); //u.p("available width = " + width); //u.p("inlines = " + line.getChildCount()); //u.p("word count = " + wordCount((Inlin... | 26,298 |
public MessageCallbackHandler(boolean isCC, int ackMode, QueuedExecutor onMessageExecutor, PooledExecutor activateConsumerExecutor, SessionDelegate sess, ConsumerDelegate cons, int consumerID) { buffer = new LinkedList(); isConnectionC... | public MessageCallbackHandler(boolean isCC, int ackMode, QueuedExecutor onMessageExecutor, PooledExecutor activateConsumerExecutor, SessionDelegate sess, ConsumerDelegate cons, int consumerID) { buffer = new LinkedList(); isConnectionC... | 26,299 |
public WorkflowException(String s, Throwable rootCause) { super(s); this.rootCause = rootCause; } | public WorkflowException(String s, Throwable rootCause) { super(s); this.rootCause = rootCause; } | 26,300 |
public void println (String str) { print (str == null ? "null" : str, true); } | public void println () { print (str == null ? "null" : str, true); } | 26,301 |
public void println (String str) { print (str == null ? "null" : str, true); } | public void println (String str) { print(line_separator, 0, line_separator.length, false); } | 26,302 |
public boolean canInitialize(String workflowName, int initialState) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); } | public boolean canInitialize(String workflowName, int initialState) { return new OfbizWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); } | 26,303 |
public boolean canModifyEntryState(long id, int newState) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).canModifyEntryState(id, newState); } | public boolean canModifyEntryState(long id, int newState) { return new OfbizWorkflow(getRemoteUser()).canModifyEntryState(id, newState); } | 26,304 |
public int[] getAvailableActions(long id) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).getAvailableActions(id); } | public int[] getAvailableActions(long id) { return new OfbizWorkflow(getRemoteUser()).getAvailableActions(id); } | 26,305 |
public List getCurrentSteps(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getCurrentSteps(id); } | public List getCurrentSteps(long id) { return new OfbizWorkflow(getRemoteUser()).getCurrentSteps(id); } | 26,306 |
public int getEntryState(long id) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).getEntryState(id); } | public int getEntryState(long id) { return new OfbizWorkflow(getRemoteUser()).getEntryState(id); } | 26,307 |
public List getHistorySteps(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getHistorySteps(id); } | public List getHistorySteps(long id) { return new OfbizWorkflow(getRemoteUser()).getHistorySteps(id); } | 26,308 |
public PropertySet getPropertySet(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getPropertySet(id); } | public PropertySet getPropertySet(long id) { return new OfbizWorkflow(getRemoteUser()).getPropertySet(id); } | 26,309 |
public List getSecurityPermissions(long id) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id); } | public List getSecurityPermissions(long id) { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id); } | 26,310 |
public WorkflowDescriptor getWorkflowDescriptor(String workflowName) throws FactoryException { return new OfbizWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); } | public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { return new OfbizWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); } | 26,311 |
public String getWorkflowName(long id) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).getWorkflowName(id); } | public String getWorkflowName(long id) { return new OfbizWorkflow(getRemoteUser()).getWorkflowName(id); } | 26,312 |
public String[] getWorkflowNames() throws FactoryException { return new OfbizWorkflow(getRemoteUser()).getWorkflowNames(); } | public String[] getWorkflowNames() { return new OfbizWorkflow(getRemoteUser()).getWorkflowNames(); } | 26,313 |
public boolean canInitialize(String workflowName, int initialStep) throws WorkflowException; | public boolean canInitialize(String workflowName, int initialStep); | 26,314 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.