bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (file, false); } | public FileOutputStream (String path, boolean append) throws SecurityException, FileNotFoundException { this (file, false); } | 41,560 |
public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (file, false); } | public FileOutputStream (File file) throws SecurityException, FileNotFoundException { this (new File(path), append); } | 41,561 |
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; ... | 41,562 |
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... | 41,563 |
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)... | 41,564 |
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 ); ... | 41,565 |
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() ) {... | 41,566 |
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... | 41,567 |
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... | 41,568 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,570 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,571 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,572 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,573 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,574 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,575 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,576 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,577 |
public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | public void testRemoveAllMessages() throws Exception { InitialContext ic = new InitialContext(ServerManagement.getJNDIEnvironment()); TopicConnectionFactory cf = (JBossConnectionFactory)ic.lookup("/ConnectionFactory"); ServerManagement.deployTopic("TopicRemoveAllMessages"); Topic topic = (Topic... | 41,578 |
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); } | 41,579 |
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... | 41,580 |
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) { ... | 41,581 |
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... | 41,582 |
public IndexedPropertyDescriptor(String name, Class beanClass) throws IntrospectionException { super(name); String capitalized; try { capitalized = Character.toUpperCase(name.charAt(0)) + name.substring(1); } catch(StringIndexOutOfBoundsException e) { capitalized = ""; } findMethods(beanClass, "get" + capita... | public IndexedPropertyDescriptor(String name, Class beanClass) throws IntrospectionException { super(name); String capitalized; try { capitalized = Character.toUpperCase(name.charAt(0)) + name.substring(1); } catch(StringIndexOutOfBoundsException e) { capitalized = ""; } findMethods(beanClass, "get" + capita... | 41,584 |
public IndexedPropertyDescriptor(String name, Class beanClass) throws IntrospectionException { super(name); String capitalized; try { capitalized = Character.toUpperCase(name.charAt(0)) + name.substring(1); } catch(StringIndexOutOfBoundsException e) { capitalized = ""; } findMethods(beanClass, "get" + capita... | public IndexedPropertyDescriptor(String name, Class beanClass) throws IntrospectionException { super(name); String capitalized; try { capitalized = Character.toUpperCase(name.charAt(0)) + name.substring(1); } catch(StringIndexOutOfBoundsException e) { capitalized = ""; } findMethods(beanClass, "get" + capita... | 41,585 |
public IndexedPropertyDescriptor(String name, Class beanClass) throws IntrospectionException { super(name); String capitalized; try { capitalized = Character.toUpperCase(name.charAt(0)) + name.substring(1); } catch(StringIndexOutOfBoundsException e) { capitalized = ""; } findMethods(beanClass, "get" + capita... | public IndexedPropertyDescriptor(String name, Class beanClass) throws IntrospectionException { super(name); String capitalized; try { capitalized = Character.toUpperCase(name.charAt(0)) + name.substring(1); } catch(StringIndexOutOfBoundsException e) { capitalized = ""; } findMethods(beanClass, "get" + capita... | 41,586 |
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... | 41,587 |
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... | 41,588 |
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... | 41,589 |
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... | 41,590 |
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... | 41,591 |
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... | 41,592 |
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... | 41,593 |
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... | 41,594 |
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... | 41,595 |
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... | 41,596 |
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... | 41,597 |
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... | 41,598 |
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... | 41,599 |
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... | 41,600 |
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... | 41,601 |
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... | 41,602 |
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... | 41,603 |
public Class getIndexedPropertyType() { return indexedPropertyType; } | public Class getIndexedPropertyType() { return indexedPropertyType; } | 41,604 |
public Method getIndexedReadMethod() { return getIndex; } | public Method getIndexedReadMethod() { return getIndex; } | 41,605 |
public Method getIndexedWriteMethod() { return setIndex; } | public Method getIndexedWriteMethod() { return setIndex; } | 41,606 |
public static Object newInstance(Class componentType, int length) { if (!componentType.isPrimitive()) return createObjectArray(componentType, length); if (componentType == boolean.class) return new boolean[length]; if (componentType == byte.class) return new byte[length]; if (componentType == char.class) r... | public static Object newInstance(Class componentType, int length) { if (!componentType.isPrimitive()) return createObjectArray(componentType, length); if (componentType == boolean.class) return new boolean[length]; if (componentType == byte.class) return new byte[length]; if (componentType == char.class) r... | 41,607 |
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; } | 41,608 |
public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; } | public BorderLayout() { this.hgap = hgap; this.vgap = vgap; } | 41,609 |
public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; } | public BorderLayout(int hgap, int vgap) { this.hgap = hgap; this.vgap = vgap; } | 41,610 |
public JButton(Icon icon) { this(null, icon); } | public JButton() { this(null, icon); } | 41,611 |
public JButton(Icon icon) { this(null, icon); } | public JButton(Icon icon) { this(null, null); } | 41,612 |
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(); } | 41,613 |
void stop() { running = false; } | public void stop() { running = false; } | 41,614 |
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | public boolean redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | 41,616 |
public void redeliver(Receiver receiver) { log.trace(""); deliveryNotification = true; } | public void redeliver(Receiver receiver) { log.debug("redeliver(" + receiver + ")"); deliveryNotification = true; } | 41,617 |
public ConditionDescriptor createConditionDescriptor(Element function) { return new ConditionDescriptor(function); } | public ConditionDescriptor createConditionDescriptor(Element function) { return new ConditionDescriptor(function); } | 41,619 |
public ConditionsDescriptor createConditionsDescriptor(Element element) { return new ConditionsDescriptor(element); } | public ConditionsDescriptor createConditionsDescriptor(Element element) { return new ConditionsDescriptor(element); } | 41,620 |
public void println(String str) { synchronized (lock) { print(str); println(); } } | public void println() { synchronized (lock) { print(str); println(); } } | 41,621 |
public void println(String str) { synchronized (lock) { print(str); println(); } } | public void println(String str) { synchronized (lock) { print(str); println(); } } | 41,622 |
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... | 41,623 |
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... | protectedvoidinit(Elementaction){try{setId(Integer.parseInt(action.getAttribute("id")));}catch(Exceptionex){thrownewIllegalArgumentException("Invalidactionidvalue"+action.getAttribute("id"));}this.name=action.getAttribute("name");this.view=action.getAttribute("view");this.autoExecute="true".equals(action.getAttribute("... | 41,624 |
public ValidatorDescriptor(Element validator) { init(validator); } | public ValidatorDescriptor(Element validator) { init(validator); } | 41,626 |
public FunctionDescriptor(Element function) { init(function); } | public FunctionDescriptor(Element function) { init(function); } | 41,627 |
public ConditionalResultDescriptor(Element conditionalResult) { init(conditionalResult); } | public ConditionalResultDescriptor(Element conditionalResult) { init(conditionalResult); } | 41,628 |
public ResultDescriptor(Element result) { init(result); } | public ResultDescriptor(Element result) { init(result); } | 41,629 |
public RestrictionDescriptor(Element restriction) { init(restriction); } | public RestrictionDescriptor(Element restriction) { init(restriction); } | 41,630 |
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.... | 41,631 |
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... | 41,632 |
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... | 41,633 |
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) ... | 41,634 |
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.... | 41,635 |
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... | 41,636 |
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... | 41,638 |
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... | 41,639 |
private CascadedStyle() { _cascadedPropertiesByID = new PropertyDeclaration[CSSName.countCSSNames()]; } | private CascadedStyle() { _cascadedPropertiesByID = new PropertyDeclaration[CSSName.countCSSNames()]; } | 41,640 |
public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ); | public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ); | 41,641 |
public void drawString( Graphics2D graphics, String string, float x, float y ); | public void drawString( Graphics2D graphics, String string, float x, float y ); | 41,642 |
public Rectangle2D getLogicalBounds( Graphics2D graphics, Font font, String string ); | public Rectangle2D getLogicalBounds( Graphics2D graphics, Font font, String string ); | 41,643 |
public void testDurableSubscriptionDataRemaining() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; Connection conn3 = null; Connection conn4 = null; Connection conn5 = null; Connection conn6 = null; Session se... | public void testDurableSubscriptionDataRemaining() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; Connection conn3 = null; Connection conn4 = null; Connection conn5 = null; Connection conn6 = null; Session se... | 41,644 |
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(f... | publicvoidtestDurableSubscriptionReconnect()throwsException{finalStringCLIENT_ID1="test-client-id1";Connectionconn1=null;Connectionconn2=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWLEDGE);MessageProducerprod=sess1.createProducer(topic);pro... | 41,645 |
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(f... | publicvoidtestDurableSubscriptionReconnect()throwsException{finalStringCLIENT_ID1="test-client-id1";Connectionconn1=null;Connectionconn2=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWLEDGE);MessageProducerprod=sess1.createProducer(topic);pro... | 41,646 |
public void testDurableSubscriptionReconnect() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(f... | publicvoidtestDurableSubscriptionReconnect()throwsException{finalStringCLIENT_ID1="test-client-id1";Connectionconn1=null;Connectionconn2=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWLEDGE);MessageProducerprod=sess1.createProducer(topic);pro... | 41,647 |
public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.set... | publicvoidtestDurableSubscriptionReconnectDifferentClientID()throwsException{finalStringCLIENT_ID1="test-client-id1";finalStringCLIENT_ID2="test-client-id2";Connectionconn1=null;Connectionconn2=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWL... | 41,649 |
public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.set... | publicvoidtestDurableSubscriptionReconnectDifferentClientID()throwsException{finalStringCLIENT_ID1="test-client-id1";finalStringCLIENT_ID2="test-client-id2";Connectionconn1=null;Connectionconn2=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWL... | 41,650 |
public void testDurableSubscriptionReconnectDifferentClientID() throws Exception { final String CLIENT_ID1 = "test-client-id1"; final String CLIENT_ID2 = "test-client-id2"; Connection conn1 = null; Connection conn2 = null; try { conn1 = cf.createConnection(); conn1.set... | publicvoidtestDurableSubscriptionReconnectDifferentClientID()throwsException{finalStringCLIENT_ID1="test-client-id1";finalStringCLIENT_ID2="test-client-id2";Connectionconn1=null;Connectionconn2=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWL... | 41,651 |
public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); ... | publicvoidtestDurableSubscriptionSimple()throwsException{finalStringCLIENT_ID1="test-client-id1";Connectionconn1=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWLEDGE);MessageProducerprod=sess1.createProducer(topic);prod.setDeliveryMode(Delive... | 41,653 |
public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); ... | publicvoidtestDurableSubscriptionSimple()throwsException{finalStringCLIENT_ID1="test-client-id1";Connectionconn1=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWLEDGE);MessageProducerprod=sess1.createProducer(topic);prod.setDeliveryMode(Delive... | 41,654 |
public void testDurableSubscriptionSimple() throws Exception { final String CLIENT_ID1 = "test-client-id1"; Connection conn1 = null; try { conn1 = cf.createConnection(); conn1.setClientID(CLIENT_ID1); Session sess1 = conn1.createSession(false, Session.AUTO_ACKNOWLEDGE); ... | publicvoidtestDurableSubscriptionSimple()throwsException{finalStringCLIENT_ID1="test-client-id1";Connectionconn1=null;try{conn1=cf.createConnection();conn1.setClientID(CLIENT_ID1);Sessionsess1=conn1.createSession(false,Session.AUTO_ACKNOWLEDGE);MessageProducerprod=sess1.createProducer(topic);prod.setDeliveryMode(Delive... | 41,655 |
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... | 41,657 |
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... | 41,658 |
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... | 41,659 |
static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { //Uu.p("painting box: " + box); LinkedList decorations = c.getDecorations(); //doesn't work here because bloc... | static void paintInlineContext(Context c, Box box, boolean restyle) { //dummy style to make sure that text nodes don't get extra padding and such { //Uu.p("painting box: " + box); LinkedList decorations = c.getDecorations(); //doesn't work here because bloc... | 41,660 |
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... | 41,661 |
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 int lx = line.x + getTextAlign(c, line); //Uu.p("getting the text align for line: " + line); //Uu.p("getTextAlign = " + getTextAlign(c,line))... | 41,662 |
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 int lx = line.x + getTextAlign(c, line); //Uu.p("getting the text align for line: " + line); //Uu.p("getTextAlign = " + getTextAlign(c,line))... | 41,663 |
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... | 41,664 |
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, 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... | 41,665 |
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... | 41,666 |
public static InvocationHandler getInvocationHandler(Object proxy) { if (!isProxyClass(proxy.getClass())) throw new IllegalArgumentException("not a proxy instance"); return ((Proxy) proxy).h; } | public static InvocationHandler getInvocationHandler(Object proxy) { if (!isProxyClass(proxy.getClass())) throw new IllegalArgumentException("not a proxy instance"); return ((Proxy) proxy).h; } | 41,667 |
public WorkflowException(String s, Throwable rootCause) { super(s); this.rootCause = rootCause; } | public WorkflowException(String s, Throwable rootCause) { super(s); this.rootCause = rootCause; } | 41,668 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.