rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
catch (NullPointerException e) | } else { acc = null; } } if (acc == null) { acc = _hashAccessor; try { if (acc != null) | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
throw new PropertyException("$" + fillInName(names, start) + " is null. Cannot access ." + names[end]); | nextPropValue = acc.get(instance, propName); start++; | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
} else { return nextPropValue; } } | } catch (NoSuchMethodException e) { acc = null; } } if (acc == null) { if (isMethodRestricted(instance.getClass(), "get" + propName) || isMethodRestricted(instance.getClass(), "set" + propName)) throw new PropertyException.RestrictedPropertyException( propName, fillInName(names, start), instance.getClass().getName... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String propName; Object nextPropValue = null; Acc... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
static Object invoke (Method meth, Object instance, Object[] args) throws PropertyException { try { Object obj = meth.invoke(instance, args); if (obj == null && meth.getReturnType() == java.lang.Void.TYPE) return org.webmacro.engine.VoidMacro.instance; else return obj; } catch (IllegalAccessException e) { throw ne... | static Object invoke(Method meth, Object instance, Object[] args) throws PropertyException { try { Object obj = meth.invoke(instance, args); if (obj == null && meth.getReturnType() == java.lang.Void.TYPE) return org.webmacro.engine.VoidMacro.instance; else return obj; } catch (IllegalAccessException e) { throw new... | static Object invoke (Method meth, Object instance, Object[] args) throws PropertyException { try { Object obj = meth.invoke(instance, args); // if the method's return type is void return the VoidMacro // instance, instead of the 'null' we used to return ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
boolean isMethodAllowed (Method m) { Class c = m.getDeclaringClass(); Map restrictedClasses = _cache.getRestrictedClassMap(); if (restrictedClasses.containsKey(c)) { List okMeths = (List) restrictedClasses.get(c); return (okMeths != null && okMeths.contains(m.getName())); } return true; } | boolean isMethodAllowed(Method m) { Class c = m.getDeclaringClass(); Map restrictedClasses = _cache.getRestrictedClassMap(); if (restrictedClasses.containsKey(c)) { List okMeths = (List) restrictedClasses.get(c); return (okMeths != null && okMeths.contains(m.getName())); } return true; } | boolean isMethodAllowed (Method m) { Class c = m.getDeclaringClass(); Map restrictedClasses = _cache.getRestrictedClassMap(); if (restrictedClasses.containsKey(c)) { // this class is restricted, check if method is allowed List okMeths = (List) restrictedClasses.g... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
boolean isMethodRestricted (Class c, String name) { Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; } else { Method[] meths = c.getMethods(); for (int i = 0; i < meths.length; i++) | boolean isMethodRestricted(Class c, String name) { Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; } else { Method[] meths = c.getMethods(); for (int i = 0; i < meths.length; i++) { if (meths[i].getName().equals(name)) | boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
if (meths[i].getName().equals(name)) { List l = (List) restrictedClassMap.get(c); if (l != null) return !l.contains(name); } | List l = (List) restrictedClassMap.get(c); if (l != null) return !l.contains(name); | boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
} return false; } | } } return false; } | boolean isMethodRestricted (Class c, String name) { // check if object is restricted Map restrictedClassMap = _cache.getRestrictedClassMap(); if (!restrictedClassMap.containsKey(c)) { return false; // there are no restrictions on this class } else { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) | private int precedes(Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) | private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { return 1; } if (rhs[i].isAssignableFrom(lhs[i])) { return -1; } return 1; } | if (lhs[i].isAssignableFrom(rhs[i])) { return 1; } if (rhs[i].isAssignableFrom(lhs[i])) { return -1; } return 1; | private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
return 0; } else { return (lhs.length < rhs.length) ? -1 : 1; } } | } return 0; } else { return (lhs.length < rhs.length) ? -1 : 1; } } | private int precedes (Class[] lhs, Class[] rhs) { if (lhs.length == rhs.length) { for (int i = 0; i < lhs.length; i++) { if (!rhs[i].equals(lhs[i])) { if (lhs[i].isAssignableFrom(rhs[i])) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { int binPos = names.length - 2; if (pos < binPos) { Object grandparent = getProperty(context, instance, names, pos, binPos - 1); PropertyOperator po = _cache.getOpera... | public boolean setProperty(Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { int binPos = names.length - 2; if (pos < binPos) { Object grandparent = getProperty(context, instance, names, pos, binPos - 1); PropertyOperator po = _cache.getOperat... | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
parent = getProperty(context, instance, names, pos, pos); if (parent != null) { PropertyOperator po = _cache.getOperator(parent); if (po.setProperty(context, parent, names, value, pos + 1)) { return true; } } | return binOp.set(instance, (String) names[pos + 1], value); } catch (ClassCastException e) { return false; | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
return false; | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java | |
Accessor binOp = (Accessor) _binaryAccessors.get(names[pos]); if (binOp != null) { try { return binOp.set(instance, (String) names[pos + 1], value); } catch (ClassCastException e) { return false; } catch (NoSuchMethodException e) { return false; } } return false; } Accessor unaryOp = (Accessor) _unaryAccessors.ge... | } return false; } Accessor unaryOp = (Accessor) _unaryAccessors.get(names[pos]); try { if ((unaryOp != null) && unaryOp.set(instance, value)) { return true; } if (_hashAccessor != null) { return _hashAccessor.set(instance, (String) names[pos], value); } } catch (NoSuchMethodException e) { } catch (ClassCastExceptio... | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
public PropertyOperatorCache () { } | public PropertyOperatorCache() { } | public PropertyOperatorCache () { } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final public Iterator getIterator (Object instance) throws PropertyException { if (instance instanceof Object[]) return new ArrayIterator((Object[]) instance); else if (instance.getClass().isArray()) return new PrimitiveArrayIterator(instance); else if (instance instanceof Iterator) return (Iterator) instance; else if ... | final public Iterator getIterator(Object instance) throws PropertyException { if (instance instanceof Object[]) return new ArrayIterator((Object[]) instance); else if (instance.getClass().isArray()) return new PrimitiveArrayIterator(instance); else if (instance instanceof Iterator) return (Iterator) instance; else if (... | final public Iterator getIterator (Object instance) throws PropertyException { if (instance instanceof Object[]) return new ArrayIterator((Object[]) instance); else if (instance.getClass().isArray()) return new PrimitiveArrayIterator(instance); else if (insta... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final public PropertyOperator getOperator (final Class type) throws PropertyException { Object o = _cache.get(type); if (o == null) { PropertyOperator po = new PropertyOperator(type, this); _cache.put(type, po); return po; } else return (PropertyOperator) o; } | final public PropertyOperator getOperator(final Class type) throws PropertyException { Object o = _cache.get(type); if (o == null) { PropertyOperator po = new PropertyOperator(type, this); _cache.put(type, po); return po; } else return (PropertyOperator) o; } | final public PropertyOperator getOperator (final Class type) throws PropertyException { Object o = _cache.get(type); if (o == null) { PropertyOperator po = new PropertyOperator(type, this); _cache.put(type, po); return po; } else ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final public Object getProperty (final Context context, final Object instance, final Object[] names, int start) throws PropertyException, SecurityException { if (instance == null) { return null; } else { return getOperator(instance).getProperty( context, instance, names, start, names.length - 1); } } | final public Object getProperty(final Context context, final Object instance, final Object[] names, int start) throws PropertyException, SecurityException { if (instance == null) { return null; } else { return getOperator(instance).getProperty( context, instance, names, start, names.length - 1); } } | final public Object getProperty (final Context context, final Object instance, final Object[] names, int start) throws PropertyException, SecurityException { if (instance == null) ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
Map getRestrictedClassMap () { return _restrictedClasses; } | Map getRestrictedClassMap() { return _restrictedClasses; } | Map getRestrictedClassMap () { return _restrictedClasses; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final public void init (Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { _log.info("CachingProvider: No cache manager sp... | final public void init(Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { _log.info("CachingProvider: No cache manager spe... | final public void init (Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
} else { | } } _cache.init(b, config, "PropertyOperator"); _restrictedClasses = new HashMap(11); String restrictList = b.getSetting("RestrictedClasses"); if (restrictList != null) { StringTokenizer stok = new StringTokenizer(restrictList, ","); while (stok.hasMoreTokens()) { String className = stok.nextToken(); | final public void init (Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
_cache = (CacheManager) b.classForName(cacheManager).newInstance(); | Class c = Class.forName(className); String okMethList = b.getSetting("RestrictedClasses.AllowedMethods." + className); ArrayList okMeths = null; if (okMethList != null) { okMeths = new ArrayList(20); StringTokenizer stok2 = new StringTokenizer(okMethList, ","); while (stok2.hasMoreTokens()) { okMeths.add(stok2.nextToke... | final public void init (Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
_log.warning("Unable to load cache manager " + cacheManager + " for PropertyOperator, using SimpleCacheManager. Reason:\n" + e); _cache = new SimpleCacheManager(); | _log.error("Configuration error: restricted class " + className + " cannot be loaded", e); | final public void init (Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
} _cache.init(b, config, "PropertyOperator"); _restrictedClasses = new HashMap(11); String restrictList = b.getSetting("RestrictedClasses"); if (restrictList != null) { StringTokenizer stok = new StringTokenizer(restrictList, ","); while (stok.hasMoreTokens()) { String className = stok.nextToken(); try { Class c = Clas... | } } } | final public void init (Broker b, Settings config) throws InitException { String cacheManager; _log = b.getLog("resource", "Object loading and caching"); cacheManager = b.getSetting("PropertyOperator.CacheManager"); if (cacheManager == null || cacheManager.equals("")) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final public boolean setProperty (final Context context, Object instance, final Object[] names, int start, final Object value) throws PropertyException, SecurityException { try { if (instance == null) { return false; } return getOperator(instance) .setProperty(context, instance, names, value, start); } catch (PropertyE... | final public boolean setProperty(final Context context, Object instance, final Object[] names, int start, final Object value) throws PropertyException, SecurityException { try { if (instance == null) { return false; } return getOperator(instance) .setProperty(context, instance, names, value, start); } catch (PropertyEx... | final public boolean setProperty (final Context context, Object instance, final Object[] names, int start, final Object value) throws PropertyException, Secu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
UnaryMethodAccessor (final String name, final Method m, final Class[] params) throws PropertyException { super(name, m, params); } | UnaryMethodAccessor(final String name, final Method m, final Class[] params) throws PropertyException { super(name, m, params); } | UnaryMethodAccessor (final String name, final Method m, final Class[] params) throws PropertyException { super(name, m, params); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final Object get (final Object instance) throws PropertyException, NoSuchMethodException { return PropertyOperator.invoke(_getMethod, instance, null); } | final Object get(final Object instance) throws PropertyException, NoSuchMethodException { return PropertyOperator.invoke(_getMethod, instance, null); } | final Object get (final Object instance) throws PropertyException, NoSuchMethodException { return PropertyOperator.invoke(_getMethod, instance, null); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final int numArgsGet () { return 0; } | final int numArgsGet() { return 0; } | final int numArgsGet () { return 0; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final int numArgsSet () { return 1; } | final int numArgsSet() { return 1; } | final int numArgsSet () { return 1; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final boolean set (final Object instance, final Object value) throws PropertyException, NoSuchMethodException { Object[] args = {value}; return setImpl(instance, args); } | final boolean set(final Object instance, final Object value) throws PropertyException, NoSuchMethodException { Object[] args = {value}; return setImpl(instance, args); } | final boolean set (final Object instance, final Object value) throws PropertyException, NoSuchMethodException { Object[] args = {value}; return setImpl(instance, args); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67ca4e7044b0f2675e520acfb786c52497facbe2/PropertyOperatorCache.java/buggy/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java |
final JScrollPane scrollPane = new JScrollPane(pane, JScrollPane.VERTICAL_SCROLLBAR_NEVER, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); | final JScrollPane scrollPane = new JScrollPane(pane, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); | private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel.... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/574c15c5effb6d20a2b7e90ba6b59211402c8696/ScratchPadPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java |
pane.setCaretPosition(0); | private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel.... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/574c15c5effb6d20a2b7e90ba6b59211402c8696/ScratchPadPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java | |
return StringEvaluate.eval(ruby, self, this); | if (simple) { return getLiteral().to_s(); } else { return StringEvaluate.eval(ruby, self, this); } | public RubyObject eval(Ruby ruby, RubyObject self) { return StringEvaluate.eval(ruby, self, this); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/58f05ce53c167c336c9619e751471924f79325f3/DXStrNode.java/clean/org/jruby/nodes/DXStrNode.java |
view.setMoviePlay(true); | public void actionPerformed(ActionEvent ae) { try { int index = Integer.parseInt(ae.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(view.startT, view.endT, TYPE_T); break; case END_T: ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/10741ce22be9051166109de0c40e67fef675822e/MoviePlayerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/MoviePlayerControl.java | |
view.setMoviePlay(false); | public void actionPerformed(ActionEvent ae) { try { int index = Integer.parseInt(ae.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(view.startT, view.endT, TYPE_T); break; case END_T: ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/10741ce22be9051166109de0c40e67fef675822e/MoviePlayerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/MoviePlayerControl.java | |
view.setMoviePlay(false); | public void actionPerformed(ActionEvent ae) { try { int index = Integer.parseInt(ae.getActionCommand()); switch (index) { case START_T: movieStartActionHandler(view.startT, view.endT, TYPE_T); break; case END_T: ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/10741ce22be9051166109de0c40e67fef675822e/MoviePlayerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/MoviePlayerControl.java | |
ui.toFront(); | public static void showCreateCategoryDialog(CategoryUI parent, CategoryCtrl control, CategoryGroup group) { CategoryEditUI ui = new CategoryEditUI(NEW_CATEGORY_MODE,parent, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cc2b318f78e93a57d60aaae0e3c9bbbfc8350f25/CategoryEditUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryEditUI.java | |
ui.toFront(); | public static void showCreateGroupDialog(CategoryUI parent, CategoryCtrl control) { CategoryEditUI ui = new CategoryEditUI(NEW_GROUP_MODE,parent, control,null,null,null); ui.setTitle("Create Group"); ui... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cc2b318f78e93a57d60aaae0e3c9bbbfc8350f25/CategoryEditUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryEditUI.java | |
ui.toFront(); | public static void showEditCategoryDialog(CategoryUI parent, CategoryCtrl control, CategoryGroup group, Category category) { CategoryEditUI ui = new CategoryEditUI(EDIT_CA... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cc2b318f78e93a57d60aaae0e3c9bbbfc8350f25/CategoryEditUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryEditUI.java | |
ui.toFront(); | public static void showEditGroupDialog(CategoryUI parent, CategoryCtrl control, CategoryGroup group) { CategoryEditUI ui = new CategoryEditUI(EDIT_GROUP_MODE,parent, control,nu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cc2b318f78e93a57d60aaae0e3c9bbbfc8350f25/CategoryEditUI.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/CategoryEditUI.java | |
void visitCollection(Collection collection) throws BeansException; | void visitCollection(Collection collection, Object data) throws BeansException; | void visitCollection(Collection collection) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException; | void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues, Object data) throws BeansException; | void visitConstructorArgumentValues(ConstructorArgumentValues constructorArgumentValues) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
void visitMap(Map map) throws BeansException; | void visitMap(Map map, Object data) throws BeansException; | void visitMap(Map map) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException; | void visitMutablePropertyValues(MutablePropertyValues propertyValues, Object data) throws BeansException; | void visitMutablePropertyValues(MutablePropertyValues propertyValues) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
void visitObject(Object value) throws BeansException; | void visitObject(Object value, Object data) throws BeansException; | void visitObject(Object value) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
void visitPropertyValue(PropertyValue propertyValue) throws BeansException; | void visitPropertyValue(PropertyValue propertyValue, Object data) throws BeansException; | void visitPropertyValue(PropertyValue propertyValue) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
void visitRuntimeBeanReference(RuntimeBeanReference beanReference) throws BeansException; | void visitRuntimeBeanReference(RuntimeBeanReference beanReference, Object data) throws BeansException; | void visitRuntimeBeanReference(RuntimeBeanReference beanReference) throws BeansException; | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SpringVisitor.java/buggy/kernel/src/java/org/gbean/spring/SpringVisitor.java |
if (method.isUndefined()) { throw new RubyBugException("undefined method '" + name + "'; can't happen"); } | Asserts.assertTrue(!method.isUndefined(), "undefined method '" + name + "'"); | public RubyModule module_function(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw new RubySecurityException(getRuntime(), "Insecure: can't change method visibility"); } if (args.length == 0) { getRuntime().setCurrentVisibility(Visibility.M... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (millis > millis_other) { | long usec_other = (other instanceof RubyTime) ? ((RubyTime)other).usec : 0; if (millis > millis_other || (millis == millis_other && usec > usec_other)) { | public IRubyObject op_cmp(IRubyObject other) { long millis = getTimeInMillis(); if (other.isNil()) { return other; } if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; double time_other = ((RubyNum... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f6bd30c3aeb10bd8a3e4eca732851a097e2e32d9/RubyTime.java/clean/src/org/jruby/RubyTime.java |
} else if (millis < millis_other) { | } else if (millis < millis_other || (millis == millis_other && usec < usec_other)) { | public IRubyObject op_cmp(IRubyObject other) { long millis = getTimeInMillis(); if (other.isNil()) { return other; } if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; double time_other = ((RubyNum... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f6bd30c3aeb10bd8a3e4eca732851a097e2e32d9/RubyTime.java/clean/src/org/jruby/RubyTime.java |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/TrueNode.java/buggy/src/org/jruby/ast/TrueNode.java |
super(ruby, bean.name, null); | super(ruby, "$" + bean.name, null); | public BeanGlobalVariable(Ruby ruby, BSFDeclaredBean bean) { super(ruby, bean.name, null); this.bean = bean; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9028c57cb1199775e0b355581f41e146adcb60c1/JRubyEngine.java/clean/org/jruby/javasupport/bsf/JRubyEngine.java |
ruby.evalScript((String) sb.toString(), null); | ruby.evalScript(sb.toString(), null); | public Object apply(String file, int line, int col, Object funcBody, Vector paramNames, Vector args) { ISourcePosition oldPosition = ruby.getPosition(); ruby.setPosition(file, line); StringBuffer sb = new StringBuffer(((String) funcBody).length() + 100); sb.append("def __jruby_bsf_anonym... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9028c57cb1199775e0b355581f41e146adcb60c1/JRubyEngine.java/clean/org/jruby/javasupport/bsf/JRubyEngine.java |
public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException { super.initialize(mgr, lang, declaredBeans); ruby = Ruby.getDefaultInstance(); int size = declaredBeans.size(); for (int i = 0; i < size; i++) { BSFDeclaredBean bean = (BSFDe... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9028c57cb1199775e0b355581f41e146adcb60c1/JRubyEngine.java/clean/org/jruby/javasupport/bsf/JRubyEngine.java | ||
return "Token: Type = " + getType() + "; Line = " + getLine() + "; Column = " + getColumn() + "; Data = \"" + String.valueOf(getData()).replaceAll("\n", "\\\\n") + "\""; | return "Token: Type = " + getType() + "; Line = " + getLine() + "; Column = " + getColumn() + "; Data = \"" + String.valueOf(getData()) + "\""; | public String toString() { return "Token: Type = " + getType() + "; Line = " + getLine() + "; Column = " + getColumn() + "; Data = \"" + String.valueOf(getData()).replaceAll("\n", "\\\\n") + "\""; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/742f8fd97af6c2f991faa72df939aae10ee99048/Token.java/clean/org/jruby/scanner/Token.java |
return ((RubyString) l2Conv).getValue(); | return ((RubyString) l2Conv).toString(); | private static String convert2String(IRubyObject l2Conv) { IRuby runtime = l2Conv.getRuntime(); if (l2Conv.getMetaClass() != runtime.getClass("String")) { l2Conv = l2Conv.convertToType("String", "to_s", true); //we may need a false here, not sure } return ((RubyString) l2Conv)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/Pack.java/buggy/src/org/jruby/util/Pack.java |
PtrList format = new PtrList(formatString.getValue()); | PtrList format = new PtrList(formatString.toString()); | public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/Pack.java/buggy/src/org/jruby/util/Pack.java |
PtrList format = new PtrList(formatString.getValue()); | PtrList format = new PtrList(formatString.toString()); | public static RubyArray unpack(String encodedString, RubyString formatString) { IRuby runtime = formatString.getRuntime(); RubyArray result = runtime.newArray(); PtrList format = new PtrList(formatString.getValue()); PtrList encode = new PtrList(encodedString); char ty... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/Pack.java/buggy/src/org/jruby/util/Pack.java |
try { checkForOldSettings(); } catch (Exception e) { Log.error(e); } | public LoginDialog() { localPref = SettingsManager.getLocalPreferences(); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/888bf176de3f6a56283b4a961224040ed59e1ed4/LoginDialog.java/buggy/src/java/org/jivesoftware/LoginDialog.java | |
public void invoke(JFrame parentFrame) { // Before creating any connections. Update proxy if needed. try { updateProxyConfig(); } catch (Exception e) { Log.error(e); } LoginPanel loginPanel = new LoginPanel(); // Construct Dialog loginDia... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/888bf176de3f6a56283b4a961224040ed59e1ed4/LoginDialog.java/buggy/src/java/org/jivesoftware/LoginDialog.java | ||
Dimension imageDim = new Dimension(imageWidth, imageHeight); zoomPanel.setPreferredSize(imageDim); zoomPanel.setSize(imageDim); | void setZoomPanel(ZoomPanel zoomPanel) { this.zoomPanel = zoomPanel; Dimension imageDim = new Dimension(imageWidth, imageHeight); zoomPanel.setPreferredSize(imageDim); zoomPanel.setSize(imageDim); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/020251919a9bc041ddec075006ba48f2bcfddd48/ImageInspectorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspectorManager.java | |
{ Integer index = (Integer) values.get(new Double(level)); Iterator i = items.keySet().iterator(); AbstractButton item; Integer j; if (index != null) { while (i.hasNext()) { j = (Integer) i.next(); item = (AbstractButton) items.get(j); item.setSelected(j.equals(index)); } } else { while (i.hasNext()) { item = (Abstract... | { Integer index = (Integer) values.get(new Double(level)); Iterator i = items.keySet().iterator(); AbstractButton item; Integer j; if (index != null) { while (i.hasNext()) { j = (Integer) i.next(); item = (AbstractButton) items.get(j); item.setSelected(j.equals(index)); } } else { while (i.hasNext()) { item = (Abstract... | public void setItemSelected(double level) { Integer index = (Integer) values.get(new Double(level)); Iterator i = items.keySet().iterator(); AbstractButton item; Integer j; if (index != null) { while (i.hasNext()) { j = (Integer) i.next(); item = (AbstractButton) items.get(j); item.setSelected(j.equals... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomMenuManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomMenuManager.java |
private void addUser(RosterEntry entry) { String name = entry.getName(); if (!ModelUtil.hasLength(name)) { name = entry.getUser(); } String nickname = entry.getName(); if (!ModelUtil.hasLength(nickname)) { nickname = entry.getUser(); } ContactIt... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | ||
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for (RosterGroup group : roster.getGroups()) { ContactGroup contactGroup = addContactGroup(group.getName()); f... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
public void connectionClosedOnError(final Exception ex) { String errorMessage = Res.getString("message.disconnected.error"); if (ex != null && ex instanceof XMPPException) { XMPPException xmppEx = (XMPPException)ex; StreamError error = xmppEx.getStreamError(); String r... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | ||
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | private synchronized void handleEntriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | private synchronized void handleEntriesUpdated(final Collection addresses) { SwingUtilities.invokeLater(new Runnable() { public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == rosterEntry.getStatus()) { | public void run() { Roster roster = SparkManager.getConnection().getRoster(); Iterator jids = addresses.iterator(); while (jids.hasNext()) { String jid = (String)jids.next(); RosterEntry rosterEntry = roster.getEntry(jid); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Iterator contactGroups = new ArrayList(getContactGroups()).iterator(); | final Iterator contactGroups = new ArrayList(getContactGroups()).iterator(); | private void removeAllUsers() { // Behind the scenes, move everyone to the offline group. Iterator contactGroups = new ArrayList(getContactGroups()).iterator(); while (contactGroups.hasNext()) { ContactGroup contactGroup = (ContactGroup)contactGroups.next(); Iterator conta... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); return; } S... | final SubscriptionDialog subscriptionDialog = new SubscriptionDialog(); subscriptionDialog.invoke(jid); | private void subscriptionRequest(final String jid) { final Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { Presence response = new Presence(Presence.Type.subscribed... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus(); | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus(); | private void updateUserPresence(Presence presence) { if (presence == null) { return; } Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); RosterEntry entry = roster.getEntry(bareJID); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
insertText(Res.getString("message.your.voice.revoked")); | insertText(Res.getString("message.your.voice.granted")); | private void setupListeners() { chat.addParticipantStatusListener(new DefaultParticipantStatusListener() { public void kicked(String participant) { String nickname = StringUtils.parseResource(participant); insertText(Res.getString("message.user.kicked.from.room", nick... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/3c6985b831267b490cc461f5b9bda423d6a7aa00/GroupChatRoom.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/GroupChatRoom.java |
insertText(Res.getString("message.your.voice.revoked")); | insertText(Res.getString("message.your.voice.granted")); | public void voiceGranted() { insertText(Res.getString("message.your.voice.revoked")); getChatInputEditor().setEnabled(true); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/3c6985b831267b490cc461f5b9bda423d6a7aa00/GroupChatRoom.java/buggy/src/java/org/jivesoftware/spark/ui/rooms/GroupChatRoom.java |
StatusItem statusItem = SparkManager.getWorkspace().getStatusBar().getItemFromPresence(presence); | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/2b67e7302b05b2cf189de97bd46023342930e7c6/ChatRoomImpl.java/clean/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java | |
if (statusItem == null) { tabIcon = SparkRes.getImageIcon(SparkRes.CLEAR_BALL_ICON); } else { String status = presence.getStatus(); if (status != null && status.indexOf("phone") != -1) { tabIcon = SparkRes.getImageIcon(SparkRes.ON_PHONE_IMAGE); } else { tabIcon = statusItem.getIcon(); } } Icon icon = SparkManager.getC... | tabIcon = SparkManager.getUserManager().getIconFromPresence(presence); | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/2b67e7302b05b2cf189de97bd46023342930e7c6/ChatRoomImpl.java/clean/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java |
showImages();; | showImages(); break; case IMAGES_SELECTION: bringSelector(e); break; | public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case SAVE: save(); break; case CANCEL: cancel(); break; case ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateCategoryEditorMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CreateCategoryEditorMng.java |
attachBoxListeners(view.getImagesSelection(), IMAGES_SELECTION); | void initListeners() { attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getCancelButton(), CANCEL); attachButtonListener(view.getSelectButton(), SELECT_IMAGE); attachButtonListener(view.getResetButton(), RESET_SELECT_IMAGE); attachButtonListener(view.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateCategoryEditorMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CreateCategoryEditorMng.java | |
case CreateCategoryImagesPane.IMAGES_USED: images = control.getImagesInUserDatasetsNotInCategoryGroup(group); break; | private void showImages() { CategoryGroupData group = (CategoryGroupData) view.getExistingGroups().getSelectedItem(); int selectedIndex = view.getImagesSelection().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List im... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateCategoryEditorMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CreateCategoryEditorMng.java | |
if (images == null || images.size() == 0) return; view.showImages(images); | displayListImages(images); | private void showImages() { CategoryGroupData group = (CategoryGroupData) view.getExistingGroups().getSelectedItem(); int selectedIndex = view.getImagesSelection().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List im... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateCategoryEditorMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CreateCategoryEditorMng.java |
actionsMap.put(COLOR_PICKER, new ColorPickerAction(model)); | private void createActions() { actionsMap.put(RENDERER, new RendererAction(model)); actionsMap.put(MOVIE, new MovieAction(model)); actionsMap.put(SAVE, new SaveAction(model)); ViewerAction action = new ZoomAction(model, ZoomAction.ZOOM_25); action.addPropertyChangeListener(this... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/ImViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerControl.java | |
} else if (ChannelButton.CHANNEL_COLOR_PROPERTY.equals(propName)) { | } else if (ChannelButton.CHANNEL_COLOR_PROPERTY.equals(propName) || ChannelColorMenuItem.CHANNEL_COLOR_PROPERTY.equals(propName)) { | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (ImViewer.Z_SELECTED_PROPERTY.equals(propName)) { view.setZSection(((Integer) pce.getNewValue()).intValue()); } else if (ImViewer.T_SELECTED_PROPERTY.equals(propName)) { v... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/ImViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerControl.java |
return "AnalysisNodeExecution"+(analysisNodeExecutionId==null ? ":Hash"+this.hashCode() : ":"+analysisNodeExecutionId); | return "AnalysisNodeExecution"+(analysisNodeExecutionId==null ? ":Hash_"+this.hashCode() : ":Id_"+analysisNodeExecutionId); | public String toString(){ return "AnalysisNodeExecution"+(analysisNodeExecutionId==null ? ":Hash"+this.hashCode() : ":"+analysisNodeExecutionId); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/AnalysisNodeExecution.java/clean/components/common/src/ome/model/AnalysisNodeExecution.java |
titleLabel.setFont(new Font("Verdana", Font.BOLD, 11)); | titleLabel.setFont(new Font("Dialog", Font.BOLD, 11)); | public ReceiveMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1,... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
ResourceUtils.resButton(acceptLabel, "Accept"); ResourceUtils.resButton(declineLabel, "Reject"); | ResourceUtils.resButton(acceptLabel, Res.getString("accept")); ResourceUtils.resButton(declineLabel, Res.getString("reject")); | public ReceiveMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1,... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
declineLabel.setFont(new Font("Verdana", Font.BOLD, 10)); acceptLabel.setFont(new Font("Verdana", Font.BOLD, 10)); | declineLabel.setFont(new Font("Dialog", Font.BOLD, 10)); acceptLabel.setFont(new Font("Dialog", Font.BOLD, 10)); | public ReceiveMessage() { setLayout(new GridBagLayout()); setBackground(new Color(250, 249, 242)); add(imageLabel, new GridBagConstraints(0, 0, 1, 3, 0.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0)); add(titleLabel, new GridBagConstraints(1,... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
titleLabel.setText(contactItem.getNickname() + " is sending you a file."); | titleLabel.setText(Res.getString("message.user.is.sending.you.a.file", contactItem.getNickname())); | public void acceptFileTransfer(final FileTransferRequest request) { String fileName = request.getFileName(); long fileSize = request.getFileSize(); String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ByteFormat format = new ByteForm... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
titleLabel.setText("Negotiating file transfer. Please wait..."); | titleLabel.setText(Res.getString("message.negotiate.file.transfer")); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
if (status == FileTransfer.Status.ERROR || status == FileTransfer.Status.COMPLETE || status == FileTransfer.Status.CANCLED || status == FileTransfer.Status.REFUSED) { | if (status == FileTransfer.Status.error || status == FileTransfer.Status.complete || status == FileTransfer.Status.cancelled || status == FileTransfer.Status.refused) { | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (status == FileTransfer.Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating connection stream. Please wait..."); | else if (status == FileTransfer.Status.negotiating_stream) { titleLabel.setText(Res.getString("message.negotiate.stream")); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (status == FileTransfer.Status.IN_PROGRESS) { titleLabel.setText("You are receiving a file from " + contactItem.getNickname()); | else if (status == FileTransfer.Status.in_progress) { titleLabel.setText(Res.getString("message.receiving.file", contactItem.getNickname())); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
imageLabel.setToolTipText("Click to open"); titleLabel.setToolTipText("Click to open"); | imageLabel.setToolTipText(Res.getString("message.click.to.open")); titleLabel.setToolTipText(Res.getString("message.click.to.open")); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
if (transfer.getStatus() == FileTransfer.Status.ERROR) { | if (transfer.getStatus() == FileTransfer.Status.error) { | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
transferMessage = "There was an error during file transfer."; | transferMessage = Res.getString("message.error.during.file.transfer"); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (transfer.getStatus() == FileTransfer.Status.REFUSED) { transferMessage = "The file transfer was refused."; | else if (transfer.getStatus() == FileTransfer.Status.refused) { transferMessage = Res.getString("message.transfer.refused"); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (transfer.getStatus() == FileTransfer.Status.CANCLED || | else if (transfer.getStatus() == FileTransfer.Status.cancelled || | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
transferMessage = "The file transfer was cancelled."; | transferMessage = Res.getString("message.transfer.cancelled"); | private void acceptRequest(final FileTransferRequest request) { String requestor = request.getRequestor(); String bareJID = StringUtils.parseBareAddress(requestor); ContactList contactList = SparkManager.getWorkspace().getContactList(); final ContactItem contactItem = contactList.getCont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
if (status == FileTransfer.Status.ERROR || status == FileTransfer.Status.COMPLETE || status == FileTransfer.Status.CANCLED || status == FileTransfer.Status.REFUSED) { | if (status == FileTransfer.Status.error || status == FileTransfer.Status.complete || status == FileTransfer.Status.cancelled || status == FileTransfer.Status.refused) { | public Object construct() { try { transfer.recieveFile(downloadedFile); } catch (XMPPException e) { Log.error(e); } while (true) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
else if (status == FileTransfer.Status.NEGOTIATING_STREAM) { titleLabel.setText("Negotiating connection stream. Please wait..."); | else if (status == FileTransfer.Status.negotiating_stream) { titleLabel.setText(Res.getString("message.negotiate.stream")); | public Object construct() { try { transfer.recieveFile(downloadedFile); } catch (XMPPException e) { Log.error(e); } while (true) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/ReceiveMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/ReceiveMessage.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.